Logo Search packages:      
Sourcecode: qelectrotech version File versions  Download package

void QETDiagramEditor::removeDiagram ( Diagram diagram  )  [slot]

Supprime un schema de son projet

diagram Schema a supprimer

Definition at line 1582 of file qetdiagrameditor.cpp.

References findProject().

Referenced by QETDiagramEditor(), and removeDiagramFromProject().

      if (!diagram) return;
      // recupere le projet contenant le schema
      if (QETProject *diagram_project = diagram -> project()) {
            // recupere la vue sur ce projet
            if (ProjectView *project_view = findProject(diagram_project)) {
                  // affiche le schema en question
                  project_view -> showDiagram(diagram);
                  // supprime le schema
                  project_view -> removeDiagram(diagram);

Generated by  Doxygen 1.6.0   Back to index