00001
00002
00003
00004
00005
00006
00007 #ifndef DLG_SETTINGS_GENERAL_H
00008 #define DLG_SETTINGS_GENERAL_H
00009
00010 #include "DlgSettingsAbstractBase.h"
00011
00012 class DocumentModelGeneral;
00013 class QGridLayout;
00014 class QPushButton;
00015 class QSpinBox;
00016
00018 class DlgSettingsGeneral : public DlgSettingsAbstractBase
00019 {
00020 Q_OBJECT;
00021
00022 public:
00024 DlgSettingsGeneral(MainWindow &mainWindow);
00025 virtual ~DlgSettingsGeneral();
00026
00027 virtual void createOptionalSaveDefault (QHBoxLayout *layout);
00028 virtual QWidget *createSubPanel ();
00029 virtual void load (CmdMediator &cmdMediator);
00030
00031 private slots:
00032 void slotCursorSize (int);
00033 void slotExtraPrecision (int);
00034 void slotSaveDefault();
00035
00036 protected:
00037 virtual void handleOk ();
00038
00039 private:
00040
00041 void createControls (QGridLayout *layout,
00042 int &row);
00043 void updateControls();
00044
00045 QSpinBox *m_spinCursorSize;
00046 QSpinBox *m_spinExtraPrecision;
00047
00048 QPushButton *m_btnSaveDefault;
00049
00050 DocumentModelGeneral *m_modelGeneralBefore;
00051 DocumentModelGeneral *m_modelGeneralAfter;
00052 };
00053
00054 #endif // DLG_SETTINGS_GENERAL_H