mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
List of Drawings: DXF export added and multple sheets for large project added.
Pending work: - folio string to be formatted correctly. - thorough testing to be done because lot of changes to addDiagram / removeDiagram had to be done to add the feature of multiple folio list sheets git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2836 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "qetmessagebox.h"
|
||||
#include "qettabbar.h"
|
||||
#include "qettemplateeditor.h"
|
||||
#include "diagramfoliolist.h"
|
||||
|
||||
/**
|
||||
Constructeur
|
||||
@@ -303,11 +304,14 @@ void ProjectView::addNewDiagram() {
|
||||
Diagram *new_diagram = project_ -> addNewDiagram();
|
||||
DiagramView *new_diagram_view = new DiagramView(new_diagram);
|
||||
addDiagram(new_diagram_view);
|
||||
|
||||
if (project_ -> diagrams().size() % 58 == 1 && DiagramFolioList::folioList_quantity != 0)
|
||||
addNewDiagramFolioList();
|
||||
showDiagram(new_diagram_view);
|
||||
}
|
||||
|
||||
void ProjectView::addNewDiagramFolioList() {
|
||||
if (project_ -> isReadOnly() || project_ -> isFolioListAdded()) return;
|
||||
if (project_ -> isReadOnly()) return;
|
||||
|
||||
Diagram *new_diagram = project_ -> addNewDiagramFolioList();
|
||||
DiagramView *new_diagram_view = new DiagramView(new_diagram);
|
||||
|
||||
Reference in New Issue
Block a user