mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 03:10:52 +01:00
Title block properties dialog: the templates list is now dynamically updated.
Also, it is now possible to edit and/or duplicate the default template. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1480 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#define TITLEBLOCK_PROPERTIES_WIDGET_H
|
||||
#include <QtGui>
|
||||
#include "titleblockproperties.h"
|
||||
class TitleBlockTemplatesCollection;
|
||||
/**
|
||||
Ce widget permet d'editer un objet TitleBlockProperties, c'est-a-dire les
|
||||
valeurs affichees par le cartouche d'un schema.
|
||||
@@ -40,12 +41,15 @@ class TitleBlockPropertiesWidget : public QWidget {
|
||||
bool isReadOnly() const;
|
||||
void setReadOnly(bool);
|
||||
void setTitleBlockTemplatesList(const QList<QString> &);
|
||||
void setTitleBlockTemplatesCollection(TitleBlockTemplatesCollection *);
|
||||
void setTitleBlockTemplatesVisible(bool);
|
||||
QString currentTitleBlockTemplateName() const;
|
||||
void setCurrentTitleBlockTemplateName(const QString &);
|
||||
|
||||
// slots:
|
||||
private slots:
|
||||
void checkTableRows();
|
||||
void updateTemplateList();
|
||||
void editCurrentTitleBlockTemplate();
|
||||
void duplicateCurrentTitleBlockTemplate();
|
||||
|
||||
@@ -80,5 +84,6 @@ class TitleBlockPropertiesWidget : public QWidget {
|
||||
QLabel *additional_fields_label;
|
||||
QTableWidget *additional_fields_table;
|
||||
QTabBar *tabbar;
|
||||
TitleBlockTemplatesCollection *tbt_collection_;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user