Scribus
Open source desktop publishing at your fingertips
editor.h
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, QString daten, ScribusView* vie = 0 );
32  ~Editor() {};
33  QTextEdit* EditTex;
34  QMenu* fmenu;
35  QMenu* emenu;
36  QMenuBar* menuBar;
37  QAction* newAct;
38  QAction* openAct;
39  QAction* saveAsAct;
40  QAction* saveExitAct;
41  QAction* exitAct;
42  QAction* undoAct;
43  QAction* redoAct;
44  QAction* cutAct;
45  QAction* copyAct;
46  QAction* pasteAct;
47  QAction* clearAct;
48  QAction* getFieldAct;
49  ScribusView* view;
50 #ifdef Q_OS_MAC
51  QPushButton* PushButton1;
52  QPushButton* PushButton2;
53 #endif
54 
55 private slots:
56  void del();
57  void OpenScript();
58  void SaveAs();
59  void GetFieldNames();
60 
61 protected:
62  QVBoxLayout* EditorLayout;
63 #ifdef Q_OS_MAC
64  QHBoxLayout* Layout1_2;
65 #endif
66  PrefsContext* dirs;
67 };
68 
69 #endif // EDITOR_H
Definition: prefscontext.h:40
Definition: editor.h:26
Definition: scribusview.h:87