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

bool QETDiagramEditor::addProject ( QETProject project  )  [private]

Ajoute un projet

Parameters:
project projet a ajouter

Definition at line 814 of file qetdiagrameditor.cpp.

References addProjectView(), pa, and QETApp::registerProject().

Referenced by newProject(), and openAndAddProject().

                                                     {
      // enregistre le projet
      QETApp::registerProject(project);
      
      // cree un ProjectView pour visualiser le projet
      ProjectView *project_view = new ProjectView(project);
      addProjectView(project_view);
      
      // met a jour le panel d'elements
      pa -> elementsPanel().projectWasOpened(project);
      
      return(true);
}


Generated by  Doxygen 1.6.0   Back to index