author | mickeyl <mickeyl> | 2004-05-23 11:26:00 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-05-23 11:26:00 (UTC) |
commit | 163a07abb5fbf5346585bce5edf5e48d015b442a (patch) (side-by-side diff) | |
tree | 0ae95b1f32ded0e1766b240ccfcfec856dafea09 /noncore/apps/tinykate/mainwindow/tinykate.h | |
parent | 6cd90404121a78f3181a35acc056d7feca3d6aeb (diff) | |
download | opie-163a07abb5fbf5346585bce5edf5e48d015b442a.zip opie-163a07abb5fbf5346585bce5edf5e48d015b442a.tar.gz opie-163a07abb5fbf5346585bce5edf5e48d015b442a.tar.bz2 |
CLEANUP: sanitize tinykate's build structure
Diffstat (limited to 'noncore/apps/tinykate/mainwindow/tinykate.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/mainwindow/tinykate.h | 66 |
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 @@ +/*************************************************************************** + 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 <opie2/otabwidget.h> +#include <ktexteditor.h> + +class QToolButton; +class QAction; +class QPopupMenu; + +class TinyKate : public QMainWindow +{ +Q_OBJECT +public: + TinyKate( QWidget *parent=0, const char *name=0, WFlags f = 0); + ~TinyKate( ); + static QString appName() { return QString::fromLatin1( "kate" ); }; + + +public slots: + void slotNew(); + void setDocument(const QString& fileref); + +protected slots: + void slotOpen(); + void slotClose(); + void slotCurrentChanged(QWidget *); + void slotSave(); + void slotSaveAs(); +protected: + void open(const QString&); +private: + QString currentFileName; + Opie::Ui::OTabWidget *tabwidget; + KTextEditor::View *currentView; + bool shutDown; + + QToolButton *editCopy, *editCut, *editPaste, *editUndo, *editRedo, *editFindReplace; + QAction *viewIncFontSizes, *viewDecFontSizes, *utilSettings; + + QPopupMenu *hlmenu; + uint nextUnnamed; + uint viewCount; +}; + + +#endif // __TINYKATE_H__ |