QElectroTech
0.70
|
#include <qetdiagrameditor.h>
Public Member Functions | |
QETDiagramEditor (const QStringList &=QStringList(), QWidget *=nullptr) | |
QETDiagramEditor::QETDiagramEditor Constructor. More... | |
~QETDiagramEditor () override | |
void | closeEvent (QCloseEvent *) override |
QList< ProjectView * > | openedProjects () const |
void | addProjectView (ProjectView *) |
QETDiagramEditor::addProjectView Add a new project view to workspace and build the connection between the projectview / project and this QETDiagramEditor. More... | |
bool | openAndAddProject (const QString &, bool=true) |
QList< QString > | editedFiles () const |
ProjectView * | viewForFile (const QString &) const |
ProjectView * | currentProjectView () const |
QETProject * | currentProject () const |
QETDiagramEditor::currentProject. More... | |
bool | drawGrid () const |
QETDiagramEditor::drawGrid. More... | |
void | openBackupFiles (QList< KAutoSaveFile *> backup_files) |
QETDiagramEditor::openBackupFiles. More... | |
Public Member Functions inherited from QETMainWindow | |
QETMainWindow (QWidget *=nullptr, Qt::WindowFlags=nullptr) | |
~QETMainWindow () override | |
Public Attributes | |
QAction * | m_edit_diagram_properties |
Show a dialog to edit diagram properties. More... | |
QAction * | m_conductor_reset |
Reset paths of selected conductors. More... | |
QAction * | m_cut |
Cut selection to clipboard. More... | |
QAction * | m_copy |
Copy selection to clipboard. More... | |
QActionGroup | m_row_column_actions_group |
QActionGroup | m_selection_actions_group |
Action related to add/remove rows/column in diagram. More... | |
QActionGroup * | m_depth_action_group = nullptr |
Action related to edit a selected item. More... | |
Protected Member Functions | |
bool | event (QEvent *) override |
QETDiagramEditor::event Reimplemented to : -Load elements collection when WindowActivate. More... | |
Protected Member Functions inherited from QETMainWindow | |
void | initCommonActions () |
void | initCommonMenus () |
void | insertMenu (QMenu *, QMenu *, bool=true) |
QAction * | actionForMenu (QMenu *) |
bool | event (QEvent *) override |
void | dragEnterEvent (QDragEnterEvent *e) override |
void | dropEvent (QDropEvent *e) override |
virtual void | firstActivation (QEvent *) |
Private Slots | |
void | selectionChanged () |
QETDiagramEditor::selectionChanged This slot is called when a diagram selection was changed. More... | |
Private Attributes | |
QActionGroup * | grp_visu_sel |
Action group for visualisation vs edition mode. More... | |
QActionGroup * | m_group_view_mode |
Action group for project. More... | |
QActionGroup | m_add_item_actions_group |
QActionGroup | m_zoom_actions_group |
Action related to adding (add text image shape...) More... | |
QActionGroup | m_select_actions_group |
Action related to zoom for diagram. More... | |
QActionGroup | m_file_actions_group |
Action related to global selections. More... | |
QAction * | m_tabbed_view_mode |
Actions related to file (open, close, save...) More... | |
QAction * | m_windowed_view_mode |
Display projects as windows. More... | |
QAction * | m_mode_selection |
Set edition mode. More... | |
QAction * | m_mode_visualise |
Set visualisation mode. More... | |
QAction * | m_export_diagram |
Export diagrams of the current project as imagess. More... | |
QAction * | m_print |
Print diagrams of the current project. More... | |
QAction * | m_quit_editor |
Quit the diagram editor. More... | |
QAction * | undo |
Cancel the latest action. More... | |
QAction * | redo |
Redo the latest cancelled operation. More... | |
QAction * | m_paste |
Paste clipboard content on the current diagram. More... | |
QAction * | m_auto_conductor |
Enable/Disable the use of auto conductor. More... | |
QAction * | conductor_default |
Show a dialog to edit default conductor properties. More... | |
QAction * | m_grey_background |
Switch the background color in white or grey. More... | |
QAction * | m_draw_grid |
Switch the background grid display or not. More... | |
QAction * | m_project_edit_properties |
Edit the properties of the current project. More... | |
QAction * | m_project_add_diagram |
Add a diagram to the current project. More... | |
QAction * | m_remove_diagram_from_project |
Delete a diagram from the current project. More... | |
QAction * | m_clean_project |
Clean the content of the curent project by removing useless items. More... | |
QAction * | m_project_folio_list |
Sommaire des schemas. More... | |
QAction * | m_project_nomenclature |
generate nomenclature More... | |
QAction * | m_project_terminalBloc |
generate terminal block More... | |
QAction * | m_tile_window |
Show MDI subwindows as tile. More... | |
QAction * | m_cascade_window |
Show MDI subwindows as cascade. More... | |
QAction * | m_previous_window |
Switch to the previous document. More... | |
QAction * | m_next_window |
Switch to the next document. More... | |
QAction * | m_edit_selection |
To edit selected item. More... | |
QList< QAction * > | m_zoom_action_toolBar |
QAction * | m_delete_selection |
Only zoom action must displayed in the toolbar. More... | |
QAction * | m_rotate_selection |
Rotate selected elements and text items by 90 degrees. More... | |
QAction * | m_rotate_texts |
Direct selected text items to a specific angle. More... | |
QAction * | m_find_element |
Find the selected element in the panel. More... | |
QAction * | m_group_selected_texts = nullptr |
QAction * | m_close_file |
Close current project file. More... | |
QAction * | m_save_file |
Save current project. More... | |
QAction * | m_save_file_as |
Save current project as a specific file. More... | |
QAction * | m_find = nullptr |
QMdiArea | m_workspace |
QSignalMapper | windowMapper |
QDir | open_dialog_dir |
QDockWidget * | qdw_pa |
Directory to use for file dialogs such as File > save. More... | |
QDockWidget * | m_qdw_elmt_collection |
Dock for the elements panel. More... | |
QDockWidget * | qdw_undo |
ElementsCollectionWidget * | m_element_collection_widget |
Dock for the undo list. More... | |
DiagramPropertiesEditorDockWidget * | m_selection_properties_editor |
ElementsPanelWidget * | pa |
Elements panel. More... | |
QMenu * | windows_menu |
QToolBar * | main_tool_bar = nullptr |
QToolBar * | view_tool_bar = nullptr |
QToolBar * | diagram_tool_bar = nullptr |
QToolBar * | m_add_item_tool_bar = nullptr |
QToolBar * | m_depth_tool_bar = nullptr |
QUndoGroup | undo_group |
AutoNumberingDockWidget * | m_autonumbering_dock |
int | activeSubWindowIndex |
bool | m_first_show = true |
SearchAndReplaceWidget | m_search_and_replace_widget |
Additional Inherited Members | |
Protected Attributes inherited from QETMainWindow | |
QAction * | configure_action_ |
Launch the QElectroTech configuration dialog. More... | |
QAction * | fullscreen_action_ |
Toggle full screen. More... | |
QAction * | whatsthis_action_ |
Toggle "What's this" mode. More... | |
QAction * | about_qet_ |
Launch the "About QElectroTech" dialog. More... | |
QAction * | manual_online_ |
Launch browser on QElectroTech online manual. More... | |
QAction * | youtube_ |
Launch browser on QElectroTech Youtube channel. More... | |
QAction * | upgrade_ |
Launch browser on QElectroTech Windows Nightly builds. More... | |
QAction * | upgrade_M |
Launch browser on QElectroTech MAC_OS_X builds. More... | |
QAction * | donate_ |
Launch browser to donate link. More... | |
QAction * | about_qt_ |
launch the "About Qt" dialog More... | |
QMenu * | settings_menu_ |
Settings menu. More... | |
QMenu * | help_menu_ |
Help menu. More... | |
QMenu * | display_toolbars_ |
Show/hide toolbars/docks. More... | |
QHash< QMenu *, QAction * > | menu_actions_ |
Store actions retrieved when inserting menus. More... | |
bool | first_activation_ |
Used to detect whether the window is activated for the first time. More... | |
This class represents the main window of the QElectroTech diagram editor and, ipso facto, the most important part of the QElectroTech user interface.
Definition at line 50 of file qetdiagrameditor.h.
QETDiagramEditor::QETDiagramEditor | ( | const QStringList & | files = QStringList() , |
QWidget * | parent = nullptr |
||
) |
QETDiagramEditor::QETDiagramEditor Constructor.
files,list | of files to open |
parent,parent | widget |
Definition at line 65 of file qetdiagrameditor.cpp.
References activateWidget(), activeSubWindowIndex, m_search_and_replace_widget, m_workspace, openAndAddProject(), qdw_pa, qdw_undo, QET::Icons::QETLogo, readSettings(), SearchAndReplaceWidget::setEditor(), setUpActions(), setUpAutonumberingWidget(), setUpElementsCollectionWidget(), setUpElementsPanel(), setUpMenu(), setUpSelectionPropertiesEditor(), setUpToolBar(), setUpUndoStack(), slot_updateActions(), slot_updatePasteAction(), subWindowActivated(), QET::Icons::tr, QET::Vertical, and windowMapper.
|
override |
Destructeur
Definition at line 136 of file qetdiagrameditor.cpp.
|
private |
|
slot |
Active le schema passe en parametre
diagram | Schema a activer |
Definition at line 1882 of file qetdiagrameditor.cpp.
References activateWidget(), and findProject().
Referenced by setUpElementsPanel().
|
slot |
Active le projet passe en parametre
project | Projet a activer |
Definition at line 1897 of file qetdiagrameditor.cpp.
References findProject().
Referenced by addDiagramToProject(), closeProject(), editDiagramProperties(), editProjectProperties(), setUpActions(), and setUpElementsPanel().
|
slot |
Active le projet passe en parametre
project_view | Projet a activer |
Definition at line 1905 of file qetdiagrameditor.cpp.
References activateWidget().
|
slot |
widget | Widget a activer |
Definition at line 1243 of file qetdiagrameditor.cpp.
References m_workspace, and subWindowForWidget().
Referenced by activateDiagram(), activateProject(), openAndAddProject(), and QETDiagramEditor().
|
slot |
Ajoute un nouveau schema a un projet
project | Projet auquel il faut ajouter un schema |
Definition at line 1948 of file qetdiagrameditor.cpp.
References activateProject(), and findProject().
Referenced by setUpElementsPanel().
|
slot |
QETDiagramEditor::addItemGroupTriggered This slot is called when an item must be added to the curent diagram, this slot use the DVEventInterface to add item.
action | : Action that describe the item to add. |
Definition at line 1295 of file qetdiagrameditor.cpp.
References currentDiagramView(), DiagramView::diagram(), QetShapeItem::Ellipse, DiagramEventAddImage::isNull(), QetShapeItem::Line, QetShapeItem::Polygon, QetShapeItem::Rectangle, Diagram::setEventInterface(), and QET::Icons::tr.
Referenced by setUpActions().
|
private |
Ajoute un projetmoveDiagramUp(
project | projet a ajouter |
update_panel | Whether the elements panel should be warned this project has been added. Defaults to true. |
Definition at line 1068 of file qetdiagrameditor.cpp.
References ElementsCollectionWidget::addProject(), addProjectView(), currentDiagramView(), m_autonumbering_dock, m_element_collection_widget, pa, QETApp::registerProject(), AutoNumberingDockWidget::setProject(), and undo_group.
Referenced by newProject(), openAndAddProject(), and openBackupFiles().
void QETDiagramEditor::addProjectView | ( | ProjectView * | project_view | ) |
QETDiagramEditor::addProjectView Add a new project view to workspace and build the connection between the projectview / project and this QETDiagramEditor.
project_view,project | view to add |
Definition at line 1641 of file qetdiagrameditor.cpp.
References diagramWasAdded(), editElementInEditor(), ProjectView::editElementRequired(), findElementInPanel(), ProjectView::findElementRequired(), m_workspace, projectWasClosed(), showError(), and slot_updateActions().
Referenced by addProject().
|
override |
Permet de quitter l'application lors de la fermeture de la fenetre principale
qce | Le QCloseEvent correspondant a l'evenement de fermeture |
Definition at line 779 of file qetdiagrameditor.cpp.
References closeProject(), openedProjects(), and writeSettings().
|
slot |
Ferme un projet
project_view | Projet a fermer |
Definition at line 930 of file qetdiagrameditor.cpp.
References activateProject(), and subWindowForWidget().
Referenced by closeEvent(), closeProject(), setUpActions(), and setUpElementsPanel().
|
slot |
Ferme un projet
project | projet a fermer |
Definition at line 946 of file qetdiagrameditor.cpp.
References closeProject(), and findProject().
|
private |
Definition at line 1141 of file qetdiagrameditor.cpp.
References currentProjectView().
Referenced by addItemGroupTriggered(), addProject(), currentElement(), rowColumnGroupTriggered(), selectGroupTriggered(), selectionChanged(), selectionGroupTriggered(), setUpActions(), slot_updateActions(), slot_updateAutoNumDock(), slot_updateComplexActions(), slot_updateModeActions(), slot_updatePasteAction(), and zoomGroupTriggered().
|
private |
Definition at line 1154 of file qetdiagrameditor.cpp.
References currentDiagramView(), and DiagramView::diagram().
Referenced by editSelectedElementInEditor(), and selectionGroupTriggered().
QETProject * QETDiagramEditor::currentProject | ( | ) | const |
QETDiagramEditor::currentProject.
Definition at line 1126 of file qetdiagrameditor.cpp.
References currentProjectView(), and ProjectView::project().
Referenced by SearchAndReplaceWidget::fillItemsList().
ProjectView * QETDiagramEditor::currentProjectView | ( | ) | const |
Definition at line 1108 of file qetdiagrameditor.cpp.
References m_workspace.
Referenced by currentDiagramView(), currentProject(), generateTerminalBlock(), DiagramView::keyPressEvent(), removeDiagramFromProject(), save(), saveAs(), setUpActions(), slot_updateActions(), slot_updateAutoNumDock(), slot_updateModeActions(), slot_updateUndoStack(), and slot_updateWindowsMenu().
|
slot |
QETDiagramEditor::diagramWasAdded Manage the adding of diagram view in a project.
dv,added | diagram view |
Definition at line 2124 of file qetdiagrameditor.cpp.
References selectionChanged(), and slot_updateModeActions().
Referenced by addProjectView().
bool QETDiagramEditor::drawGrid | ( | ) | const |
Definition at line 1727 of file qetdiagrameditor.cpp.
References m_draw_grid.
|
slot |
Edite les proprietes du schema diagram
diagram_view | schema dont il faut editer les proprietes |
Definition at line 1806 of file qetdiagrameditor.cpp.
References activateProject(), and findProject().
Referenced by editDiagramProperties(), and setUpElementsPanel().
|
slot |
Edite les proprietes du schema diagram
diagram | schema dont il faut editer les proprietes |
Definition at line 1817 of file qetdiagrameditor.cpp.
References activateProject(), editDiagramProperties(), and findProject().
QList< QString > QETDiagramEditor::editedFiles | ( | ) | const |
Definition at line 1689 of file qetdiagrameditor.cpp.
References openedProjects().
|
slot |
Lance l'editeur d'element pour l'element filename
location | Emplacement de l'element a editer |
Definition at line 2144 of file qetdiagrameditor.cpp.
References QETApp::instance().
Referenced by addProjectView(), and editSelectedElementInEditor().
|
slot |
Edite les proprietes du projet project_view.
project_view | Vue sur le projet dont il faut editer les proprietes |
Definition at line 1930 of file qetdiagrameditor.cpp.
References activateProject().
Referenced by editProjectProperties(), setUpActions(), and setUpElementsPanel().
|
slot |
Edite les proprietes du projet project.
project | Projet dont il faut editer les proprietes |
Definition at line 1940 of file qetdiagrameditor.cpp.
References editProjectProperties(), and findProject().
|
slot |
Launch an element editor to edit the selected element in the current diagram view.
Definition at line 2152 of file qetdiagrameditor.cpp.
References currentElement(), and editElementInEditor().
|
overrideprotected |
QETDiagramEditor::event Reimplemented to : -Load elements collection when WindowActivate.
e |
Definition at line 811 of file qetdiagrameditor.cpp.
References QETMainWindow::event(), m_element_collection_widget, and m_first_show.
|
slot |
QETDiagramEditor::findElementInPanel Find the item for in the element panel.
location |
Definition at line 2135 of file qetdiagrameditor.cpp.
References m_element_collection_widget, and ElementsCollectionWidget::setCurrentLocation().
Referenced by addProjectView(), and selectionGroupTriggered().
|
private |
Cette methode permet de retrouver le projet contenant un schema donne.
diagram_view | Schema dont il faut retrouver |
Definition at line 1172 of file qetdiagrameditor.cpp.
References openedProjects().
Referenced by activateDiagram(), activateProject(), addDiagramToProject(), closeProject(), editDiagramProperties(), editProjectProperties(), moveDiagramDown(), moveDiagramDownx10(), moveDiagramUp(), moveDiagramUpTop(), moveDiagramUpx10(), and removeDiagram().
|
private |
Cette methode permet de retrouver le projet contenant un schema donne.
diagram | Schema dont il faut retrouver |
Definition at line 1186 of file qetdiagrameditor.cpp.
References openedProjects().
|
private |
project | Projet dont il faut trouver la vue |
Definition at line 1201 of file qetdiagrameditor.cpp.
References openedProjects().
|
private |
filepath | Chemin de fichier d'un projet |
Definition at line 1215 of file qetdiagrameditor.cpp.
References openedProjects().
|
slot |
QETDiagramEditor::generateTerminalBlock.
Definition at line 2204 of file qetdiagrameditor.cpp.
References currentProjectView(), QETProject::filePath(), openedProjects(), ProjectView::project(), QET::Icons::tr, and QET::QetMessageBox::warning().
Referenced by setUpActions().
|
slot |
Change l'ordre des schemas d'un projet, en decalant le schema vers le bas / la droite
diagram | Schema a decaler vers le bas / la droite |
Definition at line 2007 of file qetdiagrameditor.cpp.
References findProject().
Referenced by setUpElementsPanel().
|
slot |
Change l'ordre des schemas d'un projet, en decalant le schema vers le bas / la droite x10
diagram | Schema a decaler vers le bas / la droite x10 |
Definition at line 2065 of file qetdiagrameditor.cpp.
References findProject().
Referenced by setUpElementsPanel().
|
slot |
Change l'ordre des schemas d'un projet, en decalant le schema vers le haut / la gauche
diagram | Schema a decaler vers le haut / la gauche |
Definition at line 1988 of file qetdiagrameditor.cpp.
References findProject().
Referenced by setUpElementsPanel().
|
slot |
Change l'ordre des schemas d'un projet, en decalant le schema vers le haut / la gauche en position 0
diagram | Schema a decaler vers le haut / la gauche en position 0 |
Definition at line 2026 of file qetdiagrameditor.cpp.
References findProject().
Referenced by setUpElementsPanel().
|
slot |
Change l'ordre des schemas d'un projet, en decalant le schema vers le haut / la gauche x10
diagram | Schema a decaler vers le haut / la gauche x10 |
Definition at line 2046 of file qetdiagrameditor.cpp.
References findProject().
Referenced by setUpElementsPanel().
|
slot |
QETDiagramEditor::newProject Create an empty project.
Definition at line 872 of file qetdiagrameditor.cpp.
References addProject(), TitleBlockProperties::defaultProperties(), and ConductorProperties::defaultProperties().
Referenced by setUpActions().
bool QETDiagramEditor::openAndAddProject | ( | const QString & | filepath, |
bool | interactive = true |
||
) |
Ouvre un projet depuis un fichier et l'ajoute a cet editeur
filepath | Chemin du projet a ouvrir |
interactive | true pour afficher des messages a l'utilisateur, false sinon |
Definition at line 959 of file qetdiagrameditor.cpp.
References activateWidget(), addProject(), QET::QetMessageBox::critical(), QETApp::diagramEditorForFile(), DialogWaiting::dropInstance(), QETProject::FileOpenDiscard, DialogWaiting::instance(), QETProject::Ok, QETApp::projectsRecentFiles(), QET::Icons::tr, viewForFile(), and QET::QetMessageBox::warning().
Referenced by openProject(), openRecentFile(), and QETDiagramEditor().
void QETDiagramEditor::openBackupFiles | ( | QList< KAutoSaveFile *> | backup_files | ) |
QETDiagramEditor::openBackupFiles.
backup_files |
Definition at line 1735 of file qetdiagrameditor.cpp.
References addProject(), DialogWaiting::dropInstance(), QETProject::FileOpenDiscard, DialogWaiting::instance(), QETProject::Ok, QETProject::state(), QET::Icons::tr, and QET::QetMessageBox::warning().
Referenced by QETApp::checkBackupFiles().
QList< ProjectView * > QETDiagramEditor::openedProjects | ( | ) | const |
Definition at line 1093 of file qetdiagrameditor.cpp.
References m_workspace.
Referenced by closeEvent(), editedFiles(), findProject(), generateTerminalBlock(), setUpActions(), slot_updateWindowsMenu(), and viewForFile().
|
slot |
Cette fonction demande un nom de fichier a ouvrir a l'utilisateur
Definition at line 907 of file qetdiagrameditor.cpp.
References open_dialog_dir, openAndAddProject(), and QET::Icons::tr.
Referenced by setUpActions().
|
slot |
Slot utilise pour ouvrir un fichier recent. Transfere filepath au slot openAndAddDiagram seulement si cet editeur est actif
filepath | Fichier a ouvrir |
Definition at line 896 of file qetdiagrameditor.cpp.
References openAndAddProject().
Referenced by setUpMenu().
|
slot |
Gere la fermeture d'une ProjectView
project_view | ProjectView fermee |
Definition at line 1914 of file qetdiagrameditor.cpp.
References m_element_collection_widget, pa, ElementsCollectionWidget::removeProject(), undo_group, and QETApp::unregisterProject().
Referenced by addProjectView().
|
slot |
QETDiagramEditor::readSettings Read the settings.
Definition at line 1846 of file qetdiagrameditor.cpp.
References setTabbedMode(), and setWindowedMode().
Referenced by QETDiagramEditor().
|
slot |
Definition at line 2079 of file qetdiagrameditor.cpp.
References pa, and ElementsPanelWidget::reloadAndFilter().
|
slot |
Supprime un schema de son projet
diagram | Schema a supprimer |
Definition at line 1966 of file qetdiagrameditor.cpp.
References findProject().
Referenced by removeDiagramFromProject(), and setUpElementsPanel().
|
slot |
Supprime le schema courant du projet courant
Definition at line 2086 of file qetdiagrameditor.cpp.
References currentProjectView(), and removeDiagram().
Referenced by setUpActions().
|
slot |
Definition at line 1382 of file qetdiagrameditor.cpp.
References Diagram::border_and_titleblock, BorderProperties::columns_count, currentDiagramView(), DiagramView::diagram(), BorderTitleBlock::exportBorder(), Diagram::isReadOnly(), BorderProperties::rows_count, and Diagram::undoStack().
Referenced by setUpActions().
|
slot |
QETDiagramEditor::save Ask the current active project to save.
Definition at line 825 of file qetdiagrameditor.cpp.
References currentProjectView(), ElementsCollectionWidget::highlightUnusedElement(), QETResult::isOk(), m_element_collection_widget, QETApp::projectsRecentFiles(), showError(), and QET::Icons::tr.
Referenced by setUpActions().
|
slot |
QETDiagramEditor::saveAs Ask the current active project to save as.
Definition at line 849 of file qetdiagrameditor.cpp.
References currentProjectView(), ElementsCollectionWidget::highlightUnusedElement(), QETResult::isOk(), m_element_collection_widget, QETApp::projectsRecentFiles(), showError(), and QET::Icons::tr.
Referenced by setUpActions().
|
slot |
QETDiagramEditor::selectGroupTriggered This slot is called when selection need to change.
action | : Action that describes what to do. |
Definition at line 1274 of file qetdiagrameditor.cpp.
References currentDiagramView(), DiagramView::selectAll(), DiagramView::selectInvert(), and DiagramView::selectNothing().
Referenced by setUpActions().
|
privateslot |
QETDiagramEditor::selectionChanged This slot is called when a diagram selection was changed.
Definition at line 2191 of file qetdiagrameditor.cpp.
References currentDiagramView(), DiagramView::diagram(), m_selection_properties_editor, DiagramPropertiesEditorDockWidget::setDiagram(), and slot_updateComplexActions().
Referenced by diagramWasAdded().
|
slot |
QETDiagramEditor::selectionGroupTriggered This slot is called when an action should be made on the current selection.
action | : Action that describe the action to do. |
Definition at line 1345 of file qetdiagrameditor.cpp.
References DiagramView::adjustSceneRect(), currentDiagramView(), currentElement(), DiagramView::diagram(), DiagramView::editSelection(), findElementInPanel(), RotateSelectionCommand::isValid(), DiagramContent::m_element_texts, QET::Icons::tr, and Diagram::undoStack().
Referenced by setUpActions().
|
slot |
Affiche les projets dans des onglets.
Definition at line 1836 of file qetdiagrameditor.cpp.
References m_tabbed_view_mode, m_workspace, and slot_updateWindowsMenu().
Referenced by readSettings(), and setUpActions().
|
private |
QETDiagramEditor::setUpActions Set up all Qaction.
Definition at line 238 of file qetdiagrameditor.cpp.
References activateProject(), QET::Icons::adding_image, addItemGroupTriggered(), QET::Icons::ApplicationExit, QET::Icons::Autoconnect, Diagram::background_color, Diagram::changeZValue(), closeProject(), QET::Icons::ConductorSettings, currentDiagramView(), currentProjectView(), QET::depthActionGroup(), DiagramView::diagram(), QET::Icons::DiagramAdd, QET::Icons::DiagramBg, QET::Icons::DiagramDelete, QETProject::diagrams(), QET::Icons::DialogInformation, QET::Icons::DocumentExport, QET::Icons::DocumentOpen, QET::Icons::DocumentPrint, QET::Icons::DocumentSave, QET::Icons::DocumentSaveAs, QET::Icons::DocumentSpreadsheet, QET::Icons::EditClear, QET::Icons::EditCopy, QET::Icons::EditCut, QET::Icons::EditDelete, QET::Icons::EditPaste, editProjectProperties(), QET::Icons::EditRedo, QET::Icons::EditSelectAll, QET::Icons::EditSelectInvert, QET::Icons::EditSelectNone, QET::Icons::EditTableDeleteColumn, QET::Icons::EditTableDeleteRow, QET::Icons::EditTableInsertColumnRight, QET::Icons::EditTableInsertRowUnder, QET::Icons::EditUndo, QET::Icons::ElementEdit, generateTerminalBlock(), QET::Icons::Grid, grp_visu_sel, m_add_item_actions_group, m_auto_conductor, m_cascade_window, m_clean_project, m_close_file, m_conductor_reset, m_copy, m_cut, m_delete_selection, m_depth_action_group, m_draw_grid, m_edit_diagram_properties, m_edit_selection, m_export_diagram, m_file_actions_group, m_find, m_find_element, m_grey_background, m_group_selected_texts, m_group_view_mode, m_mode_selection, m_mode_visualise, m_next_window, m_paste, m_previous_window, m_print, m_project_add_diagram, m_project_edit_properties, m_project_folio_list, m_project_nomenclature, m_project_terminalBloc, m_quit_editor, m_remove_diagram_from_project, m_rotate_selection, m_rotate_texts, m_row_column_actions_group, m_save_file, m_save_file_as, m_search_and_replace_widget, m_select_actions_group, m_selection_actions_group, m_tabbed_view_mode, m_tile_window, m_windowed_view_mode, m_workspace, m_zoom_action_toolBar, m_zoom_actions_group, newProject(), QET::Icons::ObjectRotateRight, openedProjects(), openProject(), pa, QET::Icons::PartEllipse, QET::Icons::PartLine, QET::Icons::PartPolygon, QET::Icons::PartRectangle, QET::Icons::PartSelect, QET::Icons::PartTextField, ProjectView::project(), QET::Icons::ProjectClose, QET::Icons::ProjectNew, QET::Icons::ProjectProperties, redo, removeDiagramFromProject(), rowColumnGroupTriggered(), save(), saveAs(), nomenclature::saveToCSVFile(), selectGroupTriggered(), selectionGroupTriggered(), Diagram::setDisplayGrid(), setTabbedMode(), setWindowedMode(), QET::Icons::TableOfContent, QET::Icons::TerminalStrip, QET::Icons::textGroup, QET::Icons::tr, QET::Icons::TransformRotate, undo, undo_group, QET::Icons::ViewMove, QET::Icons::ZoomDraw, QET::Icons::ZoomFitBest, zoomGroupTriggered(), QET::Icons::ZoomIn, QET::Icons::ZoomOriginal, and QET::Icons::ZoomOut.
Referenced by QETDiagramEditor().
|
private |
QETDiagramEditor::setUpAutonumberingWidget Setup the dock for AutoNumbering Selection.
Definition at line 226 of file qetdiagrameditor.cpp.
References m_autonumbering_dock.
Referenced by QETDiagramEditor().
|
private |
QETDiagramEditor::setUpElementsCollectionWidget Set up the dock widget of element collection.
Definition at line 174 of file qetdiagrameditor.cpp.
References ElementsCollectionWidget::expandFirstItems(), m_element_collection_widget, m_qdw_elmt_collection, and QET::Icons::tr.
Referenced by QETDiagramEditor().
|
private |
QETDiagramEditor::setUpElementsPanel Setup the element panel and element panel widget.
Definition at line 143 of file qetdiagrameditor.cpp.
References activateDiagram(), activateProject(), addDiagramToProject(), closeProject(), editDiagramProperties(), editProjectProperties(), moveDiagramDown(), moveDiagramDownx10(), moveDiagramUp(), moveDiagramUpTop(), moveDiagramUpx10(), pa, qdw_pa, removeDiagram(), and QET::Icons::tr.
Referenced by QETDiagramEditor().
|
private |
Definition at line 690 of file qetdiagrameditor.cpp.
References QET::Icons::ConfigureToolbars, diagram_tool_bar, QET::Icons::DocumentOpenRecent, QETMainWindow::help_menu_, QETMainWindow::insertMenu(), m_clean_project, m_conductor_reset, m_copy, m_cut, m_depth_action_group, m_draw_grid, m_edit_diagram_properties, m_export_diagram, m_file_actions_group, m_find, m_grey_background, m_mode_selection, m_mode_visualise, m_paste, m_print, m_project_add_diagram, m_project_edit_properties, m_project_folio_list, m_project_nomenclature, m_project_terminalBloc, m_quit_editor, m_remove_diagram_from_project, m_row_column_actions_group, m_select_actions_group, m_selection_actions_group, m_tabbed_view_mode, m_windowed_view_mode, m_zoom_actions_group, main_tool_bar, openRecentFile(), QETApp::projectsRecentFiles(), qdw_pa, qdw_undo, redo, QETMainWindow::settings_menu_, slot_updateWindowsMenu(), QET::Icons::tr, undo, view_tool_bar, and windows_menu.
Referenced by QETDiagramEditor().
|
private |
QETDiagramEditor::setUpSelectionPropertiesEditor Setup the dock for edit the current selection.
Definition at line 215 of file qetdiagrameditor.cpp.
References m_selection_properties_editor.
Referenced by QETDiagramEditor().
|
private |
QETDiagramEditor::setUpToolBar.
Definition at line 635 of file qetdiagrameditor.cpp.
References diagram_tool_bar, m_add_item_actions_group, m_add_item_tool_bar, m_auto_conductor, m_conductor_reset, m_copy, m_cut, m_delete_selection, m_depth_action_group, m_depth_tool_bar, m_draw_grid, m_edit_diagram_properties, m_file_actions_group, m_grey_background, m_mode_selection, m_mode_visualise, m_paste, m_print, m_rotate_selection, m_zoom_action_toolBar, main_tool_bar, redo, QET::Icons::tr, undo, and view_tool_bar.
Referenced by QETDiagramEditor().
|
private |
QETDiagramEditor::setUpUndoStack Setup the undostack and undo stack widget.
Definition at line 192 of file qetdiagrameditor.cpp.
References qdw_undo, QET::Icons::tr, and undo_group.
Referenced by QETDiagramEditor().
|
slot |
Affiche les projets dans des fenetres.
Definition at line 1827 of file qetdiagrameditor.cpp.
References m_windowed_view_mode, m_workspace, and slot_updateWindowsMenu().
Referenced by readSettings(), and setUpActions().
|
slot |
Show the error message contained in result.
Definition at line 2161 of file qetdiagrameditor.cpp.
References QETResult::errorMessage(), and QETResult::isOk().
Referenced by addProjectView(), save(), and saveAs().
|
slot |
Show the error message.
Definition at line 2169 of file qetdiagrameditor.cpp.
References QET::QetMessageBox::critical(), and QET::Icons::tr.
|
slot |
QETDiagramEditor::slot_updateActions Manage actions.
Definition at line 1409 of file qetdiagrameditor.cpp.
References currentDiagramView(), currentProjectView(), m_add_item_actions_group, m_clean_project, m_close_file, m_edit_diagram_properties, m_export_diagram, m_grey_background, m_print, m_project_add_diagram, m_project_edit_properties, m_project_folio_list, m_project_nomenclature, m_remove_diagram_from_project, m_rotate_texts, m_row_column_actions_group, m_save_file, m_save_file_as, m_select_actions_group, m_zoom_actions_group, slot_updateAutoNumDock(), slot_updateComplexActions(), slot_updateModeActions(), slot_updatePasteAction(), and slot_updateUndoStack().
Referenced by addProjectView(), QETDiagramEditor(), and subWindowActivated().
|
slot |
QETDiagramEditor::slot_updateAutoNumDock Update Auto Num Dock Widget when changing Project.
Definition at line 1451 of file qetdiagrameditor.cpp.
References activeSubWindowIndex, currentDiagramView(), currentProjectView(), m_autonumbering_dock, m_workspace, and AutoNumberingDockWidget::setProject().
Referenced by slot_updateActions().
|
slot |
QETDiagramEditor::slot_updateComplexActions Manage the actions who need some conditions to be enable or not. This method does nothing if there is no project opened.
Definition at line 1475 of file qetdiagrameditor.cpp.
References Diagram::canRotateSelection(), QET::Icons::ConductorEdit, DiagramContent::count(), currentDiagramView(), DiagramView::diagram(), QET::Icons::EditText, QET::Icons::ElementEdit, DiagramContent::Elements, DiagramContent::hasCopiableItems(), DiagramContent::hasDeletableItems(), DiagramContent::Images, Diagram::isReadOnly(), DiagramContent::items(), m_conductor_reset, m_copy, m_cut, m_delete_selection, m_depth_action_group, m_edit_selection, DiagramContent::m_element_texts, m_find_element, m_group_selected_texts, m_rotate_selection, m_rotate_texts, QET::Icons::resize_image, QET::Icons::ro, Diagram::selectedConductors(), DiagramContent::SelectedOnly, DiagramContent::selectedTexts(), DiagramContent::selectedTextsGroup(), DiagramContent::Shapes, QET::Icons::tr, ConductorTextItem::Type, and DynamicElementTextItem::Type.
Referenced by selectionChanged(), and slot_updateActions().
|
slot |
QETDiagramEditor::slot_updateModeActions Manage action who need an opened diagram or project to be updated.
Definition at line 1591 of file qetdiagrameditor.cpp.
References currentDiagramView(), currentProjectView(), grp_visu_sel, m_auto_conductor, m_mode_selection, and m_mode_visualise.
Referenced by diagramWasAdded(), and slot_updateActions().
|
slot |
Gere les actions ayant besoin du presse-papier
Definition at line 1627 of file qetdiagrameditor.cpp.
References Diagram::clipboardMayContainDiagram(), currentDiagramView(), and m_paste.
Referenced by QETDiagramEditor(), and slot_updateActions().
|
slot |
QETDiagramEditor::slot_updateUndoStack Update the undo stack view.
Definition at line 1464 of file qetdiagrameditor.cpp.
References currentProjectView(), and undo_group.
Referenced by slot_updateActions().
|
slot |
met a jour le menu "Fenetres"
Definition at line 1762 of file qetdiagrameditor.cpp.
References currentProjectView(), m_cascade_window, m_close_file, m_next_window, m_previous_window, m_tile_window, m_workspace, openedProjects(), QET::Icons::tr, windowMapper, and windows_menu.
Referenced by setTabbedMode(), setUpMenu(), setWindowedMode(), and subWindowActivated().
|
slot |
QETDiagramEditor::subWindowActivated Slot used to update menu and undo stack when subwindows of MDIarea was activated.
subWindows |
Definition at line 2179 of file qetdiagrameditor.cpp.
References slot_updateActions(), and slot_updateWindowsMenu().
Referenced by QETDiagramEditor().
|
private |
widget | Widget a rechercher dans la zone MDI |
Definition at line 1231 of file qetdiagrameditor.cpp.
References m_workspace.
Referenced by activateWidget(), and closeProject().
ProjectView * QETDiagramEditor::viewForFile | ( | const QString & | filepath | ) | const |
filepath | Un chemin de fichier Note : si filepath est une chaine vide, cette methode retourne 0. |
Definition at line 1706 of file qetdiagrameditor.cpp.
References openedProjects().
Referenced by openAndAddProject().
|
slot |
QETDiagramEditor::writeSettings Write the settings.
Definition at line 1871 of file qetdiagrameditor.cpp.
Referenced by closeEvent().
|
slot |
Definition at line 1250 of file qetdiagrameditor.cpp.
References currentDiagramView(), DiagramView::zoom(), DiagramView::zoomContent(), DiagramView::zoomFit(), and DiagramView::zoomReset().
Referenced by setUpActions().
|
private |
Definition at line 225 of file qetdiagrameditor.h.
Referenced by QETDiagramEditor(), and slot_updateAutoNumDock().
|
private |
Show a dialog to edit default conductor properties.
Definition at line 178 of file qetdiagrameditor.h.
|
private |
Definition at line 219 of file qetdiagrameditor.h.
Referenced by setUpMenu(), and setUpToolBar().
|
private |
Action group for visualisation vs edition mode.
Definition at line 160 of file qetdiagrameditor.h.
Referenced by setUpActions(), and slot_updateModeActions().
|
private |
Definition at line 162 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpToolBar(), and slot_updateActions().
|
private |
Definition at line 220 of file qetdiagrameditor.h.
Referenced by setUpToolBar().
|
private |
Enable/Disable the use of auto conductor.
Definition at line 177 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpToolBar(), and slot_updateModeActions().
|
private |
Definition at line 224 of file qetdiagrameditor.h.
Referenced by addProject(), setUpAutonumberingWidget(), and slot_updateAutoNumDock().
|
private |
Show MDI subwindows as cascade.
Definition at line 189 of file qetdiagrameditor.h.
Referenced by setUpActions(), and slot_updateWindowsMenu().
|
private |
Clean the content of the curent project by removing useless items.
Definition at line 184 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), and slot_updateActions().
|
private |
Close current project file.
Definition at line 199 of file qetdiagrameditor.h.
Referenced by setUpActions(), slot_updateActions(), and slot_updateWindowsMenu().
QAction* QETDiagramEditor::m_conductor_reset |
Reset paths of selected conductors.
Definition at line 151 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updateComplexActions().
QAction* QETDiagramEditor::m_copy |
Copy selection to clipboard.
Definition at line 153 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updateComplexActions().
QAction* QETDiagramEditor::m_cut |
Cut selection to clipboard.
Definition at line 152 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updateComplexActions().
|
private |
Only zoom action must displayed in the toolbar.
Delete selection
Definition at line 194 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpToolBar(), and slot_updateComplexActions().
QActionGroup* QETDiagramEditor::m_depth_action_group = nullptr |
Action related to edit a selected item.
Definition at line 157 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updateComplexActions().
|
private |
Definition at line 221 of file qetdiagrameditor.h.
Referenced by setUpToolBar().
|
private |
Switch the background grid display or not.
Definition at line 180 of file qetdiagrameditor.h.
Referenced by drawGrid(), setUpActions(), setUpMenu(), and setUpToolBar().
QAction* QETDiagramEditor::m_edit_diagram_properties |
Show a dialog to edit diagram properties.
Definition at line 150 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updateActions().
|
private |
To edit selected item.
Definition at line 192 of file qetdiagrameditor.h.
Referenced by setUpActions(), and slot_updateComplexActions().
|
private |
Dock for the undo list.
Definition at line 210 of file qetdiagrameditor.h.
Referenced by addProject(), event(), findElementInPanel(), projectWasClosed(), save(), saveAs(), and setUpElementsCollectionWidget().
|
private |
Export diagrams of the current project as imagess.
Definition at line 171 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), and slot_updateActions().
|
private |
Action related to global selections.
Definition at line 165 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), and setUpToolBar().
|
private |
Definition at line 202 of file qetdiagrameditor.h.
Referenced by setUpActions(), and setUpMenu().
|
private |
Find the selected element in the panel.
Definition at line 197 of file qetdiagrameditor.h.
Referenced by setUpActions(), and slot_updateComplexActions().
|
private |
Definition at line 226 of file qetdiagrameditor.h.
Referenced by event().
|
private |
Switch the background color in white or grey.
Definition at line 179 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updateActions().
|
private |
Definition at line 198 of file qetdiagrameditor.h.
Referenced by setUpActions(), and slot_updateComplexActions().
|
private |
Action group for project.
Definition at line 161 of file qetdiagrameditor.h.
Referenced by setUpActions().
|
private |
Set edition mode.
Definition at line 169 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updateModeActions().
|
private |
Set visualisation mode.
Definition at line 170 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updateModeActions().
|
private |
Switch to the next document.
Definition at line 191 of file qetdiagrameditor.h.
Referenced by setUpActions(), and slot_updateWindowsMenu().
|
private |
Paste clipboard content on the current diagram.
Definition at line 176 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updatePasteAction().
|
private |
Switch to the previous document.
Definition at line 190 of file qetdiagrameditor.h.
Referenced by setUpActions(), and slot_updateWindowsMenu().
|
private |
Print diagrams of the current project.
Definition at line 172 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updateActions().
|
private |
Add a diagram to the current project.
Definition at line 182 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), and slot_updateActions().
|
private |
Edit the properties of the current project.
Definition at line 181 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), and slot_updateActions().
|
private |
Sommaire des schemas.
Definition at line 185 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), and slot_updateActions().
|
private |
generate nomenclature
Definition at line 186 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), and slot_updateActions().
|
private |
generate terminal block
Definition at line 187 of file qetdiagrameditor.h.
Referenced by setUpActions(), and setUpMenu().
|
private |
Dock for the elements panel.
Definition at line 208 of file qetdiagrameditor.h.
Referenced by setUpElementsCollectionWidget().
|
private |
Quit the diagram editor.
Definition at line 173 of file qetdiagrameditor.h.
Referenced by setUpActions(), and setUpMenu().
|
private |
Delete a diagram from the current project.
Definition at line 183 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), and slot_updateActions().
|
private |
Rotate selected elements and text items by 90 degrees.
Definition at line 195 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpToolBar(), and slot_updateComplexActions().
|
private |
Direct selected text items to a specific angle.
Definition at line 196 of file qetdiagrameditor.h.
Referenced by setUpActions(), slot_updateActions(), and slot_updateComplexActions().
QActionGroup QETDiagramEditor::m_row_column_actions_group |
Definition at line 155 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), and slot_updateActions().
|
private |
Save current project.
Definition at line 200 of file qetdiagrameditor.h.
Referenced by setUpActions(), and slot_updateActions().
|
private |
Save current project as a specific file.
Definition at line 201 of file qetdiagrameditor.h.
Referenced by setUpActions(), and slot_updateActions().
|
private |
Definition at line 227 of file qetdiagrameditor.h.
Referenced by QETDiagramEditor(), and setUpActions().
|
private |
Action related to zoom for diagram.
Definition at line 164 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), and slot_updateActions().
QActionGroup QETDiagramEditor::m_selection_actions_group |
Action related to add/remove rows/column in diagram.
Definition at line 156 of file qetdiagrameditor.h.
Referenced by setUpActions(), and setUpMenu().
|
private |
Definition at line 212 of file qetdiagrameditor.h.
Referenced by selectionChanged(), and setUpSelectionPropertiesEditor().
|
private |
Actions related to file (open, close, save...)
Display projects as tabs
Definition at line 167 of file qetdiagrameditor.h.
Referenced by setTabbedMode(), setUpActions(), and setUpMenu().
|
private |
Show MDI subwindows as tile.
Definition at line 188 of file qetdiagrameditor.h.
Referenced by setUpActions(), and slot_updateWindowsMenu().
|
private |
Display projects as windows.
Definition at line 168 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), and setWindowedMode().
|
private |
Definition at line 204 of file qetdiagrameditor.h.
Referenced by activateWidget(), addProjectView(), currentProjectView(), openedProjects(), QETDiagramEditor(), setTabbedMode(), setUpActions(), setWindowedMode(), slot_updateAutoNumDock(), slot_updateWindowsMenu(), and subWindowForWidget().
|
private |
Definition at line 193 of file qetdiagrameditor.h.
Referenced by setUpActions(), and setUpToolBar().
|
private |
Action related to adding (add text image shape...)
Definition at line 163 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), and slot_updateActions().
|
private |
Definition at line 217 of file qetdiagrameditor.h.
Referenced by setUpMenu(), and setUpToolBar().
|
private |
Definition at line 206 of file qetdiagrameditor.h.
Referenced by openProject().
|
private |
Elements panel.
Definition at line 214 of file qetdiagrameditor.h.
Referenced by addProject(), projectWasClosed(), reloadOldElementPanel(), setUpActions(), and setUpElementsPanel().
|
private |
Directory to use for file dialogs such as File > save.
Definition at line 207 of file qetdiagrameditor.h.
Referenced by QETDiagramEditor(), setUpElementsPanel(), and setUpMenu().
|
private |
Definition at line 209 of file qetdiagrameditor.h.
Referenced by QETDiagramEditor(), setUpMenu(), and setUpUndoStack().
|
private |
Redo the latest cancelled operation.
Definition at line 175 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), and setUpToolBar().
|
private |
Cancel the latest action.
Definition at line 174 of file qetdiagrameditor.h.
Referenced by setUpActions(), setUpMenu(), and setUpToolBar().
|
private |
Definition at line 223 of file qetdiagrameditor.h.
Referenced by addProject(), projectWasClosed(), setUpActions(), setUpUndoStack(), and slot_updateUndoStack().
|
private |
Definition at line 218 of file qetdiagrameditor.h.
Referenced by setUpMenu(), and setUpToolBar().
|
private |
Definition at line 205 of file qetdiagrameditor.h.
Referenced by QETDiagramEditor(), and slot_updateWindowsMenu().
|
private |
Definition at line 215 of file qetdiagrameditor.h.
Referenced by setUpMenu(), and slot_updateWindowsMenu().