When editing a diagram, it is now possible to edit and/or duplicate a title block template from the title block properties dialog.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1479 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-01-25 07:29:50 +00:00
parent cae43d0fc1
commit 0345e54512
11 changed files with 174 additions and 16 deletions

View File

@@ -41,10 +41,13 @@ class TitleBlockPropertiesWidget : public QWidget {
void setReadOnly(bool);
void setTitleBlockTemplatesList(const QList<QString> &);
void setTitleBlockTemplatesVisible(bool);
QString currentTitleBlockTemplateName() const;
// slots:
private slots:
void checkTableRows();
void editCurrentTitleBlockTemplate();
void duplicateCurrentTitleBlockTemplate();
// private methods
private:
@@ -52,11 +55,18 @@ class TitleBlockPropertiesWidget : public QWidget {
void initLayouts();
int nameLessRowsCount() const;
signals:
void editTitleBlockTemplate(const QString &, bool);
// attributs
private:
QStackedLayout *stack_layout;
QLabel *titleblock_template_label;
QComboBox *titleblock_template_name;
QPushButton *titleblock_template_button_;
QMenu *titleblock_template_menu_;
QAction *titleblock_template_edit_;
QAction *titleblock_template_duplicate_;
QLineEdit *titleblock_title;
QLineEdit *titleblock_author;
QDateEdit *titleblock_date;