kspread_dlg_preference.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef __kspread_dlg_preference__
00028 #define __kspread_dlg_preference__
00029
00030 #include <kdialogbase.h>
00031
00032 class KSpreadView;
00033 class KSpreadSheet;
00034 class KConfig;
00035 class KIntNumInput;
00036 class KDoubleNumInput;
00037 class KSpellConfig;
00038 class QCheckBox;
00039 class QComboBox;
00040 class QPushButton;
00041 class KColorButton;
00042
00043
00044 class parameterLocale : public QObject
00045 {
00046 Q_OBJECT
00047 public:
00048 parameterLocale( KSpreadView* _view,QVBox *box, char *name = 0);
00049 void apply();
00050 public slots:
00051 void updateDefaultSystemConfig();
00052 protected:
00053 QLabel *m_shortDate,*m_time,*m_money,*m_date,*m_language,*m_number;
00054 QPushButton *m_updateButton;
00055 KSpreadView* m_pView;
00056 bool m_bUpdateLocale;
00057 };
00058
00059 class configure : public QObject
00060 {
00061 Q_OBJECT
00062 public:
00063 configure( KSpreadView* _view,QVBox *box, char *name = 0 );
00064 void apply();
00065 void slotDefault();
00066 protected:
00067 KSpreadView* m_pView;
00068 KIntNumInput *nbPage;
00069 KIntNumInput* nbRecentFile;
00070 KIntNumInput* autoSaveDelay;
00071 QCheckBox *showVScrollBar;
00072 QCheckBox *showHScrollBar;
00073 QCheckBox *showColHeader;
00074 QCheckBox *showRowHeader;
00075 QCheckBox *showTabBar;
00076 QCheckBox *showFormulaBar;
00077 QCheckBox *showStatusBar;
00078 QCheckBox *m_createBackupFile;
00079 bool m_oldBackupFile;
00080
00081 KConfig* config;
00082 int oldRecent;
00083 int oldAutoSaveValue;
00084 } ;
00085
00086
00087 class miscParameters : public QObject
00088 {
00089 Q_OBJECT
00090 public:
00091 miscParameters( KSpreadView* _view, QVBox *box, char *name = 0 );
00092 void apply();
00093 void slotDefault();
00094
00095 void initComboBox();
00096
00097 public slots:
00098 void slotTextComboChanged(const QString &);
00099
00100 protected:
00101 KSpreadView* m_pView;
00102 KDoubleNumInput *valIndent;
00103 KConfig* config;
00104 QComboBox *typeCompletion;
00105 QComboBox *typeCalc;
00106 QComboBox *typeOfMove;
00107 QCheckBox *msgError;
00108 QCheckBox *commentIndicator;
00109 bool comboChanged;
00110 } ;
00111
00112 class colorParameters : public QObject
00113 {
00114 Q_OBJECT
00115 public:
00116 colorParameters( KSpreadView* _view, QVBox *box, char *name = 0 );
00117 void apply();
00118 void slotDefault();
00119 protected:
00120 KSpreadView* m_pView;
00121 KColorButton* gridColor;
00122 KColorButton* pageBorderColor;
00123 KConfig* config;
00124 } ;
00125
00126 class configureLayoutPage : public QObject
00127 {
00128 Q_OBJECT
00129 public:
00130 configureLayoutPage( KSpreadView* _view,QVBox *box, char *name = 0 );
00131 void apply();
00132 void slotDefault();
00133 void initCombo();
00134 protected:
00135 KSpreadView* m_pView;
00136 QComboBox *defaultOrientationPage;
00137 QComboBox *defaultSizePage;
00138 QComboBox *defaultUnit;
00139
00140 int paper;
00141 int orientation;
00142 int unit;
00143
00144 KConfig* config;
00145 } ;
00146
00147 class configureSpellPage : public QObject
00148 {
00149 Q_OBJECT
00150 public:
00151 configureSpellPage( KSpreadView* _view, QVBox *box, char *name = 0 );
00152 void apply();
00153 void slotDefault();
00154 protected:
00155 KSpreadView * m_pView;
00156 KConfig * config;
00157 KSpellConfig *m_spellConfigWidget;
00158 QCheckBox *dontCheckUpperWord;
00159 QCheckBox *dontCheckTitleCase;
00160 } ;
00161
00162 class KSpreadpreference : public KDialogBase
00163 {
00164 Q_OBJECT
00165 public:
00166 enum { KS_PREFERENCES = 1, KS_LOCALE = 2, KS_INTERFACE = 4,
00167 KS_MISC = 8, KS_COLOR = 16, KS_LAYOUT = 32, KS_SPELLING = 64 };
00168 KSpreadpreference( KSpreadView* parent, const char* name);
00169 public slots:
00170 void slotApply();
00171 void slotDefault();
00172 void openPage(int flags);
00173 private :
00174 KSpreadView* m_pView;
00175 configure * _configure;
00176 miscParameters *_miscParameter;
00177 colorParameters *_colorParameter;
00178 configureLayoutPage *_layoutPage;
00179 configureSpellPage *_spellPage;
00180 parameterLocale *_localePage;
00181 };
00182
00183
00184
00185 #endif
This file is part of the documentation for kspread Library Version 1.4.2.