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 virtual void setSmallDialogs (bool smallDialogs);
00031
00032 private slots:
00033 void slotCursorSize (int);
00034 void slotExtraPrecision (int);
00035 void slotSaveDefault();
00036
00037 protected:
00038 virtual void handleOk ();
00039
00040 private:
00041
00042 void createControls (QGridLayout *layout,
00043 int &row);
00044 void updateControls();
00045
00046 QSpinBox *m_spinCursorSize;
00047 QSpinBox *m_spinExtraPrecision;
00048
00049 QPushButton *m_btnSaveDefault;
00050
00051 DocumentModelGeneral *m_modelGeneralBefore;
00052 DocumentModelGeneral *m_modelGeneralAfter;
00053 };
00054
00055 #endif // DLG_SETTINGS_GENERAL_H