diff options
Diffstat (limited to 'example/application.h')
-rw-r--r-- | example/application.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/example/application.h b/example/application.h new file mode 100644 index 0000000..6f48d41 --- /dev/null +++ b/example/application.h @@ -0,0 +1,48 @@ +/**************************************************************************** +** $Id: application.h,v 1.1 2004/09/18 17:31:23 phil Exp $ +** +** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. +** +** This file is part of an example program for Qt. This example +** program may be used, distributed and modified without limitation. +** +*****************************************************************************/ + +#ifndef APPLICATION_H +#define APPLICATION_H + +#include <qmainwindow.h> + +class QextScintilla; +class QextScintillaPrinter; + +class ApplicationWindow: public QMainWindow +{ + Q_OBJECT + +public: + ApplicationWindow(); + ~ApplicationWindow(); + +protected: + void closeEvent( QCloseEvent* ); + +private slots: + void newDoc(); + void choose(); + void load( const QString &fileName ); + void save(); + void saveAs(); + void print(); + + void about(); + void aboutQt(); + +private: + QextScintillaPrinter *printer; + QextScintilla *e; + QString filename; +}; + + +#endif |