Commit cc44bfbb authored by WINTZ Julien's avatar WINTZ Julien

Proofreading notification framework.

parent 815e456b
/* dtkComposer.cpp ---
*
* Author: Thibaud Kloczko
* Created: Tue Apr 9 12:49:06 2013 (+0200)
*/
// Version: $Id$
//
//
/* Change Log:
*
*/
// Commentary:
//
//
#include "dtkComposer.h"
// Change Log:
//
//
// Code:
#include <dtkConfig.h>
#include "dtkComposer.h"
#include "dtkComposerNodeFactory.h"
#include "dtkComposerExtension.h"
#include "dtkComposerSettings.h"
#include "dtkComposerDefaultExtensions.h"
#include <dtkCore/dtkArray.h>
#if defined(DTK_BUILD_DISTRIBUTED)
#include <dtkDistributed/dtkDistributed.h>
#endif
#include <dtkCore/dtkArray.h>
namespace dtkComposer
{
namespace node
......@@ -73,6 +76,7 @@ namespace dtkComposer
}
namespace extension {
namespace _private {
dtkComposerExtensionPluginFactory factory;
dtkComposerExtensionPluginManager manager;
......@@ -87,6 +91,7 @@ namespace dtkComposer
{
return _private::manager;
}
void initialize(const QString& path)
{
QString realpath = path;
......@@ -110,9 +115,12 @@ namespace dtkComposer
// needed when the composer is run on a remote node
// should we add more ?
qMetaTypeId< dtkArray<qlonglong>* >();
qMetaTypeId< dtkArray<double>* >();
qRegisterMetaTypeStreamOperators< QStringList* >("QStringList*");
qMetaTypeId<dtkArray<qlonglong> *>();
qMetaTypeId<dtkArray<double> *>();
qRegisterMetaTypeStreamOperators<QStringList *>("QStringList *");
}
}
}
//
// dtkComposer.cpp ends here
......@@ -24,10 +24,12 @@ class dtkComposerExtensionPluginManager;
class dtkComposerExtensionPluginFactory;
namespace dtkComposer {
namespace node {
DTKCOMPOSER_EXPORT dtkComposerNodeFactory& factory(void);
DTKCOMPOSER_EXPORT void initialize(void);
}
namespace extension {
DTKCOMPOSER_EXPORT dtkComposerExtensionPluginFactory& pluginFactory(void);
DTKCOMPOSER_EXPORT dtkComposerExtensionPluginManager& pluginManager(void);
......
/* dtkNotifiable.h ---
*
* Author: Julien Wintz
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Mon Apr 23 11:49:55 2012 (+0200)
* Version: $Id$
* Last-Updated: mar. févr. 4 15:53:58 2014 (+0100)
* By: Nicolas Niclausse
* Update #: 17
*/
/* Commentary:
*
*/
/* Change log:
*
*/
#ifndef DTKNOTIFIABLE_H
#define DTKNOTIFIABLE_H
// Version: $Id$
//
//
// Commentary:
//
//
// Change Log:
//
//
// Code:
#pragma once
#include "dtkWidgetsExport.h"
......@@ -45,4 +39,5 @@ public:
virtual void display(const QString& message) = 0;
};
#endif
//
// dtkNotifiable.h ends here
/* dtkNotification.cpp ---
*
* Author: Julien Wintz
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Thu Apr 19 21:48:39 2012 (+0200)
* Version: $Id$
* Last-Updated: mar. févr. 4 15:55:09 2014 (+0100)
* By: Nicolas Niclausse
* Update #: 28
*/
/* Commentary:
*
*/
/* Change log:
*
*/
// Version: $Id$
//
//
// Commentary:
//
//
// Change Log:
//
//
// Code:
#include "dtkNotification.h"
#include "dtkNotificationQueue.h"
......@@ -50,3 +45,6 @@ void dtkClearNotifications(void)
{
dtkNotificationQueue::instance()->clear();
}
//
// dtkNotification.cpp ends here
/* dtkNotification.h ---
*
* Author: Julien Wintz
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Thu Apr 19 21:39:44 2012 (+0200)
* Version: $Id$
* Last-Updated: mar. févr. 4 15:28:15 2014 (+0100)
* By: Nicolas Niclausse
* Update #: 22
*/
/* Commentary:
*
*/
/* Change log:
*
*/
#ifndef DTKNOTIFICATION_H
#define DTKNOTIFICATION_H
// Version: $Id$
//
//
// Commentary:
//
//
// Change Log:
//
//
// Code:
#pragma once
#include "dtkWidgetsExport.h"
#include "dtkNotificationEvent.h"
......@@ -38,4 +32,5 @@ DTKWIDGETS_EXPORT void dtkNotify(const QString& message, int duration);
DTKWIDGETS_EXPORT void dtkNotify(dtkNotificationEvent *event);
DTKWIDGETS_EXPORT void dtkClearNotifications(void);
#endif
//
// dtkNotification.h ends here
/* dtkNotificationDisplay.cpp ---
*
* Author: Julien Wintz
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Fri Apr 20 21:07:54 2012 (+0200)
* Version: $Id$
* Last-Updated: Tue Apr 24 12:52:42 2012 (+0200)
* By: Julien Wintz
* Update #: 184
*/
/* Commentary:
*
*/
/* Change log:
*
*/
// Version: $Id$
//
//
// Commentary:
//
//
// Change Log:
//
//
// Code:
#include "dtkNotification.h"
#include "dtkNotificationDisplay.h"
#include "dtkNotificationEvent.h"
#include "dtkNotificationQueue.h"
// /////////////////////////////////////////////////////////////////
//
// /////////////////////////////////////////////////////////////////
class dtkNotificationDisplayPrivate
{
public:
......@@ -179,3 +170,6 @@ QSize dtkNotificationDisplay::sizeHint(void) const
{
return QSize(350, 46);
}
//
// dtkNotificationDisplay.cpp ends here
/* dtkNotificationDisplay.h ---
*
* Author: Julien Wintz
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Fri Apr 20 21:06:30 2012 (+0200)
* Version: $Id$
* Last-Updated: mar. févr. 4 15:54:36 2014 (+0100)
* By: Nicolas Niclausse
* Update #: 40
*/
/* Commentary:
*
*/
/* Change log:
*
*/
#ifndef DTKNOTIFICATIONDISPLAY_H
#define DTKNOTIFICATIONDISPLAY_H
// Version: $Id$
//
//
// Commentary:
//
//
// Change Log:
//
//
// Code:
#pragma once
#include "dtkNotifiable.h"
#include "dtkWidgetsExport.h"
......@@ -32,7 +26,7 @@ class DTKWIDGETS_EXPORT dtkNotificationDisplay : public QFrame, public dtkNotifi
Q_OBJECT
public:
dtkNotificationDisplay(QWidget *parent = 0);
dtkNotificationDisplay(QWidget *parent = 0);
~dtkNotificationDisplay(void);
public slots:
......@@ -52,4 +46,5 @@ private:
dtkNotificationDisplayPrivate *d;
};
#endif
//
// dtkNotificationDisplay.h ends here
/* dtkNotificationEvent.cpp ---
*
* Author: Julien Wintz
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Thu Apr 19 20:37:16 2012 (+0200)
* Version: $Id$
* Last-Updated: Wed May 9 11:37:38 2012 (+0200)
* By: Julien Wintz
* Update #: 38
*/
/* Commentary:
*
*/
/* Change log:
*
*/
// Version: $Id$
//
//
// Commentary:
//
//
// Change Log:
//
//
// Code:
#include "dtkNotification.h"
#include "dtkNotificationEvent.h"
......@@ -85,3 +80,6 @@ void dtkNotificationEvent::setDuration(int ms)
{
d->duration = ms;
}
//
// dtkNotificationEvent.cpp ends here
/* dtkNotificationEvent.h ---
*
* Author: Julien Wintz
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Thu Apr 19 20:33:27 2012 (+0200)
* Version: $Id$
* Last-Updated: mar. févr. 4 15:29:05 2014 (+0100)
* By: Nicolas Niclausse
* Update #: 37
*/
/* Commentary:
*
*/
/* Change log:
*
*/
#ifndef DTKNOTIFICATIONEVENT_H
#define DTKNOTIFICATIONEVENT_H
// Version: $Id$
//
//
// Commentary:
//
//
// Change Log:
//
//
// Code:
#pragma once
#include "dtkWidgetsExport.h"
......@@ -35,8 +29,8 @@ public:
};
public:
dtkNotificationEvent(void);
dtkNotificationEvent(const dtkNotificationEvent& other);
dtkNotificationEvent(void);
dtkNotificationEvent(const dtkNotificationEvent& other);
~dtkNotificationEvent(void);
public:
......@@ -56,4 +50,5 @@ private:
dtkNotificationEventPrivate *d;
};
#endif
//
// dtkNotificationEvent.h ends here
/* dtkNotificationQueue.cpp ---
*
* Author: Julien Wintz
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Sun Apr 22 15:13:24 2012 (+0200)
* Version: $Id$
* Last-Updated: Tue Apr 24 01:11:35 2012 (+0200)
* By: Julien Wintz
* Update #: 181
*/
/* Commentary:
*
*/
/* Change log:
*
*/
// Version: $Id$
//
//
// Commentary:
//
//
// Change Log:
//
//
// Code:
#include "dtkNotifiable.h"
#include "dtkNotification.h"
......@@ -40,7 +36,7 @@ public:
dtkNotificationQueue *dtkNotificationQueue::instance(void)
{
if (!s_instance)
if(!s_instance)
s_instance = new dtkNotificationQueue;
return s_instance;
......@@ -197,3 +193,6 @@ dtkNotificationQueue::~dtkNotificationQueue(void)
}
dtkNotificationQueue *dtkNotificationQueue::s_instance = NULL;
//
// dtkNotificationQueue.cpp ends here
/* dtkNotificationQueue.h ---
*
* Author: Julien Wintz
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Sun Apr 22 15:11:20 2012 (+0200)
* Version: $Id$
* Last-Updated: mar. févr. 4 15:53:33 2014 (+0100)
* By: Nicolas Niclausse
* Update #: 38
*/
/* Commentary:
*
*/
/* Change log:
*
*/
#ifndef DTKNOTIFICATIONQUEUE_H
#define DTKNOTIFICATIONQUEUE_H
// Version: $Id$
//
//
// Commentary:
//
//
// Change Log:
//
//
// Code:
#pragma once
#include "dtkWidgetsExport.h"
......@@ -61,11 +55,12 @@ private:
static dtkNotificationQueue *s_instance;
private:
dtkNotificationQueue(QObject *parent = 0);
dtkNotificationQueue(QObject *parent = 0);
~dtkNotificationQueue(void);
private:
dtkNotificationQueuePrivate *d;
};
#endif
//
// dtkNotificationQueue.h ends here
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment