00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef kfconfigpages_h
00022 #define kfconfigpages_h
00023
00024 #include <QFont>
00025 #include <q3valuevector.h>
00026
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
00106
00107
00108
00109
00110 QCheckBox* syntaxHighlighting;
00111
00112
00113 Q3ButtonGroup* styleBox;
00114 QRadioButton* symbolStyle;
00115 QRadioButton* esstixStyle;
00116 QRadioButton* cmStyle;
00117
00118 bool m_changed;
00119 };
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160 KFORMULA_NAMESPACE_END
00161
00162 #endif // kfconfigpages_h