1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef EDITOR_H
8 #define EDITOR_H
9 
10 #include <QDialog>
11 
12 #include "scribusapi.h"
13 
14 class QTextEdit;
15 class QMenu;
16 class QMenuBar;
17 class QVBoxLayout;
18 class QAction;
19 class ScribusView;
20 class PrefsContext;
21 #ifdef Q_OS_MAC
22 	class QHBoxLayout;
23 	class QPushButton;
24 #endif
25 
26 class SCRIBUS_API Editor : public QDialog
27 {
28 		Q_OBJECT
29 
30 public:
31 	Editor (QWidget* parent, const QString& daten, ScribusView* vie = 0 );
~Editor()32 	~Editor() {};
33 
34 	QTextEdit* EditTex;
35 	QMenu* fmenu;
36 	QMenu* emenu;
37 	QMenuBar* menuBar;
38 	QAction* newAct;
39 	QAction* openAct;
40 	QAction* saveAsAct;
41 	QAction* saveExitAct;
42 	QAction* exitAct;
43 	QAction* undoAct;
44 	QAction* redoAct;
45 	QAction* cutAct;
46 	QAction* copyAct;
47 	QAction* pasteAct;
48 	QAction* clearAct;
49 	QAction* getFieldAct;
50 	ScribusView* view;
51 #ifdef Q_OS_MAC
52 	QPushButton* PushButton1;
53 	QPushButton* PushButton2;
54 #endif
55 
56 private slots:
57 	void del();
58 	void iconSetChange();
59 	void OpenScript();
60 	void SaveAs();
61 	void GetFieldNames();
62 
63 protected:
64 	QVBoxLayout* EditorLayout;
65 #ifdef Q_OS_MAC
66 	QHBoxLayout* Layout1_2;
67 #endif
68 	PrefsContext* dirs;
69 };
70 
71 #endif // EDITOR_H
72