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

void QETDiagramEditor::toolbar (  )  [private]

Mise en place de la barre d'outils

Definition at line 527 of file qetdiagrameditor.cpp.

References add_text, close_file, conductor_default, conductor_reset, copy, cut, delete_selection, infos_diagram, mode_selection, mode_visualise, new_file, open_file, paste, print, redo, rotate_selection, save_all, save_file, save_file_sous, selection_prop, undo, zoom_fit, zoom_in, zoom_out, and zoom_reset.

Referenced by QETDiagramEditor().

                               {
      main_bar = new QToolBar(tr("Outils"), this);
      main_bar -> setObjectName("toolbar");
      
      view_bar = new QToolBar(tr("Affichage"), this);
      view_bar -> setObjectName("display");
      
      diagram_bar = new QToolBar(tr("Sch\351ma"), this);
      diagram_bar -> setObjectName("diagram");
      
      main_bar -> addAction(new_file);
      main_bar -> addAction(open_file);
      main_bar -> addAction(save_file);
      main_bar -> addAction(save_file_sous);
      main_bar -> addAction(save_all);
      main_bar -> addAction(close_file);
      main_bar -> addAction(print);
      main_bar -> addSeparator();
      main_bar -> addAction(undo);
      main_bar -> addAction(redo);
      main_bar -> addSeparator();
      main_bar -> addAction(cut);
      main_bar -> addAction(copy);
      main_bar -> addAction(paste);
      main_bar -> addSeparator();
      main_bar -> addAction(delete_selection);
      main_bar -> addAction(rotate_selection);
      main_bar -> addAction(selection_prop);
      
      // Modes selection / visualisation et zoom
      view_bar -> addAction(mode_selection);
      view_bar -> addAction(mode_visualise);
      view_bar -> addSeparator();
      view_bar -> addAction(zoom_in);
      view_bar -> addAction(zoom_out);
      view_bar -> addAction(zoom_fit);
      view_bar -> addAction(zoom_reset);
      
      diagram_bar -> addAction(infos_diagram);
      diagram_bar -> addAction(add_text);
      diagram_bar -> addAction(conductor_default);
      diagram_bar -> addAction(conductor_reset);
      
      // ajout de la barre d'outils a la fenetre principale
      addToolBar(Qt::TopToolBarArea, main_bar);
      addToolBar(Qt::TopToolBarArea, view_bar);
      addToolBar(Qt::TopToolBarArea, diagram_bar);
}


Generated by  Doxygen 1.6.0   Back to index