Diffstat (limited to 'noncore/apps/tinykate/libkate/view/kateviewdialog.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/libkate/view/kateviewdialog.h | 194 |
1 files changed, 194 insertions, 0 deletions
diff --git a/noncore/apps/tinykate/libkate/view/kateviewdialog.h b/noncore/apps/tinykate/libkate/view/kateviewdialog.h new file mode 100644 index 0000000..60f30bd --- a/dev/null +++ b/noncore/apps/tinykate/libkate/view/kateviewdialog.h | |||
@@ -0,0 +1,194 @@ | |||
1 | /*************************************************************************** | ||
2 | kateviewdialog.h - description | ||
3 | ------------------- | ||
4 | copyright : (C) 2001 by The Kate Team | ||
5 | (C) 2002 by Joseph Wenninger | ||
6 | email : kwrite-devel@kde.org | ||
7 | jowenn@kde.org | ||
8 | |||
9 | ***************************************************************************/ | ||
10 | |||
11 | /*************************************************************************** | ||
12 | * * | ||
13 | * This program is free software; you can redistribute it and/or modify * | ||
14 | * it under the terms of the GNU General Public License as published by * | ||
15 | * the Free Software Foundation; either version 2 of the License, or * | ||
16 | * (at your option) any later version. * | ||
17 | * * | ||
18 | ***************************************************************************/ | ||
19 | // Dialogs | ||
20 | |||
21 | #ifndef _KWDIALOG_H_ | ||
22 | #define _KWDIALOG_H_ | ||
23 | |||
24 | |||
25 | class QCheckBox; | ||
26 | class QLineEdit; | ||
27 | class QPushButton; | ||
28 | class QRadioButton; | ||
29 | class QSpinBox; | ||
30 | class KColorButton; | ||
31 | class QComboBox; | ||
32 | |||
33 | #include <kdialogbase.h> | ||
34 | #include "kateview.h" | ||
35 | |||
36 | class SearchDialog : public KDialogBase | ||
37 | { | ||
38 | Q_OBJECT | ||
39 | |||
40 | public: | ||
41 | SearchDialog( QWidget *parent, QStringList &searchFor, QStringList &replaceWith, int flags ); | ||
42 | QString getSearchFor(); | ||
43 | QString getReplaceWith(); | ||
44 | int getFlags(); | ||
45 | void setSearchText( const QString &searchstr ); | ||
46 | |||
47 | protected slots: | ||
48 | void slotOk(); | ||
49 | |||
50 | protected: | ||
51 | QComboBox *m_search; | ||
52 | QComboBox *m_replace; | ||
53 | QCheckBox *m_opt1; | ||
54 | QCheckBox *m_opt2; | ||
55 | QCheckBox *m_opt3; | ||
56 | QCheckBox *m_optRegExp; | ||
57 | QCheckBox *m_opt4; | ||
58 | QCheckBox *m_opt5; | ||
59 | QCheckBox *m_opt6; | ||
60 | }; | ||
61 | |||
62 | class ReplacePrompt : public KDialogBase | ||
63 | { | ||
64 | Q_OBJECT | ||
65 | |||
66 | public: | ||
67 | |||
68 | ReplacePrompt(QWidget *parent); | ||
69 | |||
70 | signals: | ||
71 | |||
72 | void clicked(); | ||
73 | |||
74 | protected slots: | ||
75 | |||
76 | void slotUser1( void ); // All | ||
77 | void slotUser2( void ); // No | ||
78 | void slotUser3( void ); // Yes | ||
79 | virtual void done(int); | ||
80 | |||
81 | protected: | ||
82 | |||
83 | void closeEvent(QCloseEvent *); | ||
84 | }; | ||
85 | |||
86 | class GotoLineDialog : public KDialogBase | ||
87 | { | ||
88 | Q_OBJECT | ||
89 | |||
90 | public: | ||
91 | |||
92 | GotoLineDialog(QWidget *parent, int line, int max); | ||
93 | int getLine(); | ||
94 | |||
95 | protected: | ||
96 | |||
97 | QSpinBox *e1; | ||
98 | QPushButton *btnOK; | ||
99 | }; | ||
100 | |||
101 | class IndentConfigTab : public QWidget | ||
102 | { | ||
103 | Q_OBJECT | ||
104 | |||
105 | public: | ||
106 | |||
107 | IndentConfigTab(QWidget *parent, KateView *); | ||
108 | void getData(KateView *); | ||
109 | |||
110 | protected: | ||
111 | |||
112 | static const int numFlags = 6; | ||
113 | static const int flags[numFlags]; | ||
114 | QCheckBox *opt[numFlags]; | ||
115 | }; | ||
116 | |||
117 | class SelectConfigTab : public QWidget | ||
118 | { | ||
119 | Q_OBJECT | ||
120 | |||
121 | public: | ||
122 | |||
123 | SelectConfigTab(QWidget *parent, KateView *); | ||
124 | void getData(KateView *); | ||
125 | |||
126 | protected: | ||
127 | |||
128 | static const int numFlags = 6; | ||
129 | static const int flags[numFlags]; | ||
130 | QCheckBox *opt[numFlags]; | ||
131 | }; | ||
132 | |||
133 | class EditConfigTab : public QWidget | ||
134 | { | ||
135 | Q_OBJECT | ||
136 | |||
137 | public: | ||
138 | |||
139 | EditConfigTab(QWidget *parent, KateView *); | ||
140 | void getData(KateView *); | ||
141 | |||
142 | protected: | ||
143 | |||
144 | static const int numFlags = 9; | ||
145 | static const int flags[numFlags]; | ||
146 | QCheckBox *opt[numFlags]; | ||
147 | QComboBox *encoding; | ||
148 | |||
149 | |||
150 | QSpinBox *e1; | ||
151 | QSpinBox *e2; | ||
152 | QSpinBox *e3; | ||
153 | }; | ||
154 | |||
155 | class ColorConfig : public QWidget | ||
156 | { | ||
157 | Q_OBJECT | ||
158 | |||
159 | public: | ||
160 | |||
161 | ColorConfig( QWidget *parent = 0, char *name = 0 ); | ||
162 | ~ColorConfig(); | ||
163 | |||
164 | void setColors( QColor * ); | ||
165 | void getColors( QColor * ); | ||
166 | |||
167 | private: | ||
168 | |||
169 | KColorButton *m_back; | ||
170 | KColorButton *m_selected; | ||
171 | }; | ||
172 | |||
173 | class FontConfig : public QWidget | ||
174 | { | ||
175 | Q_OBJECT | ||
176 | |||
177 | public: | ||
178 | |||
179 | FontConfig( QWidget *parent = 0, char *name = 0 ); | ||
180 | ~FontConfig(); | ||
181 | |||
182 | void setFont ( const QFont &font ); | ||
183 | QFont getFont ( ) { return myFont; }; | ||
184 | |||
185 | private: | ||
186 | // class KFontChooser *m_fontchooser; | ||
187 | QFont myFont; | ||
188 | |||
189 | private slots: | ||
190 | void slotFontSelected( const QFont &font ); | ||
191 | }; | ||
192 | |||
193 | |||
194 | #endif //_KWDIALOG_H_ | ||