![]() |
BuildmLearn Toolkit
2.0.4
BuildmLearn Toolkit is an easy-to-use program that helps users make mobile apps without any knowledge of application development.
|
Represents the editor of the template. More...
#include <templateeditor.h>
Public Slots | |
void | dirtify () |
Dirtifies (sets m_isDirty to true) the editor. | |
Signals | |
void | changed () |
Emitted everytime any child widget of editor changes its contents. More... | |
void | canGenerateChanged (bool can_generate, const QString &message=QString()) |
Emitted if status, which specifies if mobile application can be generated from the template, changes. More... | |
Public Member Functions | |
TemplateEditor (TemplateCore *core, QWidget *parent=0) | |
virtual bool | canGenerateApplications () |
Specifies if template can generate applications or not. More... | |
virtual QString | generationStatusDescription () |
Access to description of current state. More... | |
virtual QString | generateBundleData ()=0 |
Generates RAW data which represent data of this template. More... | |
virtual bool | loadBundleData (const QString &bundle_data)=0 |
Loads editor state from XML bundle. More... | |
virtual void | launch () |
Executed when given template with this editor is launched. More... | |
TemplateCore * | core () const |
Access to associated template core. More... | |
bool | isDirty () const |
Check if editor contains unsaved contents. More... | |
void | setIsDirty (bool is_dirty) |
Sets new dirtiness status. More... | |
virtual QString | projectName ()=0 |
Access to project name of current editor. More... | |
virtual QString | authorName ()=0 |
Access to author name of current editor. More... | |
Protected Member Functions | |
void | issueNewGenereationStatus (bool can_generate, const QString &message=QString()) |
Emits new signal notifying other components about state of creating of APK application. More... | |
Protected Attributes | |
bool | m_canGenerate |
QString | m_generateMessage |
bool | m_isDirty |
TemplateCore * | m_core |
Represents the editor of the template.
Editor is the place where user can edit contents of the template, for example questions for Quiz template.
Definition at line 46 of file templateeditor.h.
|
pure virtual |
Access to author name of current editor.
Implemented in QuizEditor, LearnSpellingsEditor, BasicmLearningEditor, and FlashCardEditor.
|
inlinevirtual |
Specifies if template can generate applications or not.
Reimplemented in QuizEditor, LearnSpellingsEditor, BasicmLearningEditor, and FlashCardEditor.
Definition at line 59 of file templateeditor.h.
|
signal |
Emitted if status, which specifies if mobile application can be generated from the template, changes.
can_generate | True if editor contains enough data so that mobile application can be generated, false otherwise. |
|
signal |
Emitted everytime any child widget of editor changes its contents.
TemplateCore * TemplateEditor::core | ( | ) | const |
Access to associated template core.
Definition at line 56 of file templateeditor.cpp.
|
pure virtual |
Generates RAW data which represent data of this template.
Implemented in QuizEditor, BasicmLearningEditor, LearnSpellingsEditor, and FlashCardEditor.
|
inlinevirtual |
Access to description of current state.
Definition at line 65 of file templateeditor.h.
bool TemplateEditor::isDirty | ( | ) | const |
Check if editor contains unsaved contents.
Definition at line 60 of file templateeditor.cpp.
|
protected |
Emits new signal notifying other components about state of creating of APK application.
can_generate | True if editor contains enough data to generate APK application or not. |
message | New message to be delivered to application about current status of creating of APK application. |
Definition at line 68 of file templateeditor.cpp.
|
virtual |
Executed when given template with this editor is launched.
Definition at line 45 of file templateeditor.cpp.
|
pure virtual |
Loads editor state from XML bundle.
bundle_data | Raw XML bundle data. |
Implemented in QuizEditor, BasicmLearningEditor, LearnSpellingsEditor, and FlashCardEditor.
|
pure virtual |
Access to project name of current editor.
Implemented in QuizEditor, LearnSpellingsEditor, BasicmLearningEditor, and FlashCardEditor.
void TemplateEditor::setIsDirty | ( | bool | is_dirty | ) |
Sets new dirtiness status.
is_dirty | New dirtiness status. |
Definition at line 64 of file templateeditor.cpp.