Added setReadOnly() methods to the title block template editor classes.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1473 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-01-22 14:35:57 +00:00
parent 0e0e4dfc29
commit 21c8ffbd7b
10 changed files with 152 additions and 10 deletions

View File

@@ -44,8 +44,6 @@ class QETTitleBlockTemplateEditor : public QMainWindow {
// attributes
private:
/// is the template read-only?
bool read_only;
/// menus TODO
QMenu *file_menu_, *edit_menu_,/* *paste_from_menu_, */*display_menu_,/* *tools_menu_,*/ *config_menu_, *help_menu_;
/// actions
@@ -60,6 +58,8 @@ class QETTitleBlockTemplateEditor : public QMainWindow {
QString filepath_;
/// Whether to consider the location or the filepath
bool opened_from_file_;
/// whether the currently edited template is considered read only
bool read_only_;
/// Template Object edited
TitleBlockTemplate *tb_template_;
/// Template preview
@@ -104,6 +104,7 @@ class QETTitleBlockTemplateEditor : public QMainWindow {
bool save();
bool saveAs();
bool saveAsFile();
void setReadOnly(bool);
void quit();
private slots:
@@ -112,6 +113,7 @@ class QETTitleBlockTemplateEditor : public QMainWindow {
void pushGridUndoCommand(TitleBlockTemplateCommand *);
void pushUndoCommand(QUndoCommand *);
void updateEditorTitle();
void updateActions();
bool saveAs(const TitleBlockTemplateLocation &);
bool saveAs(const QString &);
};