ddt 1.4.0
 
Loading...
Searching...
No Matches
DdtDialog Class Referenceabstract

#include <ddtDialog.hpp>

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

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 ()
 
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)
 
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
 

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.

◆ connect() [1/4]

void DdtDialog::connect ( const QObject * sender,
const char * signal,
const char * member )
protected

◆ connect() [2/4]

void DdtDialog::connect ( const QObject * sender,
const char * signal,
const QObject * receiver,
const char * member )
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.

Parameters
constQObject* - sender
constchat* - signal
constQObject* - receiver
constchar* - member

◆ connect() [3/4]

void DdtDialog::connect ( const QObject * sender,
const QMetaMethod & signal,
const QObject * receiver,
const QMetaMethod & method )
protected

◆ connect() [4/4]

template<typename Func1, typename Func2>
void DdtDialog::connect ( const typename QtPrivate::FunctionPointer< Func1 >::Object * sender,
Func1 signal,
const QObject * context,
Func2 slot )
protected

connect Template version of QObject::connection with fixed Qt::QueuedConnection flag. Normally used to connect a signal with a lambda function.

Parameters
consttypename QtPrivate::FunctionPointer<Func1>::Object* - sender
typename- signal
constQObject* - context
typename- slot

◆ CreateDialog()

◆ GetDialogName()

◆ 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 DdtDistanceDialog, DdtHDUDialog, DdtMetadataSampleDialog, ddtMonitorSamplesDialog, DdtPVCMDialog, DdtReferenceLineDialog, DdtSlitDialog, and DdtStatisticDialog.

◆ SetInitialParameter()

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

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: