summaryrefslogtreecommitdiff
path: root/noncore/apps/tinykate/tinykate.h
Unidiff
Diffstat (limited to 'noncore/apps/tinykate/tinykate.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/tinykate/tinykate.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/apps/tinykate/tinykate.h b/noncore/apps/tinykate/tinykate.h
index ef0dcba..7b61bae 100644
--- a/noncore/apps/tinykate/tinykate.h
+++ b/noncore/apps/tinykate/tinykate.h
@@ -1,65 +1,67 @@
1/*************************************************************************** 1/***************************************************************************
2 tinykate.h 2 tinykate.h
3 Tiny KATE mainwindow 3 Tiny KATE mainwindow
4 ------------------- 4 -------------------
5 begin : November 2002 5 begin : November 2002
6 copyright : (C) 2002 by Joseph Wenninger <jowenn@kde.org> 6 copyright : (C) 2002 by Joseph Wenninger <jowenn@kde.org>
7 ***************************************************************************/ 7 ***************************************************************************/
8 8
9/*************************************************************************** 9/***************************************************************************
10 * * 10 * *
11 * This program is free software; you can redistribute it and/or modify * 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 * 12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation. * 13 * the Free Software Foundation. *
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
26class QAction; 26class QAction;
27class QPopupMenu; 27class QPopupMenu;
28 28
29class TinyKate : public QMainWindow 29class TinyKate : public QMainWindow
30{ 30{
31Q_OBJECT 31Q_OBJECT
32public: 32public:
33 TinyKate( QWidget *parent=0, const char *name=0, WFlags f = 0); 33 TinyKate( QWidget *parent=0, const char *name=0, WFlags f = 0);
34 34
35public slots: 35public slots:
36 QString currentFileName;
36 void slotNew(); 37 void slotNew();
37 38
38protected slots: 39protected slots:
39 void slotOpen(); 40 void slotOpen();
40 void slotClose(); 41 void slotClose();
41 void slotCurrentChanged(QWidget *); 42 void slotCurrentChanged(QWidget *);
42 43 void slotSave();
44 void slotSaveAs();
43protected: 45protected:
44 void open(const QString&); 46 void open(const QString&);
45private: 47private:
46 OTabWidget *tabwidget; 48 OTabWidget *tabwidget;
47 KTextEditor::View *currentView; 49 KTextEditor::View *currentView;
48 50
49 QAction *editCopy; 51 QAction *editCopy;
50 QAction *editCut; 52 QAction *editCut;
51 QAction *editPaste; 53 QAction *editPaste;
52 QAction *editUndo; 54 QAction *editUndo;
53 QAction *editRedo; 55 QAction *editRedo;
54 QAction *editFindReplace; 56 QAction *editFindReplace;
55 QAction *viewIncFontSizes; 57 QAction *viewIncFontSizes;
56 QAction *viewDecFontSizes; 58 QAction *viewDecFontSizes;
57 QAction *utilSettings; 59 QAction *utilSettings;
58 60
59 QPopupMenu *hlmenu; 61 QPopupMenu *hlmenu;
60 uint nextUnnamed; 62 uint nextUnnamed;
61 uint viewCount; 63 uint viewCount;
62}; 64};
63 65
64 66
65#endif // __TINYKATE_H__ 67#endif // __TINYKATE_H__