ddt  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DdtDialog Class Referenceabstract

#include <ddtDialog.hpp>

Inheritance diagram for DdtDialog:
DdtBiasDialog DdtColourmapDialog DdtCutValuesDialog DdtDataStreamDialog DdtDistanceDialog DdtFITSHeaderDialog DdtFITSTableDialog DdtGraphicalElementsDialog DdtGraphicsControlDialog DdtHDUDialog DdtMagnificationDialog DdtPickObjectDialog DdtPVCMDialog DdtReferenceLineDialog DdtScaleRotateCutDialog DdtSlitDialog DdtStatisticDialog DdtTabularRegionDialog

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
 

Detailed Description

Base class for the DDT Dialogs

Constructor & Destructor Documentation

◆ DdtDialog()

DdtDialog::DdtDialog ( QWidget *  parent = nullptr)
explicit

Constructor

Parameters
parentPointer to the parent widget

◆ ~DdtDialog()

DdtDialog::~DdtDialog ( )
virtualdefault

Destructor

Member Function Documentation

◆ AddDefaultButtonsToLayout()

void DdtDialog::AddDefaultButtonsToLayout ( QBoxLayout *  layout,
bool  show_confirm_button,
bool  show_quit_button,
bool  show_cancel_button 
)
protectedvirtual

Add the default buttons to the dialog layout

◆ CancelPressed

void DdtDialog::CancelPressed ( )
virtualslot

Slot called when the cancel button was pressed. Default behavior is to close the dialog.

◆ ConfirmPressed

void DdtDialog::ConfirmPressed ( )
virtualslot

Slot called when the confirm button was pressed. Default behavior is to close the dialog.

◆ CreateDialog()

virtual void DdtDialog::CreateDialog ( )
protectedpure virtual

◆ GetDialogName()

virtual QString DdtDialog::GetDialogName ( )
pure virtual

◆ GetMainLayout()

QLayout * DdtDialog::GetMainLayout ( )
protectedvirtual

Method to access the main layout, e.g. for extending the dialog

Returns
Pointer to main layout

◆ ParameterChanged

void DdtDialog::ParameterChanged ( const QString  dialog_id,
const QString  param_id,
const QVariant  parameter 
)
signal

Paramter of dialog has changed

◆ QuitPressed

void DdtDialog::QuitPressed ( )
virtualslot

Slot called when the quit button was pressed. Default behavior is to close the dialog.

◆ SetChangedParameter

void DdtDialog::SetChangedParameter ( const QString  param_id,
const QVariant  parameter 
)
virtualslot

Slot called when a value of the dialog needs to be updated

Reimplemented in DdtStatisticDialog, DdtSlitDialog, DdtReferenceLineDialog, DdtPVCMDialog, DdtHDUDialog, and DdtDistanceDialog.

◆ SetInitialParameter()

virtual void DdtDialog::SetInitialParameter ( const QString  parameter_id,
const QVariant  parameter 
)
pure virtual

Method to set initial parameters that should be selected in a dialog at startup

Parameters
parameter_idID of the parameter to set
parameterQVariant 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.

Member Data Documentation

◆ main_layout

QLayout* DdtDialog::main_layout
protected

Main layout of dialog


The documentation for this class was generated from the following files: