summaryrefslogtreecommitdiff
path: root/noncore/apps/tinykate/tinykate.h
blob: ef0dcba584a0ee32c887470fdbc3d6d9f80bc072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/***************************************************************************
                             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 slotNew();

protected slots:
    void slotOpen();
    void slotClose();
    void slotCurrentChanged(QWidget *);

protected:
    void open(const QString&);
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;
    uint nextUnnamed;
    uint viewCount;
};


#endif // __TINYKATE_H__