Added a "+" button to add a new diagram to an edited project.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1902 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-07-08 13:00:14 +00:00
parent e0d23abd91
commit 2505d6170f
2 changed files with 76 additions and 32 deletions

View File

@@ -83,6 +83,9 @@ class ProjectView : public QWidget {
void editTitleBlockTemplate(const TitleBlockTemplateLocation &, bool);
private:
void initActions();
void initWidgets();
void initLayout();
void loadDiagrams();
DiagramView *findDiagram(Diagram *);
void rebuildDiagramsMap();
@@ -101,9 +104,11 @@ class ProjectView : public QWidget {
// attributs
private:
QAction *add_new_diagram_;
QETProject *project_;
QVBoxLayout *layout_;
QWidget *fallback_widget_;
QLabel *fallback_label_;
QETTabWidget *tabs_;
QMap<int, DiagramView *> diagram_ids_;
QList<DiagramView *> diagrams_;