26 #ifndef __TERRALIB_QT_AF_ABSTRACTSETTINGWIDGET_H
27 #define __TERRALIB_QT_AF_ABSTRACTSETTINGWIDGET_H
30 #include <QtGui/QWidget>
31 #include <QtGui/QMessageBox>
98 virtual void hideEvent(QHideEvent * event);
141 QString msg = tr(
"There are unsaved changes. Do you want to save it?");
143 if(QMessageBox::question(
this, tr(
"Tool bars customization"), msg, QMessageBox::No, QMessageBox::Yes) == QMessageBox::Yes)
151 QWidget::hideEvent(event);
163 #endif // __TERRALIB_QT_AF_ABSTRACTSETTINGWIDGET_H
AbstractSettingWidget(QWidget *parent=0)
virtual void resetState()=0
bool m_hasChanged
Flag that defines if the widget has changes to apply.
virtual void hideEvent(QHideEvent *event)
virtual void getHelpInformations(QString &ns, QString &helpFile)=0
virtual void saveChanges()=0
void updateApplyButtonState(const bool &)
Signal must be emited when some settings has been changed. Use the argument to tell if the...
virtual ~AbstractSettingWidget()
virtual void changeApplyButtonState(const bool &state)
Indicates that there's unsaved information. Use this method after each change in informations of the ...
virtual void onApplyButtonClicked()
A frame for setting Table options.