katedialogs.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 #ifndef __KATE_DIALOGS_H__
00025 #define __KATE_DIALOGS_H__
00026
00027 #include "katehighlight.h"
00028 #include "kateattribute.h"
00029
00030 #include "../interfaces/document.h"
00031
00032 #include <klistview.h>
00033 #include <kdialogbase.h>
00034 #include <kmimetype.h>
00035
00036 #include <qstringlist.h>
00037 #include <qcolor.h>
00038 #include <qintdict.h>
00039 #include <qvbox.h>
00040 #include <qtabwidget.h>
00041
00042 class KatePartPluginListItem;
00043
00044 struct syntaxContextData;
00045
00046 class KateDocument;
00047 class KateView;
00048
00049 namespace KIO { class Job; }
00050
00051 class KAccel;
00052 class KColorButton;
00053 class KComboBox;
00054 class KIntNumInput;
00055 class KKeyButton;
00056 class KKeyChooser;
00057 class KMainWindow;
00058 class KPushButton;
00059 class KRegExpDialog;
00060 class KIntNumInput;
00061 class KSpellConfig;
00062
00063 class QButtonGroup;
00064 class QCheckBox;
00065 class QHBoxLayout;
00066 class QLabel;
00067 class QLineEdit;
00068 class QPushButton;
00069 class QRadioButton;
00070 class QSpinBox;
00071 class QListBoxItem;
00072 class QWidgetStack;
00073 class QVBox;
00074 class QListViewItem;
00075 class QCheckBox;
00076
00077 class KateConfigPage : public Kate::ConfigPage
00078 {
00079 Q_OBJECT
00080
00081 public:
00082 KateConfigPage ( QWidget *parent=0, const char *name=0 );
00083 virtual ~KateConfigPage ();
00084
00085 public:
00086 bool changed () { return m_changed; }
00087
00088 private slots:
00089 void somethingHasChanged ();
00090
00091 private:
00092 bool m_changed;
00093 };
00094
00095 class SpellConfigPage : public KateConfigPage
00096 {
00097 Q_OBJECT
00098
00099 public:
00100 SpellConfigPage( QWidget* parent );
00101 ~SpellConfigPage() {};
00102
00103 void apply();
00104 void reset () { ; };
00105 void defaults () { ; };
00106
00107 private:
00108 KSpellConfig *cPage;
00109 };
00110
00111 class GotoLineDialog : public KDialogBase
00112 {
00113 Q_OBJECT
00114
00115 public:
00116
00117 GotoLineDialog(QWidget *parent, int line, int max);
00118 int getLine();
00119
00120 protected:
00121
00122 KIntNumInput *e1;
00123 QPushButton *btnOK;
00124 };
00125
00126 class IndentConfigTab : public KateConfigPage
00127 {
00128 Q_OBJECT
00129
00130 public:
00131 IndentConfigTab(QWidget *parent);
00132
00133 protected slots:
00134 void spacesToggled();
00135
00136 protected:
00137 enum { numFlags = 6 };
00138 static const int flags[numFlags];
00139 QCheckBox *opt[numFlags];
00140 KIntNumInput *indentationWidth;
00141 QButtonGroup *m_tabs;
00142 KComboBox *m_indentMode;
00143
00144 public slots:
00145 void apply ();
00146 void reload ();
00147 void reset () {};
00148 void defaults () {};
00149 };
00150
00151 class SelectConfigTab : public KateConfigPage
00152 {
00153 Q_OBJECT
00154
00155 public:
00156 SelectConfigTab(QWidget *parent);
00157
00158 protected:
00159 QButtonGroup *m_tabs;
00160
00161 public slots:
00162 void apply ();
00163 void reload ();
00164 void reset () {};
00165 void defaults () {};
00166 };
00167
00168 class EditConfigTab : public KateConfigPage
00169 {
00170 Q_OBJECT
00171
00172 public:
00173 EditConfigTab(QWidget *parent);
00174
00175 protected:
00176 enum { numFlags = 5 };
00177 static const int flags[numFlags];
00178 QCheckBox *opt[numFlags];
00179
00180 KIntNumInput *e1;
00181 KIntNumInput *e2;
00182 KIntNumInput *e3;
00183 KIntNumInput *e4;
00184 KComboBox *e5;
00185 QCheckBox *e6;
00186
00187 public slots:
00188 void apply ();
00189 void reload ();
00190 void reset () {};
00191 void defaults () {};
00192 };
00193
00194 class ViewDefaultsConfig : public KateConfigPage
00195 {
00196 Q_OBJECT
00197
00198 public:
00199 ViewDefaultsConfig( QWidget *parent );
00200 ~ViewDefaultsConfig();
00201
00202 private:
00203 QCheckBox *m_line;
00204 QCheckBox *m_folding;
00205 QCheckBox *m_collapseTopLevel;
00206 QCheckBox *m_icons;
00207 QCheckBox *m_dynwrap;
00208 KIntNumInput *m_dynwrapAlignLevel;
00209 QCheckBox *m_wwmarker;
00210 QLabel *m_dynwrapIndicatorsLabel;
00211 KComboBox *m_dynwrapIndicatorsCombo;
00212 QButtonGroup *m_bmSort;
00213
00214 public slots:
00215 void apply ();
00216 void reload ();
00217 void reset ();
00218 void defaults ();
00219 };
00220
00221 class EditKeyConfiguration: public KateConfigPage
00222 {
00223 Q_OBJECT
00224
00225 public:
00226 EditKeyConfiguration( QWidget* parent, KateDocument* doc );
00227
00228 public slots:
00229 void apply();
00230 void reload() {};
00231 void reset() {};
00232 void defaults() {};
00233
00234 protected:
00235 void showEvent ( QShowEvent * );
00236
00237 private:
00238 bool m_ready;
00239 class KateDocument *m_doc;
00240 KKeyChooser* m_keyChooser;
00241 };
00242
00243 class SaveConfigTab : public KateConfigPage
00244 {
00245 Q_OBJECT
00246 public:
00247 SaveConfigTab( QWidget *parent );
00248
00249 public slots:
00250 void apply();
00251 void reload();
00252 void reset();
00253 void defaults();
00254
00255 protected:
00256 KComboBox *m_encoding, *m_eol;
00257 QCheckBox *cbLocalFiles, *cbRemoteFiles;
00258 QCheckBox *replaceTabs, *removeSpaces;
00259 QLineEdit *leBuSuffix;
00260 };
00261
00262 class KatePartPluginListItem;
00263
00264 class KatePartPluginListView : public KListView
00265 {
00266 Q_OBJECT
00267
00268 friend class KatePartPluginListItem;
00269
00270 public:
00271 KatePartPluginListView (QWidget *parent = 0, const char *name = 0);
00272
00273 signals:
00274 void stateChange(KatePartPluginListItem *, bool);
00275
00276 private:
00277 void stateChanged(KatePartPluginListItem *, bool);
00278 };
00279
00280 class PluginConfigPage : public KateConfigPage
00281 {
00282 Q_OBJECT
00283
00284 public:
00285 PluginConfigPage (QWidget *parent);
00286 ~PluginConfigPage ();
00287
00288 public slots:
00289 void apply ();
00290 void reload () {};
00291 void reset () {};
00292 void defaults () {};
00293
00294 private:
00295 KatePartPluginListView *listView;
00296 QPtrList<KatePartPluginListItem> m_items;
00297 };
00298
00306 class KMimeTypeChooser : public QVBox
00307 {
00308 Q_OBJECT
00309
00310 public:
00311 KMimeTypeChooser( QWidget *parent=0, const QString& text=QString::null, const QStringList &selectedMimeTypes=0,
00312 bool editbutton=true, bool showcomment=true, bool showpattern=true );
00313 ~KMimeTypeChooser() {};
00314 QStringList selectedMimeTypesStringList();
00315 QStringList patterns();
00316
00317 public slots:
00318 void editMimeType();
00319 void slotCurrentChanged(QListViewItem* i);
00320
00321 private:
00322 QListView *lvMimeTypes;
00323 QPushButton *btnEditMimeType;
00324 };
00325
00339 class KMimeTypeChooserDlg : public KDialogBase
00340 {
00341 public:
00342 KMimeTypeChooserDlg( QWidget *parent=0,
00343 const QString &caption=QString::null, const QString& text=QString::null,
00344 const QStringList &selectedMimeTypes=QStringList(),
00345 bool editbutton=true, bool showcomment=true, bool showpatterns=true );
00346 ~KMimeTypeChooserDlg();
00347
00348 QStringList mimeTypes();
00349 QStringList patterns();
00350
00351 private:
00352 KMimeTypeChooser *chooser;
00353 };
00354
00355 class HlConfigPage : public KateConfigPage
00356 {
00357 Q_OBJECT
00358
00359 public:
00360 HlConfigPage (QWidget *parent);
00361 ~HlConfigPage ();
00362
00363 public slots:
00364 void apply ();
00365 void reload ();
00366 void reset () {};
00367 void defaults () {};
00368
00369 protected slots:
00370 void hlChanged(int);
00371 void hlDownload();
00372 void showMTDlg();
00373
00374 private:
00375 void writeback ();
00376
00377 QComboBox *hlCombo;
00378 QLineEdit *wildcards;
00379 QLineEdit *mimetypes;
00380 class KIntNumInput *priority;
00381
00382 QIntDict<HlData> hlDataDict;
00383 HlData *hlData;
00384 };
00385
00386 class HlDownloadDialog: public KDialogBase
00387 {
00388 Q_OBJECT
00389
00390 public:
00391 HlDownloadDialog(QWidget *parent, const char *name, bool modal);
00392 ~HlDownloadDialog();
00393
00394 private:
00395 class QListView *list;
00396 class QString listData;
00397
00398 private slots:
00399 void listDataReceived(KIO::Job *, const QByteArray &data);
00400
00401 public slots:
00402 void slotUser1();
00403 };
00404
00405 #endif
This file is part of the documentation for kate Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Mar 4 22:45:58 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003