• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

  • kate
  • part
katedialogs.h
1/* This file is part of the KDE libraries
2 Copyright (C) 2002, 2003 Anders Lund <anders.lund@lund.tdcadsl.dk>
3 Copyright (C) 2003 Christoph Cullmann <cullmann@kde.org>
4 Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
5
6 Based on work of:
7 Copyright (C) 1999 Jochen Wilhelmy <digisnap@cs.tu-berlin.de>
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public
11 License version 2 as published by the Free Software Foundation.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
17
18 You should have received a copy of the GNU Library General Public License
19 along with this library; see the file COPYING.LIB. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA.
22*/
23
24#ifndef __KATE_DIALOGS_H__
25#define __KATE_DIALOGS_H__
26
27#include "katehighlight.h"
28#include "kateattribute.h"
29
30#include "../interfaces/document.h"
31
32#include <tdelistview.h>
33#include <kdialogbase.h>
34#include <kmimetype.h>
35
36#include <tqstringlist.h>
37#include <tqcolor.h>
38#include <tqintdict.h>
39#include <tqvbox.h>
40#include <tqtabwidget.h>
41
42class KatePartPluginListItem;
43
44struct syntaxContextData;
45
46class KateDocument;
47class KateView;
48
49namespace TDEIO
50{
51 class Job;
52 class TransferJob;
53}
54
55class TDEAccel;
56class KColorButton;
57class KComboBox;
58class KIntNumInput;
59class KKeyButton;
60class KKeyChooser;
61class TDEMainWindow;
62class KPushButton;
63class KRegExpDialog;
64class KIntNumInput;
65
66class TQButtonGroup;
67class TQCheckBox;
68class TQHBoxLayout;
69class TQLabel;
70class TQLineEdit;
71class TQPushButton;
72class TQRadioButton;
73class TQSpinBox;
74class TQListBoxItem;
75class TQWidgetStack;
76class TQVBox;
77class TQListViewItem;
78class TQCheckBox;
79
80class KateConfigPage : public Kate::ConfigPage
81{
82 TQ_OBJECT
83
84 public:
85 KateConfigPage ( TQWidget *parent=0, const char *name=0 );
86 virtual ~KateConfigPage ();
87
88 public:
89 bool changed () { return m_changed; }
90
91 private slots:
92 void somethingHasChanged ();
93
94 protected:
95 bool m_changed;
96};
97
98class KateGotoLineDialog : public KDialogBase
99{
100 TQ_OBJECT
101
102 public:
103
104 KateGotoLineDialog(TQWidget *parent, int line, int max);
105 int getLine();
106
107 protected:
108
109 KIntNumInput *e1;
110 TQPushButton *btnOK;
111};
112
113class KateIndentConfigTab : public KateConfigPage
114{
115 TQ_OBJECT
116
117 public:
118 KateIndentConfigTab(TQWidget *parent);
119
120 protected slots:
121 void somethingToggled();
122 void indenterSelected (int);
123
124 protected:
125 enum { numFlags = 8 };
126 static const int flags[numFlags];
127 TQCheckBox *opt[numFlags];
128 KIntNumInput *indentationWidth;
129 TQButtonGroup *m_tabs;
130 KComboBox *m_indentMode;
131 TQPushButton *m_configPage;
132
133 public slots:
134 void configPage();
135
136 void apply ();
137 void reload ();
138 void reset () {};
139 void defaults () {};
140};
141
142class KateSelectConfigTab : public KateConfigPage
143{
144 TQ_OBJECT
145
146 public:
147 KateSelectConfigTab(TQWidget *parent);
148
149 protected:
150 enum { numFlags = 2 };
151 static const int flags[numFlags];
152 TQCheckBox *opt[numFlags];
153
154 TQButtonGroup *m_tabs;
155 KIntNumInput *e4;
156 TQCheckBox *e6;
157
158 public slots:
159 void apply ();
160 void reload ();
161 void reset () {};
162 void defaults () {};
163};
164
165class KateEditConfigTab : public KateConfigPage
166{
167 TQ_OBJECT
168
169 public:
170 KateEditConfigTab(TQWidget *parent);
171
172 protected:
173 enum { numFlags = 5 };
174 static const int flags[numFlags];
175 TQCheckBox *opt[numFlags];
176
177 KIntNumInput *e1;
178 KIntNumInput *e2;
179 KIntNumInput *e3;
180 KComboBox *e5;
181 TQCheckBox *m_wwmarker;
182
183 public slots:
184 void apply ();
185 void reload ();
186 void reset () {};
187 void defaults () {};
188};
189
190class KateViewDefaultsConfig : public KateConfigPage
191{
192 TQ_OBJECT
193
194 public:
195 KateViewDefaultsConfig( TQWidget *parent );
196 ~KateViewDefaultsConfig();
197
198 private:
199 TQCheckBox *m_line;
200 TQCheckBox *m_folding;
201 TQCheckBox *m_collapseTopLevel;
202 TQCheckBox *m_icons;
203 TQCheckBox *m_scrollBarMarks;
204 TQCheckBox *m_dynwrap;
205 TQCheckBox *m_showIndentLines;
206 KIntNumInput *m_dynwrapAlignLevel;
207 TQLabel *m_dynwrapIndicatorsLabel;
208 KComboBox *m_dynwrapIndicatorsCombo;
209 TQButtonGroup *m_bmSort;
210
211 public slots:
212 void apply ();
213 void reload ();
214 void reset ();
215 void defaults ();
216};
217
218class KateEditKeyConfiguration: public KateConfigPage
219{
220 TQ_OBJECT
221
222 public:
223 KateEditKeyConfiguration( TQWidget* parent, KateDocument* doc );
224
225 public slots:
226 void apply();
227 void reload() {};
228 void reset() {};
229 void defaults() {};
230
231 protected:
232 void showEvent ( TQShowEvent * );
233
234 private:
235 bool m_ready;
236 class KateDocument *m_doc;
237 KKeyChooser* m_keyChooser;
238 class TDEActionCollection *m_ac;
239};
240
241class KateSaveConfigTab : public KateConfigPage
242{
243 TQ_OBJECT
244 public:
245 KateSaveConfigTab( TQWidget *parent );
246
247 public slots:
248 void apply();
249 void reload();
250 void reset();
251 void defaults();
252
253 protected:
254 KComboBox *m_encoding, *m_eol;
255 TQCheckBox *cbLocalFiles, *cbRemoteFiles;
256 TQCheckBox *replaceTabs, *removeSpaces, *allowEolDetection;
257 TQLineEdit *leBuPrefix;
258 TQLineEdit *leBuSuffix;
259 KIntNumInput *dirSearchDepth;
260 class TQSpinBox *blockCount;
261 class TQLabel *blockCountLabel;
262};
263
264class KatePartPluginListItem;
265
266class KatePartPluginListView : public TDEListView
267{
268 TQ_OBJECT
269
270 friend class KatePartPluginListItem;
271
272 public:
273 KatePartPluginListView (TQWidget *parent = 0, const char *name = 0);
274
275 signals:
276 void stateChange(KatePartPluginListItem *, bool);
277
278 private:
279 void stateChanged(KatePartPluginListItem *, bool);
280};
281
282class TQListViewItem;
283class KatePartPluginConfigPage : public KateConfigPage
284{
285 TQ_OBJECT
286
287 public:
288 KatePartPluginConfigPage (TQWidget *parent);
289 ~KatePartPluginConfigPage ();
290
291 public slots:
292 void apply ();
293 void reload () {};
294 void reset () {};
295 void defaults () {};
296
297 private slots:
298 void slotCurrentChanged( TQListViewItem * );
299 void slotConfigure();
300 void slotStateChanged( KatePartPluginListItem *, bool );
301
302 private:
303 KatePartPluginListView *listView;
304 TQPtrList<KatePartPluginListItem> m_items;
305 class TQPushButton *btnConfigure;
306};
307
308class KateHlConfigPage : public KateConfigPage
309{
310 TQ_OBJECT
311
312 public:
313 KateHlConfigPage (TQWidget *parent, KateDocument *doc);
314 ~KateHlConfigPage ();
315
316 public slots:
317 void apply ();
318 void reload ();
319 void reset () {};
320 void defaults () {};
321
322 protected slots:
323 void hlChanged(int);
324 void hlDownload();
325 void showMTDlg();
326
327 private:
328 void writeback ();
329
330 TQComboBox *hlCombo;
331 TQLineEdit *wildcards;
332 TQLineEdit *mimetypes;
333 class KIntNumInput *priority;
334 class TQLabel *author, *license;
335
336 TQIntDict<KateHlData> hlDataDict;
337 KateHlData *hlData;
338
339 KateDocument *m_doc;
340};
341
342class KateHlDownloadDialog: public KDialogBase
343{
344 TQ_OBJECT
345
346 public:
347 KateHlDownloadDialog(TQWidget *parent, const char *name, bool modal);
348 ~KateHlDownloadDialog();
349
350 private:
351 class TQListView *list;
352 class TQString listData;
353 TDEIO::TransferJob *transferJob;
354
355 private slots:
356 void listDataReceived(TDEIO::Job *, const TQByteArray &data);
357
358 public slots:
359 void slotUser1();
360};
361
362class TDEProcIO;
363class TDEProcess;
370class KateModOnHdPrompt : public KDialogBase
371{
372 TQ_OBJECT
373 public:
374 enum Status {
375 Reload=1, // 0 is KDialogBase::Cancel
376 Save,
377 Overwrite,
378 Ignore
379 };
380 KateModOnHdPrompt( KateDocument *doc, int modtype, const TQString &reason, TQWidget *parent );
381 ~KateModOnHdPrompt();
382
383 public slots:
389 void slotDiff();
390
391 void slotOk();
392 void slotApply();
393 void slotUser1();
394
395 private slots:
396 void slotPRead(TDEProcIO*);
397 void slotPDone(TDEProcess*);
398
399 private:
400 KateDocument *m_doc;
401 int m_modtype;
402 class KTempFile *m_tmpfile;
403
404};
405
406#endif
KColorButton
KComboBox
KDialogBase
KDialogBase::slotUser1
virtual void slotUser1()
KIntNumInput
KKeyButton
KKeyChooser
KPushButton
KTempFile
KateModOnHdPrompt
This dialog will prompt the user for what do with a file that is modified on disk.
Definition: katedialogs.h:371
KateModOnHdPrompt::slotDiff
void slotDiff()
Show a diff between the document text and the disk file.
Definition: katedialogs.cpp:1636
TDEAccel
TDEActionCollection
TDEListView
TDEMainWindow
TDEProcIO
TDEProcess
TDEStdAccel::reload
const TDEShortcut & reload()

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.