ddt  0.1
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
DdtStatisticDialog Class Reference

#include <ddtStatisticDialog.hpp>

Inheritance diagram for DdtStatisticDialog:
DdtDialog

Public Slots

virtual void ConfirmPressed ()
 
virtual void QuitPressed ()
 
virtual void CancelPressed ()
 
virtual void UpdateCoords ()
 
virtual void ApplyCuts ()
 
virtual void SetDefaultRect ()
 
- Public Slots inherited from DdtDialog
virtual void ConfirmPressed ()
 
virtual void CancelPressed ()
 
virtual void QuitPressed ()
 

Signals

void ParameterChanged (const QString dialog_id, const QString param_id, const QVariant parameter)
 
- Signals inherited from DdtDialog
void ParameterChanged (const QString dialog_id, const QString param_id, const QVariant parameter)
 

Public Member Functions

 DdtStatisticDialog (QWidget *parent=nullptr)
 
virtual ~DdtStatisticDialog ()=default
 
void SetInitialParameter (const QString parameter_id, const QVariant parameter) override
 
void SetChangedParameter (const QString param_id, const QVariant parameter) override
 
QString GetDialogName () override
 
- Public Member Functions inherited from DdtDialog
 DdtDialog (QWidget *parent=nullptr)
 
virtual ~DdtDialog ()
 

Protected Member Functions

virtual void CreateDialog ()
 
virtual void RetranslateUi ()
 
void changeEvent (QEvent *event) override
 
void focusInEvent (QFocusEvent *event) override
 
void closeEvent (QCloseEvent *event) override
 
void UpdateStatisticData (const QList< QVariant > table_statistic_data)
 
- Protected Member Functions inherited from DdtDialog
virtual void AddDefaultButtonsToLayout (QBoxLayout *layout, bool show_confirm_button, bool show_quit_button, bool show_cancel_button)
 
virtual QLayout * GetMainLayout ()
 

Additional Inherited Members

- Protected Attributes inherited from DdtDialog
QLayout * main_layout
 

Detailed Description

Class for the statistic dialog

Constructor & Destructor Documentation

◆ DdtStatisticDialog()

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

Constructor

Parameters
parentPointer to the parent widget

◆ ~DdtStatisticDialog()

virtual DdtStatisticDialog::~DdtStatisticDialog ( )
virtualdefault

Destructor

Member Function Documentation

◆ ApplyCuts

void DdtStatisticDialog::ApplyCuts ( )
virtualslot

Slot called when the Apply Cuts button was pressed.

◆ CancelPressed

void DdtStatisticDialog::CancelPressed ( )
virtualslot

Slot called when the cancel button was pressed. Stops the pick operation.

◆ changeEvent()

void DdtStatisticDialog::changeEvent ( QEvent *  event)
overrideprotected

◆ closeEvent()

void DdtStatisticDialog::closeEvent ( QCloseEvent *  event)
overrideprotected

◆ ConfirmPressed

void DdtStatisticDialog::ConfirmPressed ( )
virtualslot

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

◆ CreateDialog()

void DdtStatisticDialog::CreateDialog ( )
protectedvirtual

Creates the dialog elements

Implements DdtDialog.

◆ focusInEvent()

void DdtStatisticDialog::focusInEvent ( QFocusEvent *  event)
overrideprotected

◆ GetDialogName()

QString DdtStatisticDialog::GetDialogName ( )
overridevirtual

Method that return the dialogs name in human readable form

Returns
Name of the dialog

Implements DdtDialog.

◆ ParameterChanged

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

Parameter of dialog has changed

◆ QuitPressed

void DdtStatisticDialog::QuitPressed ( )
virtualslot

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

◆ RetranslateUi()

void DdtStatisticDialog::RetranslateUi ( )
protectedvirtual

◆ SetChangedParameter()

void DdtStatisticDialog::SetChangedParameter ( const QString  param_id,
const QVariant  parameter 
)
overridevirtual

Called when an element of the dialog was changed

Parameters
param_idID of the parameter
parameterQVariant of the parameter

Reimplemented from DdtDialog.

◆ SetDefaultRect

void DdtStatisticDialog::SetDefaultRect ( )
virtualslot

Slot called when the Default button was pressed.

◆ SetInitialParameter()

void DdtStatisticDialog::SetInitialParameter ( const QString  parameter_id,
const QVariant  parameter 
)
overridevirtual

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

Implements DdtDialog.

◆ UpdateCoords

void DdtStatisticDialog::UpdateCoords ( )
virtualslot

Slot called when editing in one of the edit fields finished.

◆ UpdateStatisticData()

void DdtStatisticDialog::UpdateStatisticData ( const QList< QVariant >  table_statistic_data)
protected

Update the statistic data elements in the dialog


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