Listing 1. editor.h

 1 #ifndef EDITOR_H
 2 #define EDITOR_H
 3 #include "ljeditor.h"
 4
 5 #include <qstring.h>
 6
 7 class QTextEdit;
 8
 9 class Editor : public ljeditor
10 {
11     Q_OBJECT
12
13 public:
14     Editor( QWidget* parent = 0,
15             const char* name = 0,
16             WFlags fl = 0 );
17     ~Editor();
18
19 public slots:
20     void fileNew();
21     void fileOpen();
22     void fileSave();
23     void fileSaveAs();
24
25 protected:
26     void closeEvent( QCloseEvent * );
27     bool saveAndContinue( QString );
28
29 private:
30     QString fileName;
31     QTextEdit * editField;
32
33 };
34
35 #endif // EDITOR_H