9 #include <QtCore/QDebug>
10 #include <QtCore/QSignalMapper>
12 #if QT_VERSION >= 0x050000
13 #include <QtWidgets/QMenu>
14 #include <QtWidgets/QActionGroup>
16 #include <QtGui/QMenu>
17 #include <QtGui/QActionGroup>
85 act->setCheckable(
true);
91 act->setChecked(
true);
static void addSource(const QString &sourcename, DataSource *source, bool setActive=true)
add a data source
create the noise and bad pixel map[Processor]
contains the base class data sources
contains singleton class to manage the data sources
QMap< QString, DataSource * > _sources
container for all data sources
QSignalMapper * _mapper
mapper for the signals of the signal group
addAction(QAction *action)
static DataSourceManager * _instance
an instane of this
setMapping(QObject *sender, int id)
base class for data sources
void sourceChanged(QString newSource)
signal when a new source was chosen
QActionGroup * _actionGroup
the action group where the menue items will be grouped
singleton class to manage the available data sources
static DataSource * source(const QString &sourcename=QString())
retrieve an available source
static DataSourceManager * instance()
generate an instance of this, if not already existent
DataSourceManager()
constructor
static QStringList sourceNames()
retrieve the names of all current active sources
static void setMenu(QMenu *menu)
set the Menu where the data sources will be displayed in
static QString currentSourceName()
return the current source name
connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type=Qt::AutoConnection)
QMenu * _sourceMenu
the source menu