13 #ifndef MAGICSMOKE_ODFEDIT_H
14 #define MAGICSMOKE_ODFEDIT_H
16 #include <QMainWindow>
18 #include <QItemDelegate>
33 MOdfEditor(QWidget* parent = 0, Qt::WindowFlags f = 0);
39 void loadFile(QString,
bool isTemplate=
true);
53 void parseTemplate(QByteArray,
bool isTemplate=
true);
57 void saveTemplate(QFile&);
59 void saveXmlPart(QIODevice&);
61 void selectionChange();
63 void setChanged(
bool ch=
true);
65 void insCalcIntoCurrent();
67 void insCalcBehindCurrent();
69 void insCommentIntoCurrent();
71 void insCommentBehindCurrent();
77 void wrapInCond(QString tag=
"if");
87 void pasteItemBehind();
102 void saveCurrentNode();
107 QString detectTemplateType()
const;
109 void cleanTestFile();
virtual ~MOdfEditor()
clean it up
Definition: odfedit.cpp:292
void switchStack(int)
used to switch to the correct editor widget
void loadFile(QString, bool isTemplate=true)
loads a template file, this is a helper for openFile and download
Definition: odfedit.cpp:316
encapsulation of an event, this class wraps the auto-generated event class to provide some convenienc...
Definition: event.h:25
void saveFileAs()
asks for a new file name
Definition: odfedit.cpp:432
MOdfEditor(QWidget *parent=0, Qt::WindowFlags f=0)
instantiates the editor
Definition: odfedit.cpp:142
void openFile2()
shows a file open dialog and then opens the selected file
Definition: odfedit.cpp:409
An editor for ticket templates.
Definition: odfedit.h:27
void openFile(bool isTemplate=true)
shows a file open dialog and then opens the selected file
Definition: odfedit.cpp:396
void saveFile()
saves the file - if it is local, otherwise calls saveFileAs
Definition: odfedit.cpp:414
void getEvent(int &, bool &)
used to select an event