F:/KPlato/koffice/libs/kformula/kformulaconfigpage.h

Aller à la documentation de ce fichier.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2001 Andrea Rizzi <rizzi@kde.org>
00003                       Ulrich Kuettler <ulrich.kuettler@mailbox.tu-dresden.de>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef kfconfigpages_h
00022 #define kfconfigpages_h
00023 
00024 #include <QFont>
00025 #include <q3valuevector.h>
00026 //Added by qt3to4:
00027 #include <QLabel>
00028 #include <Q3GridLayout>
00029 
00030 #include <kdialog.h>
00031 #include <kvbox.h>
00032 
00033 #include "kformuladefs.h"
00034 #include <koffice_export.h>
00035 class Q3ButtonGroup;
00036 class QCheckBox;
00037 class QColor;
00038 class Q3GridLayout;
00039 class Q3GroupBox;
00040 class QLabel;
00041 class QPushButton;
00042 class QRadioButton;
00043 class QSpinBox;
00044 class QStringList;
00045 class QWidget;
00046 
00047 class KColorButton;
00048 class KConfig;
00049 class K3ListView;
00050 class KPushButton;
00051 class KIntNumInput;
00052 
00053 KFORMULA_NAMESPACE_BEGIN
00054 
00055 
00056 class Document;
00057 
00058 class KOFORMULA_EXPORT ConfigurePage : public QObject
00059 {
00060     Q_OBJECT
00061 public:
00062 
00063     ConfigurePage( Document* document, QWidget* view, KConfig* config, KVBox* box, char* name = 0 );
00064     void apply();
00065     void slotDefault();
00066 
00067 protected:
00068 
00069     bool selectFont( QFont & );
00070 
00071 protected slots:
00072 
00073     void syntaxHighlightingClicked();
00074     void selectNewDefaultFont();
00075     void selectNewNameFont();
00076     void selectNewNumberFont();
00077     void selectNewOperatorFont();
00078 
00079     void baseSizeChanged( int value );
00080     void slotChanged();
00081 
00082 private:
00083 
00084     QPushButton* buildFontLine( QWidget* fontWidget, Q3GridLayout* layout, int number,
00085                                 QFont font, const QString& name, QLabel*& fontName );
00086 
00087     void updateFontLabel( QFont font, QLabel* label );
00088 
00089     Document* m_document;
00090     QWidget* m_view;
00091     KConfig* m_config;
00092 
00093     QFont defaultFont;
00094     QFont nameFont;
00095     QFont numberFont;
00096     QFont operatorFont;
00097 
00098     KIntNumInput* sizeSpin;
00099 
00100     QLabel* defaultFontName;
00101     QLabel* nameFontName;
00102     QLabel* numberFontName;
00103     QLabel* operatorFontName;
00104 
00105 //     KColorButton* defaultColorBtn;
00106 //     KColorButton* numberColorBtn;
00107 //     KColorButton* operatorColorBtn;
00108 //     KColorButton* emptyColorBtn;
00109 //     KColorButton* errorColorBtn;
00110     QCheckBox* syntaxHighlighting;
00111 //     QGroupBox* hlBox;
00112 
00113     Q3ButtonGroup* styleBox;
00114     QRadioButton* symbolStyle;
00115     QRadioButton* esstixStyle;
00116     QRadioButton* cmStyle;
00117 
00118     bool m_changed;
00119 };
00120 
00121 
00122 // class MathFontsConfigurePage : public QObject
00123 // {
00124 //     Q_OBJECT
00125 // public:
00126 
00127 //     MathFontsConfigurePage( Document* document, QWidget* view, KConfig* config, QVBox* box, char* name = 0 );
00128 //     void apply();
00129 //     void slotDefault();
00130 
00131 //     QValueVector<QString>::iterator findUsedFont( QString name );
00132 
00133 // protected slots:
00134 
00135 //     void slotAddFont();
00136 //     void slotRemoveFont();
00137 //     void slotMoveUp();
00138 //     void slotMoveDown();
00139 
00140 // private:
00141 
00142 //     void setupLists( const QStringList& usedFonts );
00143 
00144 //     Document* m_document;
00145 //     QWidget* m_view;
00146 //     KConfig* m_config;
00147 
00148 //     K3ListView* availableFonts;
00149 //     K3ListView* requestedFonts;
00150 
00151 //     KPushButton* addFont;
00152 //     KPushButton* removeFont;
00153 //     KPushButton* moveUp;
00154 //     KPushButton* moveDown;
00155 
00156 //     QValueVector<QString> usedFontList;
00157 // };
00158 
00159 
00160 KFORMULA_NAMESPACE_END
00161 
00162 #endif // kfconfigpages_h

Généré le Wed Nov 22 23:41:01 2006 pour KPlato par  doxygen 1.5.1-p1