author | harlekin <harlekin> | 2003-04-10 20:10:36 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-04-10 20:10:36 (UTC) |
commit | 0740e2ef7132c53ebe29cc3b548647012bc75d05 (patch) (unidiff) | |
tree | eaf9a1fbdf73324743dc1a896e813c6e2675a513 /noncore/apps/tinykate/tinykate.h | |
parent | dbbc4f5122cae1c6d64ce3e6793f4f588075a103 (diff) | |
download | opie-0740e2ef7132c53ebe29cc3b548647012bc75d05.zip opie-0740e2ef7132c53ebe29cc3b548647012bc75d05.tar.gz opie-0740e2ef7132c53ebe29cc3b548647012bc75d05.tar.bz2 |
goodbye qpemenubar and qpetoolbar ( both are depreciated ), using qmenubar now, and also the icons are in the menubar now as qtoolbutton which as side effect gives them the nice benefit if beeing centered to the right
Diffstat (limited to 'noncore/apps/tinykate/tinykate.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/tinykate.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/noncore/apps/tinykate/tinykate.h b/noncore/apps/tinykate/tinykate.h index bb32f98..cdd8f43 100644 --- a/noncore/apps/tinykate/tinykate.h +++ b/noncore/apps/tinykate/tinykate.h | |||
@@ -14,24 +14,25 @@ | |||
14 | * ONLY VERSION 2 OF THE LICENSE IS APPLICABLE * | 14 | * ONLY VERSION 2 OF THE LICENSE IS APPLICABLE * |
15 | * * | 15 | * * |
16 | ***************************************************************************/ | 16 | ***************************************************************************/ |
17 | 17 | ||
18 | #ifndef __TINYKATE_H__ | 18 | #ifndef __TINYKATE_H__ |
19 | #define __TINYKATE_H__ | 19 | #define __TINYKATE_H__ |
20 | 20 | ||
21 | 21 | ||
22 | #include <qmainwindow.h> | 22 | #include <qmainwindow.h> |
23 | #include <opie/otabwidget.h> | 23 | #include <opie/otabwidget.h> |
24 | #include <ktexteditor.h> | 24 | #include <ktexteditor.h> |
25 | 25 | ||
26 | class QToolButton; | ||
26 | class QAction; | 27 | class QAction; |
27 | class QPopupMenu; | 28 | class QPopupMenu; |
28 | 29 | ||
29 | class TinyKate : public QMainWindow | 30 | class TinyKate : public QMainWindow |
30 | { | 31 | { |
31 | Q_OBJECT | 32 | Q_OBJECT |
32 | public: | 33 | public: |
33 | TinyKate( QWidget *parent=0, const char *name=0, WFlags f = 0); | 34 | TinyKate( QWidget *parent=0, const char *name=0, WFlags f = 0); |
34 | ~TinyKate( ); | 35 | ~TinyKate( ); |
35 | 36 | ||
36 | public slots: | 37 | public slots: |
37 | void slotNew(); | 38 | void slotNew(); |
@@ -40,29 +41,22 @@ protected slots: | |||
40 | void slotOpen(); | 41 | void slotOpen(); |
41 | void slotClose(); | 42 | void slotClose(); |
42 | void slotCurrentChanged(QWidget *); | 43 | void slotCurrentChanged(QWidget *); |
43 | void slotSave(); | 44 | void slotSave(); |
44 | void slotSaveAs(); | 45 | void slotSaveAs(); |
45 | protected: | 46 | protected: |
46 | void open(const QString&); | 47 | void open(const QString&); |
47 | private: | 48 | private: |
48 | QString currentFileName; | 49 | QString currentFileName; |
49 | OTabWidget *tabwidget; | 50 | OTabWidget *tabwidget; |
50 | KTextEditor::View *currentView; | 51 | KTextEditor::View *currentView; |
51 | 52 | ||
52 | QAction *editCopy; | 53 | QToolButton *editCopy, *editCut, *editPaste, *editUndo, *editRedo, *editFindReplace; |
53 | QAction *editCut; | 54 | QAction *viewIncFontSizes, *viewDecFontSizes, *utilSettings; |
54 | QAction *editPaste; | ||
55 | QAction *editUndo; | ||
56 | QAction *editRedo; | ||
57 | QAction *editFindReplace; | ||
58 | QAction *viewIncFontSizes; | ||
59 | QAction *viewDecFontSizes; | ||
60 | QAction *utilSettings; | ||
61 | 55 | ||
62 | QPopupMenu *hlmenu; | 56 | QPopupMenu *hlmenu; |
63 | uint nextUnnamed; | 57 | uint nextUnnamed; |
64 | uint viewCount; | 58 | uint viewCount; |
65 | }; | 59 | }; |
66 | 60 | ||
67 | 61 | ||
68 | #endif // __TINYKATE_H__ | 62 | #endif // __TINYKATE_H__ |