author | mickeyl <mickeyl> | 2004-05-23 11:26:00 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-05-23 11:26:00 (UTC) |
commit | 163a07abb5fbf5346585bce5edf5e48d015b442a (patch) (unidiff) | |
tree | 0ae95b1f32ded0e1766b240ccfcfec856dafea09 /noncore/apps/tinykate/mainwindow/tinykate.h | |
parent | 6cd90404121a78f3181a35acc056d7feca3d6aeb (diff) | |
download | opie-163a07abb5fbf5346585bce5edf5e48d015b442a.zip opie-163a07abb5fbf5346585bce5edf5e48d015b442a.tar.gz opie-163a07abb5fbf5346585bce5edf5e48d015b442a.tar.bz2 |
CLEANUP: sanitize tinykate's build structure
Diffstat (limited to 'noncore/apps/tinykate/mainwindow/tinykate.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/mainwindow/tinykate.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/noncore/apps/tinykate/mainwindow/tinykate.h b/noncore/apps/tinykate/mainwindow/tinykate.h new file mode 100644 index 0000000..f435c03 --- a/dev/null +++ b/noncore/apps/tinykate/mainwindow/tinykate.h | |||
@@ -0,0 +1,66 @@ | |||
1 | /*************************************************************************** | ||
2 | tinykate.h | ||
3 | Tiny KATE mainwindow | ||
4 | ------------------- | ||
5 | begin : November 2002 | ||
6 | copyright : (C) 2002 by Joseph Wenninger <jowenn@kde.org> | ||
7 | ***************************************************************************/ | ||
8 | |||
9 | /*************************************************************************** | ||
10 | * * | ||
11 | * This program is free software; you can redistribute it and/or modify * | ||
12 | * it under the terms of the GNU General Public License as published by * | ||
13 | * the Free Software Foundation. * | ||
14 | * ONLY VERSION 2 OF THE LICENSE IS APPLICABLE * | ||
15 | * * | ||
16 | ***************************************************************************/ | ||
17 | |||
18 | #ifndef __TINYKATE_H__ | ||
19 | #define __TINYKATE_H__ | ||
20 | |||
21 | |||
22 | #include <qmainwindow.h> | ||
23 | #include <opie2/otabwidget.h> | ||
24 | #include <ktexteditor.h> | ||
25 | |||
26 | class QToolButton; | ||
27 | class QAction; | ||
28 | class QPopupMenu; | ||
29 | |||
30 | class TinyKate : public QMainWindow | ||
31 | { | ||
32 | Q_OBJECT | ||
33 | public: | ||
34 | TinyKate( QWidget *parent=0, const char *name=0, WFlags f = 0); | ||
35 | ~TinyKate( ); | ||
36 | static QString appName() { return QString::fromLatin1( "kate" ); }; | ||
37 | |||
38 | |||
39 | public slots: | ||
40 | void slotNew(); | ||
41 | void setDocument(const QString& fileref); | ||
42 | |||
43 | protected slots: | ||
44 | void slotOpen(); | ||
45 | void slotClose(); | ||
46 | void slotCurrentChanged(QWidget *); | ||
47 | void slotSave(); | ||
48 | void slotSaveAs(); | ||
49 | protected: | ||
50 | void open(const QString&); | ||
51 | private: | ||
52 | QString currentFileName; | ||
53 | Opie::Ui::OTabWidget *tabwidget; | ||
54 | KTextEditor::View *currentView; | ||
55 | bool shutDown; | ||
56 | |||
57 | QToolButton *editCopy, *editCut, *editPaste, *editUndo, *editRedo, *editFindReplace; | ||
58 | QAction *viewIncFontSizes, *viewDecFontSizes, *utilSettings; | ||
59 | |||
60 | QPopupMenu *hlmenu; | ||
61 | uint nextUnnamed; | ||
62 | uint viewCount; | ||
63 | }; | ||
64 | |||
65 | |||
66 | #endif // __TINYKATE_H__ | ||