kspread Library API Documentation

kspread_dlg_preference.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002-2004 Ariya Hidayat <ariya@kde.org>
00003              (C) 2002-2003 Norbert Andres <nandres@web.de>
00004              (C) 2000-2003 Laurent Montel <montel@kde.org>
00005              (C) 2002 John Dailey <dailey@vt.edu>
00006              (C) 2002 Philipp Mueller <philipp.mueller@gmx.de>
00007              (C) 2001-2002 David Faure <faure@kde.org>
00008              (C) 2001 Werner Trobin <trobin@kde.org>
00009              (C) 2000 Bernd Johannes Wuebben <wuebben@kde.org>
00010 
00011    This library is free software; you can redistribute it and/or
00012    modify it under the terms of the GNU Library General Public
00013    License as published by the Free Software Foundation; either
00014    version 2 of the License, or (at your option) any later version.
00015 
00016    This library is distributed in the hope that it will be useful,
00017    but WITHOUT ANY WARRANTY; without even the implied warranty of
00018    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019    Library General Public License for more details.
00020 
00021    You should have received a copy of the GNU Library General Public License
00022    along with this library; see the file COPYING.LIB.  If not, write to
00023    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00024    Boston, MA 02111-1307, USA.
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 //class KoSpellConfigWidget;
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   //store old config
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
KDE Logo
This file is part of the documentation for kspread Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:43:02 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003