Diffstat (limited to 'noncore/apps/tinykate/tinykate.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/tinykate.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/noncore/apps/tinykate/tinykate.h b/noncore/apps/tinykate/tinykate.h index 2e8ca74..077d5f0 100644 --- a/noncore/apps/tinykate/tinykate.h +++ b/noncore/apps/tinykate/tinykate.h | |||
@@ -20,44 +20,56 @@ | |||
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; | ||
27 | class QAction; | 26 | class QAction; |
28 | class QPopupMenu; | 27 | class QPopupMenu; |
28 | class CGotoLine; | ||
29 | 29 | ||
30 | class TinyKate : public QMainWindow | 30 | class TinyKate : public QMainWindow |
31 | { | 31 | { |
32 | Q_OBJECT | 32 | Q_OBJECT |
33 | public: | 33 | public: |
34 | TinyKate( QWidget *parent=0, const char *name=0, WFlags f = 0); | 34 | TinyKate( QWidget *parent=0, const char *name=0, WFlags f = 0); |
35 | ~TinyKate( ); | 35 | ~TinyKate( ); |
36 | 36 | ||
37 | public slots: | 37 | public slots: |
38 | void slotNew(); | 38 | void slotNew(); |
39 | void setDocument(const QString& fileref); | ||
40 | 39 | ||
41 | protected slots: | 40 | protected slots: |
42 | void slotOpen(); | 41 | void slotOpen(); |
43 | void slotClose(); | 42 | void slotClose(); |
44 | void slotCurrentChanged(QWidget *); | 43 | void slotCurrentChanged(QWidget *); |
45 | void slotSave(); | 44 | void slotSave(); |
46 | void slotSaveAs(); | 45 | void slotSaveAs(); |
46 | void slotGoTo(); | ||
47 | void slotCursorMoved(); | ||
48 | void setDocument(const QString &doc); | ||
49 | |||
47 | protected: | 50 | protected: |
48 | void open(const QString&); | 51 | void open(const QString&); |
49 | private: | 52 | private: |
50 | QString currentFileName; | 53 | QString currentFileName; |
51 | OTabWidget *tabwidget; | 54 | OTabWidget *tabwidget; |
52 | KTextEditor::View *currentView; | 55 | KTextEditor::View *currentView; |
53 | 56 | ||
54 | QToolButton *editCopy, *editCut, *editPaste, *editUndo, *editRedo, *editFindReplace; | 57 | QAction *editCopy; |
55 | QAction *viewIncFontSizes, *viewDecFontSizes, *utilSettings; | 58 | QAction *editCut; |
59 | QAction *editPaste; | ||
60 | QAction *editUndo; | ||
61 | QAction *editRedo; | ||
62 | QAction *editFind; | ||
63 | QAction *editFindReplace; | ||
64 | QAction *viewIncFontSizes; | ||
65 | QAction *viewDecFontSizes; | ||
66 | QAction *utilSettings; | ||
56 | 67 | ||
57 | QPopupMenu *hlmenu; | 68 | QPopupMenu *hlmenu; |
58 | uint nextUnnamed; | 69 | uint nextUnnamed; |
59 | uint viewCount; | 70 | uint viewCount; |
71 | int curLine,curCol; | ||
60 | }; | 72 | }; |
61 | 73 | ||
62 | 74 | ||
63 | #endif // __TINYKATE_H__ | 75 | #endif // __TINYKATE_H__ |