summaryrefslogtreecommitdiff
path: root/noncore/apps/tinykate/mainwindow/tinykate.h
Unidiff
Diffstat (limited to 'noncore/apps/tinykate/mainwindow/tinykate.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/tinykate/mainwindow/tinykate.h66
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
26class QToolButton;
27class QAction;
28class QPopupMenu;
29
30class TinyKate : public QMainWindow
31{
32Q_OBJECT
33public:
34 TinyKate( QWidget *parent=0, const char *name=0, WFlags f = 0);
35 ~TinyKate( );
36 static QString appName() { return QString::fromLatin1( "kate" ); };
37
38
39public slots:
40 void slotNew();
41 void setDocument(const QString& fileref);
42
43protected slots:
44 void slotOpen();
45 void slotClose();
46 void slotCurrentChanged(QWidget *);
47 void slotSave();
48 void slotSaveAs();
49protected:
50 void open(const QString&);
51private:
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__