te::qt::af::AbstractSettingWidget Class Referenceabstract

A frame for setting Table options. More...

#include <AbstractSettingWidget.h>

Inheritance diagram for te::qt::af::AbstractSettingWidget:
ProjectWidget te::qt::af::DisplayWidget te::qt::af::GeneralConfigWidget te::qt::af::TableWidget te::qt::af::ToolbarsWidget

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. More...
 

Public Member Functions

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

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. More...
 
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. More...
 
QString m_resumeText
 

Detailed Description

A frame for setting Table options.

Definition at line 47 of file AbstractSettingWidget.h.

Constructor & Destructor Documentation

te::qt::af::AbstractSettingWidget::AbstractSettingWidget ( QWidget *  parent = 0)
inline

Definition at line 122 of file AbstractSettingWidget.h.

te::qt::af::AbstractSettingWidget::~AbstractSettingWidget ( )
inlinevirtual

Definition at line 129 of file AbstractSettingWidget.h.

Member Function Documentation

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

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

virtual void te::qt::af::AbstractSettingWidget::getHelpInformations ( QString &  ns,
QString &  helpFile 
)
pure virtual
QString te::qt::af::AbstractSettingWidget::getResumeText ( )
inline

Definition at line 133 of file AbstractSettingWidget.h.

References m_resumeText.

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

Definition at line 138 of file AbstractSettingWidget.h.

References m_hasChanged.

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

Definition at line 155 of file AbstractSettingWidget.h.

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

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

Definition at line 148 of file AbstractSettingWidget.h.

References changeApplyButtonState(), and saveChanges().

virtual void te::qt::af::AbstractSettingWidget::resetState ( )
pure virtual
virtual void te::qt::af::AbstractSettingWidget::saveChanges ( )
pure virtual
void te::qt::af::AbstractSettingWidget::setApplicationController ( te::qt::af::ApplicationController app)
inlinevirtual

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

Definition at line 143 of file AbstractSettingWidget.h.

References m_app.

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

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

Referenced by changeApplyButtonState().

Member Data Documentation

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

Definition at line 119 of file AbstractSettingWidget.h.

Referenced by setApplicationController().

bool te::qt::af::AbstractSettingWidget::m_hasChanged
protected

Flag that defines if the widget has changes to apply.

Definition at line 115 of file AbstractSettingWidget.h.

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

QString te::qt::af::AbstractSettingWidget::m_resumeText
protected

Definition at line 117 of file AbstractSettingWidget.h.

Referenced by getResumeText().


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