31 #include "core/templateeditor.h"
33 #include "core/templatecore.h"
36 TemplateEditor::TemplateEditor(
TemplateCore *core, QWidget *parent)
37 : QWidget(parent), m_canGenerate(false), m_generateMessage(QString()), m_isDirty(false), m_core(core) {
38 connect(
this, SIGNAL(changed()),
this, SLOT(dirtify()));
41 TemplateEditor::~TemplateEditor() {
42 qDebug(
"Destroying TemplateEditor instance.");
51 tr(
"Simulation or mobile application generation cannot be started \n"
52 "because editor does not contain enough data."));
69 m_canGenerate = can_generate;
70 m_generateMessage = message;
void canGenerateChanged(bool can_generate, const QString &message=QString())
Emitted if status, which specifies if mobile application can be generated from the template...
bool isDirty() const
Check if editor contains unsaved contents.
TemplateCore * core() const
Access to associated template core.
virtual bool canGenerateApplications()
Specifies if template can generate applications or not.
void issueNewGenereationStatus(bool can_generate, const QString &message=QString())
Emits new signal notifying other components about state of creating of APK application.
void setIsDirty(bool is_dirty)
Sets new dirtiness status.
The core class container for single template.
virtual void launch()
Executed when given template with this editor is launched.