Loading...
Searching...
No Matches
te::qt::af::GeneralConfigWidget Class Reference

#include <GeneralConfigWidget.h>

Inheritance diagram for te::qt::af::GeneralConfigWidget:
te::qt::af::AbstractSettingWidget

Public Slots

virtual void onApplyButtonClicked ()
 

Signals

void updateApplyButtonState (const bool &)
 Signal must be emited when some settings has been changed. Use the argument to tell if the.
 

Public Member Functions

 GeneralConfigWidget (QWidget *parent=0)
 
void getHelpInformations (QString &ns, QString &helpFile)
 
QString getResumeText ()
 
bool hasChanges ()
 
void resetState ()
 
void saveChanges ()
 
virtual void setApplicationController (te::qt::af::ApplicationController *app)
 
 ~GeneralConfigWidget ()
 

Protected Member Functions

virtual void changeApplyButtonState (const bool &state)
 Indicates that there's unsaved information. Use this method after each change in informations of the widget.
 
virtual void hideEvent (QHideEvent *event)
 

Protected Attributes

te::qt::af::ApplicationControllerm_app
 
bool m_hasChanged
 Flag that defines if the widget has changes to apply.
 
QString m_resumeText
 

Private Slots

void onDefaultSRSToolButtonPressed ()
 
void onIconThemeCurrentIndexChanged (const QString &value)
 
void onSelectionColorChanged (const QColor &color)
 
void onToolBarIconSizeValueChanged (int value)
 

Private Member Functions

void initialize ()
 
void setupSRSUi ()
 

Private Attributes

te::qt::widgets::ColorPickerToolButtonm_colorPicker
 
int m_defaultSRID
 
bool m_needRestart
 
std::unique_ptr< Ui::GeneralConfigWidgetForm > m_ui
 

Detailed Description

Definition at line 61 of file GeneralConfigWidget.h.

Constructor & Destructor Documentation

◆ GeneralConfigWidget()

te::qt::af::GeneralConfigWidget::GeneralConfigWidget ( QWidget * parent = 0)

◆ ~GeneralConfigWidget()

te::qt::af::GeneralConfigWidget::~GeneralConfigWidget ( )

Member Function Documentation

◆ changeApplyButtonState()

void te::qt::af::AbstractSettingWidget::changeApplyButtonState ( const bool & state)
inlineprotectedvirtualinherited

Indicates that there's unsaved information. Use this method after each change in informations of the widget.

Parameters
stateIf true indicates that there are unsave information.

Definition at line 172 of file AbstractSettingWidget.h.

References m_hasChanged, and updateApplyButtonState().

Referenced by onApplyButtonClicked(), and updateApplyButtonState().

◆ getHelpInformations()

void te::qt::af::GeneralConfigWidget::getHelpInformations ( QString & ns,
QString & helpFile )
virtual

◆ getResumeText()

QString te::qt::af::AbstractSettingWidget::getResumeText ( )
inlineinherited

Definition at line 133 of file AbstractSettingWidget.h.

References m_resumeText.

Referenced by getHelpInformations().

◆ hasChanges()

bool te::qt::af::AbstractSettingWidget::hasChanges ( )
inlineinherited

Definition at line 138 of file AbstractSettingWidget.h.

References m_hasChanged.

Referenced by getHelpInformations().

◆ hideEvent()

void te::qt::af::AbstractSettingWidget::hideEvent ( QHideEvent * event)
inlineprotectedvirtualinherited

Definition at line 155 of file AbstractSettingWidget.h.

References m_hasChanged, resetState(), and saveChanges().

Referenced by updateApplyButtonState().

◆ initialize()

void te::qt::af::GeneralConfigWidget::initialize ( )
private

◆ onApplyButtonClicked

void te::qt::af::AbstractSettingWidget::onApplyButtonClicked ( )
inlinevirtualslotinherited

Definition at line 148 of file AbstractSettingWidget.h.

References changeApplyButtonState(), and saveChanges().

Referenced by getHelpInformations().

◆ onDefaultSRSToolButtonPressed

void te::qt::af::GeneralConfigWidget::onDefaultSRSToolButtonPressed ( )
privateslot

◆ onIconThemeCurrentIndexChanged

void te::qt::af::GeneralConfigWidget::onIconThemeCurrentIndexChanged ( const QString & value)
privateslot

◆ onSelectionColorChanged

void te::qt::af::GeneralConfigWidget::onSelectionColorChanged ( const QColor & color)
privateslot

◆ onToolBarIconSizeValueChanged

void te::qt::af::GeneralConfigWidget::onToolBarIconSizeValueChanged ( int value)
privateslot

◆ resetState()

void te::qt::af::GeneralConfigWidget::resetState ( )
virtual

◆ saveChanges()

void te::qt::af::GeneralConfigWidget::saveChanges ( )
virtual

◆ setApplicationController()

void te::qt::af::AbstractSettingWidget::setApplicationController ( te::qt::af::ApplicationController * app)
inlinevirtualinherited

Reimplemented in te::qt::af::ToolbarsWidget.

Definition at line 143 of file AbstractSettingWidget.h.

References m_app.

Referenced by getHelpInformations().

◆ setupSRSUi()

void te::qt::af::GeneralConfigWidget::setupSRSUi ( )
private

References slots.

◆ updateApplyButtonState

void te::qt::af::AbstractSettingWidget::updateApplyButtonState ( const bool & )
signalinherited

Signal must be emited when some settings has been changed. Use the argument to tell if the.

References changeApplyButtonState(), and hideEvent().

Referenced by changeApplyButtonState().

Member Data Documentation

◆ m_app

te::qt::af::ApplicationController* te::qt::af::AbstractSettingWidget::m_app
protectedinherited

Definition at line 119 of file AbstractSettingWidget.h.

Referenced by AbstractSettingWidget(), and setApplicationController().

◆ m_colorPicker

te::qt::widgets::ColorPickerToolButton* te::qt::af::GeneralConfigWidget::m_colorPicker
private

Definition at line 96 of file GeneralConfigWidget.h.

◆ m_defaultSRID

int te::qt::af::GeneralConfigWidget::m_defaultSRID
private

Definition at line 97 of file GeneralConfigWidget.h.

◆ m_hasChanged

bool te::qt::af::AbstractSettingWidget::m_hasChanged
protectedinherited

Flag that defines if the widget has changes to apply.

Definition at line 115 of file AbstractSettingWidget.h.

Referenced by AbstractSettingWidget(), changeApplyButtonState(), hasChanges(), and hideEvent().

◆ m_needRestart

bool te::qt::af::GeneralConfigWidget::m_needRestart
private

Definition at line 98 of file GeneralConfigWidget.h.

◆ m_resumeText

QString te::qt::af::AbstractSettingWidget::m_resumeText
protectedinherited

Definition at line 117 of file AbstractSettingWidget.h.

Referenced by getResumeText().

◆ m_ui

std::unique_ptr<Ui::GeneralConfigWidgetForm> te::qt::af::GeneralConfigWidget::m_ui
private

Definition at line 95 of file GeneralConfigWidget.h.


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