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:
xavier
2012-01-25 18:02:17 +00:00
parent 0345e54512
commit 2678b75b14
4 changed files with 57 additions and 10 deletions

View File

@@ -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