24 #ifndef __KATE_DIALOGS_H__
25 #define __KATE_DIALOGS_H__
27 #include "katehighlight.h"
28 #include "kateattribute.h"
30 #include "../interfaces/document.h"
32 #include <tdelistview.h>
33 #include <kdialogbase.h>
34 #include <kmimetype.h>
36 #include <tqstringlist.h>
38 #include <tqintdict.h>
40 #include <tqtabwidget.h>
42 class KatePartPluginListItem;
44 struct syntaxContextData;
80 class KateConfigPage :
public Kate::ConfigPage
85 KateConfigPage ( TQWidget *parent=0,
const char *name=0 );
86 virtual ~KateConfigPage ();
89 bool changed () {
return m_changed; }
92 void somethingHasChanged ();
104 KateGotoLineDialog(TQWidget *parent,
int line,
int max);
113 class KateIndentConfigTab :
public KateConfigPage
118 KateIndentConfigTab(TQWidget *parent);
121 void somethingToggled();
122 void indenterSelected (
int);
125 enum { numFlags = 8 };
126 static const int flags[numFlags];
127 TQCheckBox *opt[numFlags];
129 TQButtonGroup *m_tabs;
131 TQPushButton *m_configPage;
142 class KateSelectConfigTab :
public KateConfigPage
147 KateSelectConfigTab(TQWidget *parent);
150 enum { numFlags = 2 };
151 static const int flags[numFlags];
152 TQCheckBox *opt[numFlags];
154 TQButtonGroup *m_tabs;
165 class KateEditConfigTab :
public KateConfigPage
170 KateEditConfigTab(TQWidget *parent);
173 enum { numFlags = 5 };
174 static const int flags[numFlags];
175 TQCheckBox *opt[numFlags];
181 TQCheckBox *m_wwmarker;
190 class KateViewDefaultsConfig :
public KateConfigPage
195 KateViewDefaultsConfig( TQWidget *parent );
196 ~KateViewDefaultsConfig();
200 TQCheckBox *m_folding;
201 TQCheckBox *m_collapseTopLevel;
203 TQCheckBox *m_scrollBarMarks;
204 TQCheckBox *m_dynwrap;
205 TQCheckBox *m_showIndentLines;
207 TQLabel *m_dynwrapIndicatorsLabel;
209 TQButtonGroup *m_bmSort;
218 class KateEditKeyConfiguration:
public KateConfigPage
223 KateEditKeyConfiguration( TQWidget* parent, KateDocument* doc );
232 void showEvent ( TQShowEvent * );
236 class KateDocument *m_doc;
241 class KateSaveConfigTab :
public KateConfigPage
245 KateSaveConfigTab( TQWidget *parent );
255 TQCheckBox *cbLocalFiles, *cbRemoteFiles;
256 TQCheckBox *replaceTabs, *removeSpaces, *allowEolDetection;
257 TQLineEdit *leBuPrefix;
258 TQLineEdit *leBuSuffix;
260 class TQSpinBox *blockCount;
261 class TQLabel *blockCountLabel;
264 class KatePartPluginListItem;
270 friend class KatePartPluginListItem;
273 KatePartPluginListView (TQWidget *parent = 0,
const char *name = 0);
276 void stateChange(KatePartPluginListItem *,
bool);
279 void stateChanged(KatePartPluginListItem *,
bool);
282 class TQListViewItem;
283 class KatePartPluginConfigPage :
public KateConfigPage
288 KatePartPluginConfigPage (TQWidget *parent);
289 ~KatePartPluginConfigPage ();
298 void slotCurrentChanged( TQListViewItem * );
299 void slotConfigure();
300 void slotStateChanged( KatePartPluginListItem *,
bool );
303 KatePartPluginListView *listView;
304 TQPtrList<KatePartPluginListItem> m_items;
305 class TQPushButton *btnConfigure;
308 class KateHlConfigPage :
public KateConfigPage
313 KateHlConfigPage (TQWidget *parent, KateDocument *doc);
314 ~KateHlConfigPage ();
331 TQLineEdit *wildcards;
332 TQLineEdit *mimetypes;
334 class TQLabel *author, *license;
336 TQIntDict<KateHlData> hlDataDict;
347 KateHlDownloadDialog(TQWidget *parent,
const char *name,
bool modal);
348 ~KateHlDownloadDialog();
351 class TQListView *list;
352 class TQString listData;
353 TDEIO::TransferJob *transferJob;
356 void listDataReceived(TDEIO::Job *,
const TQByteArray &data);
380 KateModOnHdPrompt( KateDocument *doc,
int modtype,
const TQString &reason, TQWidget *parent );
This dialog will prompt the user for what do with a file that is modified on disk.
void slotDiff()
Show a diff between the document text and the disk file.
const TDEShortcut & reload()