|
ddt
0.1
|
#include <ddtDialog.hpp>
Public Slots | |
| virtual void | ConfirmPressed () |
| virtual void | CancelPressed () |
| virtual void | QuitPressed () |
| virtual void | SetChangedParameter (const QString param_id, const QVariant parameter) |
Signals | |
| void | ParameterChanged (const QString dialog_id, const QString param_id, const QVariant parameter) |
Public Member Functions | |
| DdtDialog (QWidget *parent=nullptr) | |
| virtual | ~DdtDialog () |
| virtual void | SetInitialParameter (const QString parameter_id, const QVariant parameter)=0 |
| virtual QString | GetDialogName ()=0 |
Protected Member Functions | |
| virtual void | CreateDialog ()=0 |
| virtual void | AddDefaultButtonsToLayout (QBoxLayout *layout, bool show_confirm_button, bool show_quit_button, bool show_cancel_button) |
| virtual QLayout * | GetMainLayout () |
Protected Attributes | |
| QLayout * | main_layout |
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.
|
protectedpure virtual |
Method to setup the dialog elements
Implemented in DdtScaleRotateCutDialog, DdtMagnificationDialog, DdtGraphicsControlDialog, DdtFITSTableDialog, DdtDistanceDialog, DdtDataStreamDialog, DdtTabularRegionDialog, DdtStatisticDialog, DdtSlitDialog, DdtReferenceLineDialog, DdtPVCMDialog, DdtPickObjectDialog, DdtHDUDialog, DdtGraphicalElementsDialog, DdtFITSHeaderDialog, DdtCutValuesDialog, DdtColourmapDialog, and DdtBiasDialog.
|
pure virtual |
Method which return a human readable name for the dialog which can be used e.g. in a context menu
Implemented in DdtTabularRegionDialog, DdtStatisticDialog, DdtSlitDialog, DdtScaleRotateCutDialog, DdtReferenceLineDialog, DdtPVCMDialog, DdtPickObjectDialog, DdtMagnificationDialog, DdtHDUDialog, DdtGraphicsControlDialog, DdtGraphicalElementsDialog, DdtFITSTableDialog, DdtFITSHeaderDialog, DdtDistanceDialog, DdtDataStreamDialog, DdtCutValuesDialog, DdtColourmapDialog, and DdtBiasDialog.
|
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 DdtStatisticDialog, DdtSlitDialog, DdtReferenceLineDialog, DdtPVCMDialog, DdtHDUDialog, and DdtDistanceDialog.
|
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 DdtFITSHeaderDialog, DdtTabularRegionDialog, DdtStatisticDialog, DdtSlitDialog, DdtScaleRotateCutDialog, DdtReferenceLineDialog, DdtPVCMDialog, DdtPickObjectDialog, DdtMagnificationDialog, DdtHDUDialog, DdtGraphicsControlDialog, DdtGraphicalElementsDialog, DdtFITSTableDialog, DdtDistanceDialog, DdtDataStreamDialog, DdtCutValuesDialog, DdtColourmapDialog, and DdtBiasDialog.
|
protected |
Main layout of dialog