mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Folio List: New Diagram Folio list can be added if not already present.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2818 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -306,6 +306,15 @@ void ProjectView::addNewDiagram() {
|
||||
showDiagram(new_diagram_view);
|
||||
}
|
||||
|
||||
void ProjectView::addNewDiagramFolioList() {
|
||||
if (project_ -> isReadOnly() || project_ -> isFolioListAdded()) return;
|
||||
|
||||
Diagram *new_diagram = project_ -> addNewDiagramFolioList();
|
||||
DiagramView *new_diagram_view = new DiagramView(new_diagram);
|
||||
addDiagram(new_diagram_view);
|
||||
showDiagram(new_diagram_view);
|
||||
}
|
||||
|
||||
/**
|
||||
Ajoute un schema au ProjectView
|
||||
@param diagram Schema a ajouter
|
||||
|
||||
Reference in New Issue
Block a user