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

ProjectView * QETDiagramEditor::currentProject (  )  const [private]

Returns:
Le projet actuellement edite (= qui a le focus dans l'interface MDI) ou 0 s'il n'y en a pas

Definition at line 846 of file qetdiagrameditor.cpp.

Referenced by addDiagramToProject(), cleanCurrentProject(), closeCurrentProject(), currentDiagram(), editCurrentDiagramProperties(), editCurrentProjectProperties(), exportDialog(), printDialog(), removeDiagramFromProject(), save(), saveAll(), saveAsDialog(), slot_updateActions(), and slot_updateWindowsMenu().

                                                    {
      QMdiSubWindow *current_window = workspace.activeSubWindow();
      if (!current_window) return(0);
      
      QWidget *current_widget = current_window -> widget();
      if (!current_widget) return(0);
      
      if (ProjectView *project_view = qobject_cast<ProjectView *>(current_widget)) {
            return(project_view);
      }
      return(0);
}


Generated by  Doxygen 1.6.0   Back to index