summaryrefslogtreecommitdiff
path: root/noncore/apps/tinykate/tinykate.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/tinykate/tinykate.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/tinykate/tinykate.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/noncore/apps/tinykate/tinykate.h b/noncore/apps/tinykate/tinykate.h
new file mode 100644
index 0000000..6dda05d
--- a/dev/null
+++ b/noncore/apps/tinykate/tinykate.h
@@ -0,0 +1,62 @@
+/***************************************************************************
+ tinykate.h
+ Tiny KATE mainwindow
+ -------------------
+ begin : November 2002
+ copyright : (C) 2002 by Joseph Wenninger <jowenn@kde.org>
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation. *
+ * ONLY VERSION 2 OF THE LICENSE IS APPLICABLE *
+ * *
+ ***************************************************************************/
+
+#ifndef __TINYKATE_H__
+#define __TINYKATE_H__
+
+
+#include <qmainwindow.h>
+#include <opie/otabwidget.h>
+#include <ktexteditor.h>
+
+class QAction;
+class QPopupMenu;
+
+class TinyKate : public QMainWindow
+{
+Q_OBJECT
+public:
+ TinyKate( QWidget *parent=0, const char *name=0, WFlags f = 0);
+
+public slots:
+ void slotOpen();
+
+protected slots:
+ void slotNew();
+ void slotClose();
+ void slotCurrentChanged(QWidget *);
+
+private:
+ OTabWidget *tabwidget;
+ KTextEditor::View *currentView;
+
+ QAction *editCopy;
+ QAction *editCut;
+ QAction *editPaste;
+ QAction *editUndo;
+ QAction *editRedo;
+ QAction *editFindReplace;
+ QAction *viewIncFontSizes;
+ QAction *viewDecFontSizes;
+ QAction *utilSettings;
+
+ QPopupMenu *hlmenu;
+
+};
+
+
+#endif // __TINYKATE_H__