mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-11 02:49:58 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user