ddt 1.2.1
|
#include <ddtDialog.hpp>
Signals | |
void | ParameterChanged (const QString dialog_id, const QString param_id, const QVariant parameter) |
Public Member Functions | |
virtual void | SetInitialParameter (const QString parameter_id, const QVariant parameter)=0 |
virtual QString | GetDialogName ()=0 |
Protected Member Functions | |
virtual void | CreateDialog ()=0 |
template<typename Func1 , typename Func2 > | |
void | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot) |
connect Template version of QObject::connection with fixed Qt::QueuedConnection flag. Normally used to connect a signal with a lambda function. | |
Protected Attributes | |
QLayout * | main_layout |
DdtDialog (QWidget *parent=nullptr) | |
virtual | ~DdtDialog () |
virtual void | AddDefaultButtonsToLayout (QBoxLayout *layout, bool show_confirm_button, bool show_quit_button, bool show_cancel_button) |
virtual QLayout * | GetMainLayout () |
void | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
connect Group of overloaded functions that use the QObject::connect method with the Qt::QueuedConnection flag. This defines Qt Signal and Slots connection the same way thought out the QApplication. | |
void | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
void | connect (const QObject *sender, const char *signal, const char *member) |
virtual void | ConfirmPressed () |
virtual void | CancelPressed () |
virtual void | QuitPressed () |
virtual void | SetChangedParameter (const QString param_id, const QVariant parameter) |
Base class for the DDT Dialogs
|
explicit |
Constructor
parent | Pointer to the parent widget |
|
virtualdefault |
Destructor
|
protectedvirtual |
Add the default buttons to the dialog layout
|
virtualslot |
Slot called when the cancel button was pressed. Default behavior is to close the dialog.
|
virtualslot |
Slot called when the confirm button was pressed. Default behavior is to close the dialog.
|
protected |
|
protected |
connect Group of overloaded functions that use the QObject::connect method with the Qt::QueuedConnection flag. This defines Qt Signal and Slots connection the same way thought out the QApplication.
const | QObject* - sender |
const | chat* - signal |
const | QObject* - receiver |
const | char* - member |
|
protected |
|
protected |
connect Template version of QObject::connection with fixed Qt::QueuedConnection flag. Normally used to connect a signal with a lambda function.
const | typename QtPrivate::FunctionPointer<Func1>::Object* - sender |
typename | - signal |
const | QObject* - context |
typename | - slot |
|
protectedpure virtual |
Method to setup the dialog elements
Implemented in DdtAboutViewerDialog, DdtBiasDialog, DdtBinaryTableDialog, DdtColourmapDialog, DdtCutValuesDialog, DdtDataStreamDialog, DdtDistanceDialog, DdtFITSHeaderDialog, DdtGraphicalElementsDialog, DdtGraphicsControlDialog, DdtHDUDialog, DdtMagnificationDialog, DdtMetadataSampleDialog, ddtMonitorSamplesDialog, DdtPickObjectDialog, DdtPVCMDialog, DdtReferenceLineDialog, DdtScaleRotateCutDialog, DdtSlitDialog, DdtStatisticDialog, and DdtTabularRegionDialog.
|
pure virtual |
Method which return a human readable name for the dialog which can be used e.g. in a context menu
Implemented in DdtAboutViewerDialog, DdtBiasDialog, DdtBinaryTableDialog, DdtColourmapDialog, DdtCutValuesDialog, DdtDataStreamDialog, DdtDistanceDialog, DdtFITSHeaderDialog, DdtGraphicalElementsDialog, DdtGraphicsControlDialog, DdtHDUDialog, DdtMagnificationDialog, DdtMetadataSampleDialog, ddtMonitorSamplesDialog, DdtPickObjectDialog, DdtPVCMDialog, DdtReferenceLineDialog, DdtScaleRotateCutDialog, DdtSlitDialog, DdtStatisticDialog, and DdtTabularRegionDialog.
|
protectedvirtual |
Method to access the main layout, e.g. for extending the dialog
|
signal |
Paramter of dialog has changed
|
virtualslot |
Slot called when the quit button was pressed. Default behavior is to close the dialog.
|
virtualslot |
Slot called when a value of the dialog needs to be updated
Reimplemented in DdtDistanceDialog, DdtHDUDialog, DdtMetadataSampleDialog, ddtMonitorSamplesDialog, DdtPVCMDialog, DdtReferenceLineDialog, DdtSlitDialog, and DdtStatisticDialog.
|
pure virtual |
Method to set initial parameters that should be selected in a dialog at startup
parameter_id | ID of the parameter to set |
parameter | QVariant of the value to set |
Implemented in DdtAboutViewerDialog, DdtBiasDialog, DdtBinaryTableDialog, DdtColourmapDialog, DdtCutValuesDialog, DdtDataStreamDialog, DdtDistanceDialog, DdtGraphicalElementsDialog, DdtGraphicsControlDialog, DdtHDUDialog, DdtMagnificationDialog, DdtMetadataSampleDialog, ddtMonitorSamplesDialog, DdtPickObjectDialog, DdtPVCMDialog, DdtReferenceLineDialog, DdtScaleRotateCutDialog, DdtSlitDialog, DdtStatisticDialog, DdtTabularRegionDialog, and DdtFITSHeaderDialog.
|
protected |
Main layout of dialog