31 #ifndef FLASHCARDEDITOR_H
32 #define FLASHCARDEDITOR_H
34 #include "core/templateeditor.h"
36 #include "ui_flashcardeditor.h"
37 #include "templates/flashcard/flashcardquestion.h"
58 QList<FlashCardQuestion> activeQuestions()
const;
71 void loadPicture(
const QString &picture_path);
72 void setEditorsEnabled(
bool enabled);
73 void updateQuestionCount();
75 void loadQuestion(
int index);
77 void removeQuestion();
78 void onAnswerChanged(
const QString &new_answer);
79 void onHintChanged(
const QString &new_hint);
80 void onAuthorChanged(
const QString &new_author);
81 void onNameChanged(
const QString &new_name);
83 void configureUpDown();
84 void moveQuestionUp();
85 void moveQuestionDown();
86 void addQuestion(
const QString& question,
const QString& answer,
const QString& hint,
const QString& picture_path);
89 Ui::FlashCardEditor *m_ui;
93 #endif // FLASHCARDEDITOR_H
bool loadBundleData(const QString &bundle_data)
Loads editor state from XML bundle.
TemplateCore * core() const
Access to associated template core.
Represents the editor of the template.
QString authorName()
Access to author name of current editor.
The core class container for single template.
QString projectName()
Access to project name of current editor.
QString generateBundleData()
Generates RAW data which represent data of this template.
bool canGenerateApplications()
Specifies if template can generate applications or not.