QElectroTech  0.70
Public Slots | Public Member Functions | Public Attributes | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
QETDiagramEditor Class Reference

#include <qetdiagrameditor.h>

Public Slots

void save ()
 QETDiagramEditor::save Ask the current active project to save. More...
 
void saveAs ()
 QETDiagramEditor::saveAs Ask the current active project to save as. More...
 
bool newProject ()
 QETDiagramEditor::newProject Create an empty project. More...
 
bool openProject ()
 
bool openRecentFile (const QString &)
 
bool closeProject (ProjectView *)
 
bool closeProject (QETProject *)
 
void zoomGroupTriggered (QAction *action)
 
void selectGroupTriggered (QAction *action)
 QETDiagramEditor::selectGroupTriggered This slot is called when selection need to change. More...
 
void addItemGroupTriggered (QAction *action)
 QETDiagramEditor::addItemGroupTriggered This slot is called when an item must be added to the curent diagram, this slot use the DVEventInterface to add item. More...
 
void selectionGroupTriggered (QAction *action)
 QETDiagramEditor::selectionGroupTriggered This slot is called when an action should be made on the current selection. More...
 
void rowColumnGroupTriggered (QAction *action)
 
void slot_updateActions ()
 QETDiagramEditor::slot_updateActions Manage actions. More...
 
void slot_updateUndoStack ()
 QETDiagramEditor::slot_updateUndoStack Update the undo stack view. More...
 
void slot_updateModeActions ()
 QETDiagramEditor::slot_updateModeActions Manage action who need an opened diagram or project to be updated. More...
 
void slot_updateComplexActions ()
 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. More...
 
void slot_updatePasteAction ()
 
void slot_updateWindowsMenu ()
 
void slot_updateAutoNumDock ()
 QETDiagramEditor::slot_updateAutoNumDock Update Auto Num Dock Widget when changing Project. More...
 
void generateTerminalBlock ()
 QETDiagramEditor::generateTerminalBlock. More...
 
void setWindowedMode ()
 
void setTabbedMode ()
 
void readSettings ()
 QETDiagramEditor::readSettings Read the settings. More...
 
void writeSettings ()
 QETDiagramEditor::writeSettings Write the settings. More...
 
void activateDiagram (Diagram *)
 
void activateProject (QETProject *)
 
void activateProject (ProjectView *)
 
void activateWidget (QWidget *)
 
void projectWasClosed (ProjectView *)
 
void editProjectProperties (ProjectView *)
 
void editProjectProperties (QETProject *)
 
void editDiagramProperties (DiagramView *)
 
void editDiagramProperties (Diagram *)
 
void addDiagramToProject (QETProject *)
 
void removeDiagram (Diagram *)
 
void removeDiagramFromProject ()
 
void moveDiagramUp (Diagram *)
 
void moveDiagramDown (Diagram *)
 
void moveDiagramUpTop (Diagram *)
 
void moveDiagramUpx10 (Diagram *)
 
void moveDiagramDownx10 (Diagram *)
 
void reloadOldElementPanel ()
 
void diagramWasAdded (DiagramView *)
 QETDiagramEditor::diagramWasAdded Manage the adding of diagram view in a project. More...
 
void findElementInPanel (const ElementsLocation &)
 QETDiagramEditor::findElementInPanel Find the item for in the element panel. More...
 
void editElementInEditor (const ElementsLocation &)
 
void editSelectedElementInEditor ()
 
void showError (const QETResult &)
 
void showError (const QString &)
 
void subWindowActivated (QMdiSubWindow *subWindows)
 QETDiagramEditor::subWindowActivated Slot used to update menu and undo stack when subwindows of MDIarea was activated. More...
 
- Public Slots inherited from QETMainWindow
void toggleFullScreen ()
 
void updateFullScreenAction ()
 
void checkToolbarsmenu ()
 

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
 
ProjectViewviewForFile (const QString &) const
 
ProjectViewcurrentProjectView () const
 
QETProjectcurrentProject () 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 Member Functions

 QETDiagramEditor (const QETDiagramEditor &)
 
void setUpElementsPanel ()
 QETDiagramEditor::setUpElementsPanel Setup the element panel and element panel widget. More...
 
void setUpElementsCollectionWidget ()
 QETDiagramEditor::setUpElementsCollectionWidget Set up the dock widget of element collection. More...
 
void setUpUndoStack ()
 QETDiagramEditor::setUpUndoStack Setup the undostack and undo stack widget. More...
 
void setUpSelectionPropertiesEditor ()
 QETDiagramEditor::setUpSelectionPropertiesEditor Setup the dock for edit the current selection. More...
 
void setUpAutonumberingWidget ()
 QETDiagramEditor::setUpAutonumberingWidget Setup the dock for AutoNumbering Selection. More...
 
void setUpActions ()
 QETDiagramEditor::setUpActions Set up all Qaction. More...
 
void setUpToolBar ()
 QETDiagramEditor::setUpToolBar. More...
 
void setUpMenu ()
 QETDiagramEditor::setUpMenu. More...
 
bool addProject (QETProject *, bool=true)
 
DiagramViewcurrentDiagramView () const
 
ElementcurrentElement () const
 
ProjectViewfindProject (DiagramView *) const
 
ProjectViewfindProject (Diagram *) const
 
ProjectViewfindProject (QETProject *) const
 
ProjectViewfindProject (const QString &) const
 
QMdiSubWindow * subWindowForWidget (QWidget *) const
 

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
 
ElementsCollectionWidgetm_element_collection_widget
 Dock for the undo list. More...
 
DiagramPropertiesEditorDockWidgetm_selection_properties_editor
 
ElementsPanelWidgetpa
 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
 
AutoNumberingDockWidgetm_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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QETDiagramEditor() [1/2]

QETDiagramEditor::QETDiagramEditor ( const QStringList &  files = QStringList(),
QWidget *  parent = nullptr 
)

◆ ~QETDiagramEditor()

QETDiagramEditor::~QETDiagramEditor ( )
override

Destructeur

Definition at line 136 of file qetdiagrameditor.cpp.

◆ QETDiagramEditor() [2/2]

QETDiagramEditor::QETDiagramEditor ( const QETDiagramEditor )
private

Member Function Documentation

◆ activateDiagram

void QETDiagramEditor::activateDiagram ( Diagram diagram)
slot

Active le schema passe en parametre

Parameters
diagramSchema a activer

Definition at line 1882 of file qetdiagrameditor.cpp.

References activateWidget(), and findProject().

Referenced by setUpElementsPanel().

◆ activateProject [1/2]

void QETDiagramEditor::activateProject ( QETProject project)
slot

Active le projet passe en parametre

Parameters
projectProjet a activer

Definition at line 1897 of file qetdiagrameditor.cpp.

References findProject().

Referenced by addDiagramToProject(), closeProject(), editDiagramProperties(), editProjectProperties(), setUpActions(), and setUpElementsPanel().

◆ activateProject [2/2]

void QETDiagramEditor::activateProject ( ProjectView project_view)
slot

Active le projet passe en parametre

Parameters
project_viewProjet a activer

Definition at line 1905 of file qetdiagrameditor.cpp.

References activateWidget().

◆ activateWidget

void QETDiagramEditor::activateWidget ( QWidget *  widget)
slot
Parameters
widgetWidget a activer

Definition at line 1243 of file qetdiagrameditor.cpp.

References m_workspace, and subWindowForWidget().

Referenced by activateDiagram(), activateProject(), openAndAddProject(), and QETDiagramEditor().

◆ addDiagramToProject

void QETDiagramEditor::addDiagramToProject ( QETProject project)
slot

Ajoute un nouveau schema a un projet

Parameters
projectProjet auquel il faut ajouter un schema

Definition at line 1948 of file qetdiagrameditor.cpp.

References activateProject(), and findProject().

Referenced by setUpElementsPanel().

◆ addItemGroupTriggered

void QETDiagramEditor::addItemGroupTriggered ( QAction *  action)
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.

Parameters
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().

◆ addProject()

bool QETDiagramEditor::addProject ( QETProject project,
bool  update_panel = true 
)
private

Ajoute un projetmoveDiagramUp(

Parameters
projectprojet a ajouter
update_panelWhether 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().

◆ addProjectView()

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.

Parameters
project_view,projectview 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().

◆ closeEvent()

void QETDiagramEditor::closeEvent ( QCloseEvent *  qce)
override

Permet de quitter l'application lors de la fermeture de la fenetre principale

Parameters
qceLe QCloseEvent correspondant a l'evenement de fermeture

Definition at line 779 of file qetdiagrameditor.cpp.

References closeProject(), openedProjects(), and writeSettings().

◆ closeProject [1/2]

bool QETDiagramEditor::closeProject ( ProjectView project_view)
slot

Ferme un projet

Parameters
project_viewProjet a fermer
Returns
true si la fermeture du projet a reussi, false sinon Note : cette methode renvoie true si project est nul

Definition at line 930 of file qetdiagrameditor.cpp.

References activateProject(), and subWindowForWidget().

Referenced by closeEvent(), closeProject(), setUpActions(), and setUpElementsPanel().

◆ closeProject [2/2]

bool QETDiagramEditor::closeProject ( QETProject project)
slot

Ferme un projet

Parameters
projectprojet a fermer
Returns
true si la fermeture du fichier a reussi, false sinon Note : cette methode renvoie true si project est nul

Definition at line 946 of file qetdiagrameditor.cpp.

References closeProject(), and findProject().

◆ currentDiagramView()

DiagramView * QETDiagramEditor::currentDiagramView ( ) const
private

◆ currentElement()

Element * QETDiagramEditor::currentElement ( ) const
private
Returns
the selected element in the current diagram view, or 0 if: no diagram is being viewed in this editor. no element is selected more than one element is selected

Definition at line 1154 of file qetdiagrameditor.cpp.

References currentDiagramView(), and DiagramView::diagram().

Referenced by editSelectedElementInEditor(), and selectionGroupTriggered().

◆ currentProject()

QETProject * QETDiagramEditor::currentProject ( ) const

QETDiagramEditor::currentProject.

Returns
the current edited project. This function can return nullptr.

Definition at line 1126 of file qetdiagrameditor.cpp.

References currentProjectView(), and ProjectView::project().

Referenced by SearchAndReplaceWidget::fillItemsList().

◆ currentProjectView()

ProjectView * QETDiagramEditor::currentProjectView ( ) const

◆ diagramWasAdded

void QETDiagramEditor::diagramWasAdded ( DiagramView dv)
slot

QETDiagramEditor::diagramWasAdded Manage the adding of diagram view in a project.

Parameters
dv,addeddiagram view

Definition at line 2124 of file qetdiagrameditor.cpp.

References selectionChanged(), and slot_updateModeActions().

Referenced by addProjectView().

◆ drawGrid()

bool QETDiagramEditor::drawGrid ( ) const

QETDiagramEditor::drawGrid.

Returns
true if the grid of folio must be displayed

Definition at line 1727 of file qetdiagrameditor.cpp.

References m_draw_grid.

◆ editDiagramProperties [1/2]

void QETDiagramEditor::editDiagramProperties ( DiagramView diagram_view)
slot

Edite les proprietes du schema diagram

Parameters
diagram_viewschema dont il faut editer les proprietes

Definition at line 1806 of file qetdiagrameditor.cpp.

References activateProject(), and findProject().

Referenced by editDiagramProperties(), and setUpElementsPanel().

◆ editDiagramProperties [2/2]

void QETDiagramEditor::editDiagramProperties ( Diagram diagram)
slot

Edite les proprietes du schema diagram

Parameters
diagramschema dont il faut editer les proprietes

Definition at line 1817 of file qetdiagrameditor.cpp.

References activateProject(), editDiagramProperties(), and findProject().

◆ editedFiles()

QList< QString > QETDiagramEditor::editedFiles ( ) const
Returns
la liste des fichiers edites par cet editeur de schemas

Definition at line 1689 of file qetdiagrameditor.cpp.

References openedProjects().

◆ editElementInEditor

void QETDiagramEditor::editElementInEditor ( const ElementsLocation location)
slot

Lance l'editeur d'element pour l'element filename

Parameters
locationEmplacement de l'element a editer

Definition at line 2144 of file qetdiagrameditor.cpp.

References QETApp::instance().

Referenced by addProjectView(), and editSelectedElementInEditor().

◆ editProjectProperties [1/2]

void QETDiagramEditor::editProjectProperties ( ProjectView project_view)
slot

Edite les proprietes du projet project_view.

Parameters
project_viewVue 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().

◆ editProjectProperties [2/2]

void QETDiagramEditor::editProjectProperties ( QETProject project)
slot

Edite les proprietes du projet project.

Parameters
projectProjet dont il faut editer les proprietes

Definition at line 1940 of file qetdiagrameditor.cpp.

References editProjectProperties(), and findProject().

◆ editSelectedElementInEditor

void QETDiagramEditor::editSelectedElementInEditor ( )
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().

◆ event()

bool QETDiagramEditor::event ( QEvent *  e)
overrideprotected

QETDiagramEditor::event Reimplemented to : -Load elements collection when WindowActivate.

Parameters
e
Returns

Definition at line 811 of file qetdiagrameditor.cpp.

References QETMainWindow::event(), m_element_collection_widget, and m_first_show.

◆ findElementInPanel

void QETDiagramEditor::findElementInPanel ( const ElementsLocation location)
slot

QETDiagramEditor::findElementInPanel Find the item for in the element panel.

Parameters
location

Definition at line 2135 of file qetdiagrameditor.cpp.

References m_element_collection_widget, and ElementsCollectionWidget::setCurrentLocation().

Referenced by addProjectView(), and selectionGroupTriggered().

◆ findProject() [1/4]

ProjectView * QETDiagramEditor::findProject ( DiagramView diagram_view) const
private

Cette methode permet de retrouver le projet contenant un schema donne.

Parameters
diagram_viewSchema dont il faut retrouver
Returns
la vue sur le projet contenant ce schema ou 0 s'il n'y en a pas

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().

◆ findProject() [2/4]

ProjectView * QETDiagramEditor::findProject ( Diagram diagram) const
private

Cette methode permet de retrouver le projet contenant un schema donne.

Parameters
diagramSchema dont il faut retrouver
Returns
la vue sur le projet contenant ce schema ou 0 s'il n'y en a pas

Definition at line 1186 of file qetdiagrameditor.cpp.

References openedProjects().

◆ findProject() [3/4]

ProjectView * QETDiagramEditor::findProject ( QETProject project) const
private
Parameters
projectProjet dont il faut trouver la vue
Returns
la vue du projet passe en parametre

Definition at line 1201 of file qetdiagrameditor.cpp.

References openedProjects().

◆ findProject() [4/4]

ProjectView * QETDiagramEditor::findProject ( const QString &  filepath) const
private
Parameters
filepathChemin de fichier d'un projet
Returns
le ProjectView correspondant au chemin passe en parametre, ou 0 si celui-ci n'a pas ete trouve

Definition at line 1215 of file qetdiagrameditor.cpp.

References openedProjects().

◆ generateTerminalBlock

void QETDiagramEditor::generateTerminalBlock ( )
slot

◆ moveDiagramDown

void QETDiagramEditor::moveDiagramDown ( Diagram diagram)
slot

Change l'ordre des schemas d'un projet, en decalant le schema vers le bas / la droite

Parameters
diagramSchema a decaler vers le bas / la droite

Definition at line 2007 of file qetdiagrameditor.cpp.

References findProject().

Referenced by setUpElementsPanel().

◆ moveDiagramDownx10

void QETDiagramEditor::moveDiagramDownx10 ( Diagram diagram)
slot

Change l'ordre des schemas d'un projet, en decalant le schema vers le bas / la droite x10

Parameters
diagramSchema a decaler vers le bas / la droite x10

Definition at line 2065 of file qetdiagrameditor.cpp.

References findProject().

Referenced by setUpElementsPanel().

◆ moveDiagramUp

void QETDiagramEditor::moveDiagramUp ( Diagram diagram)
slot

Change l'ordre des schemas d'un projet, en decalant le schema vers le haut / la gauche

Parameters
diagramSchema a decaler vers le haut / la gauche

Definition at line 1988 of file qetdiagrameditor.cpp.

References findProject().

Referenced by setUpElementsPanel().

◆ moveDiagramUpTop

void QETDiagramEditor::moveDiagramUpTop ( Diagram diagram)
slot

Change l'ordre des schemas d'un projet, en decalant le schema vers le haut / la gauche en position 0

Parameters
diagramSchema a decaler vers le haut / la gauche en position 0

Definition at line 2026 of file qetdiagrameditor.cpp.

References findProject().

Referenced by setUpElementsPanel().

◆ moveDiagramUpx10

void QETDiagramEditor::moveDiagramUpx10 ( Diagram diagram)
slot

Change l'ordre des schemas d'un projet, en decalant le schema vers le haut / la gauche x10

Parameters
diagramSchema a decaler vers le haut / la gauche x10

Definition at line 2046 of file qetdiagrameditor.cpp.

References findProject().

Referenced by setUpElementsPanel().

◆ newProject

bool QETDiagramEditor::newProject ( )
slot

◆ openAndAddProject()

bool QETDiagramEditor::openAndAddProject ( const QString &  filepath,
bool  interactive = true 
)

Ouvre un projet depuis un fichier et l'ajoute a cet editeur

Parameters
filepathChemin du projet a ouvrir
interactivetrue pour afficher des messages a l'utilisateur, false sinon
Returns
true si l'ouverture a reussi, 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().

◆ openBackupFiles()

void QETDiagramEditor::openBackupFiles ( QList< KAutoSaveFile *>  backup_files)

◆ openedProjects()

QList< ProjectView * > QETDiagramEditor::openedProjects ( ) const
Returns
la liste des projets ouverts dans cette fenetre

Definition at line 1093 of file qetdiagrameditor.cpp.

References m_workspace.

Referenced by closeEvent(), editedFiles(), findProject(), generateTerminalBlock(), setUpActions(), slot_updateWindowsMenu(), and viewForFile().

◆ openProject

bool QETDiagramEditor::openProject ( )
slot

Cette fonction demande un nom de fichier a ouvrir a l'utilisateur

Returns
true si l'ouverture a reussi, false sinon

Definition at line 907 of file qetdiagrameditor.cpp.

References open_dialog_dir, openAndAddProject(), and QET::Icons::tr.

Referenced by setUpActions().

◆ openRecentFile

bool QETDiagramEditor::openRecentFile ( const QString &  filepath)
slot

Slot utilise pour ouvrir un fichier recent. Transfere filepath au slot openAndAddDiagram seulement si cet editeur est actif

Parameters
filepathFichier a ouvrir
See also
openAndAddDiagram

Definition at line 896 of file qetdiagrameditor.cpp.

References openAndAddProject().

Referenced by setUpMenu().

◆ projectWasClosed

void QETDiagramEditor::projectWasClosed ( ProjectView project_view)
slot

Gere la fermeture d'une ProjectView

Parameters
project_viewProjectView 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().

◆ readSettings

void QETDiagramEditor::readSettings ( )
slot

QETDiagramEditor::readSettings Read the settings.

Definition at line 1846 of file qetdiagrameditor.cpp.

References setTabbedMode(), and setWindowedMode().

Referenced by QETDiagramEditor().

◆ reloadOldElementPanel

void QETDiagramEditor::reloadOldElementPanel ( )
slot

Definition at line 2079 of file qetdiagrameditor.cpp.

References pa, and ElementsPanelWidget::reloadAndFilter().

◆ removeDiagram

void QETDiagramEditor::removeDiagram ( Diagram diagram)
slot

Supprime un schema de son projet

Parameters
diagramSchema a supprimer

Definition at line 1966 of file qetdiagrameditor.cpp.

References findProject().

Referenced by removeDiagramFromProject(), and setUpElementsPanel().

◆ removeDiagramFromProject

void QETDiagramEditor::removeDiagramFromProject ( )
slot

Supprime le schema courant du projet courant

Definition at line 2086 of file qetdiagrameditor.cpp.

References currentProjectView(), and removeDiagram().

Referenced by setUpActions().

◆ rowColumnGroupTriggered

void QETDiagramEditor::rowColumnGroupTriggered ( QAction *  action)
slot

◆ save

void QETDiagramEditor::save ( )
slot

◆ saveAs

void QETDiagramEditor::saveAs ( )
slot

◆ selectGroupTriggered

void QETDiagramEditor::selectGroupTriggered ( QAction *  action)
slot

QETDiagramEditor::selectGroupTriggered This slot is called when selection need to change.

Parameters
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().

◆ selectionChanged

void QETDiagramEditor::selectionChanged ( )
privateslot

◆ selectionGroupTriggered

void QETDiagramEditor::selectionGroupTriggered ( QAction *  action)
slot

QETDiagramEditor::selectionGroupTriggered This slot is called when an action should be made on the current selection.

Parameters
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().

◆ setTabbedMode

void QETDiagramEditor::setTabbedMode ( )
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().

◆ setUpActions()

void QETDiagramEditor::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().

◆ setUpAutonumberingWidget()

void QETDiagramEditor::setUpAutonumberingWidget ( )
private

QETDiagramEditor::setUpAutonumberingWidget Setup the dock for AutoNumbering Selection.

Definition at line 226 of file qetdiagrameditor.cpp.

References m_autonumbering_dock.

Referenced by QETDiagramEditor().

◆ setUpElementsCollectionWidget()

void QETDiagramEditor::setUpElementsCollectionWidget ( )
private

◆ setUpElementsPanel()

void QETDiagramEditor::setUpElementsPanel ( )
private

◆ setUpMenu()

void QETDiagramEditor::setUpMenu ( )
private

◆ setUpSelectionPropertiesEditor()

void QETDiagramEditor::setUpSelectionPropertiesEditor ( )
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().

◆ setUpToolBar()

void QETDiagramEditor::setUpToolBar ( )
private

◆ setUpUndoStack()

void QETDiagramEditor::setUpUndoStack ( )
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().

◆ setWindowedMode

void QETDiagramEditor::setWindowedMode ( )
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().

◆ showError [1/2]

void QETDiagramEditor::showError ( const QETResult result)
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().

◆ showError [2/2]

void QETDiagramEditor::showError ( const QString &  error)
slot

Show the error message.

Definition at line 2169 of file qetdiagrameditor.cpp.

References QET::QetMessageBox::critical(), and QET::Icons::tr.

◆ slot_updateActions

void QETDiagramEditor::slot_updateActions ( )
slot

◆ slot_updateAutoNumDock

void QETDiagramEditor::slot_updateAutoNumDock ( )
slot

◆ slot_updateComplexActions

void QETDiagramEditor::slot_updateComplexActions ( )
slot

◆ slot_updateModeActions

void QETDiagramEditor::slot_updateModeActions ( )
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_updatePasteAction

void QETDiagramEditor::slot_updatePasteAction ( )
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_updateUndoStack

void QETDiagramEditor::slot_updateUndoStack ( )
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_updateWindowsMenu

void QETDiagramEditor::slot_updateWindowsMenu ( )
slot

◆ subWindowActivated

void QETDiagramEditor::subWindowActivated ( QMdiSubWindow *  subWindows)
slot

QETDiagramEditor::subWindowActivated Slot used to update menu and undo stack when subwindows of MDIarea was activated.

Parameters
subWindows

Definition at line 2179 of file qetdiagrameditor.cpp.

References slot_updateActions(), and slot_updateWindowsMenu().

Referenced by QETDiagramEditor().

◆ subWindowForWidget()

QMdiSubWindow * QETDiagramEditor::subWindowForWidget ( QWidget *  widget) const
private
Parameters
widgetWidget a rechercher dans la zone MDI
Returns
La sous-fenetre accueillant le widget passe en parametre, ou 0 si celui-ci n'a pas ete trouve.

Definition at line 1231 of file qetdiagrameditor.cpp.

References m_workspace.

Referenced by activateWidget(), and closeProject().

◆ viewForFile()

ProjectView * QETDiagramEditor::viewForFile ( const QString &  filepath) const
Parameters
filepathUn chemin de fichier Note : si filepath est une chaine vide, cette methode retourne 0.
Returns
le ProjectView editant le fichier filepath, ou 0 si ce fichier n'est pas edite par cet editeur de schemas.

Definition at line 1706 of file qetdiagrameditor.cpp.

References openedProjects().

Referenced by openAndAddProject().

◆ writeSettings

void QETDiagramEditor::writeSettings ( )
slot

QETDiagramEditor::writeSettings Write the settings.

Definition at line 1871 of file qetdiagrameditor.cpp.

Referenced by closeEvent().

◆ zoomGroupTriggered

void QETDiagramEditor::zoomGroupTriggered ( QAction *  action)
slot

Member Data Documentation

◆ activeSubWindowIndex

int QETDiagramEditor::activeSubWindowIndex
private

Definition at line 225 of file qetdiagrameditor.h.

Referenced by QETDiagramEditor(), and slot_updateAutoNumDock().

◆ conductor_default

QAction* QETDiagramEditor::conductor_default
private

Show a dialog to edit default conductor properties.

Definition at line 178 of file qetdiagrameditor.h.

◆ diagram_tool_bar

QToolBar * QETDiagramEditor::diagram_tool_bar = nullptr
private

Definition at line 219 of file qetdiagrameditor.h.

Referenced by setUpMenu(), and setUpToolBar().

◆ grp_visu_sel

QActionGroup* QETDiagramEditor::grp_visu_sel
private

Action group for visualisation vs edition mode.

Definition at line 160 of file qetdiagrameditor.h.

Referenced by setUpActions(), and slot_updateModeActions().

◆ m_add_item_actions_group

QActionGroup QETDiagramEditor::m_add_item_actions_group
private

Definition at line 162 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpToolBar(), and slot_updateActions().

◆ m_add_item_tool_bar

QToolBar * QETDiagramEditor::m_add_item_tool_bar = nullptr
private

Definition at line 220 of file qetdiagrameditor.h.

Referenced by setUpToolBar().

◆ m_auto_conductor

QAction* QETDiagramEditor::m_auto_conductor
private

Enable/Disable the use of auto conductor.

Definition at line 177 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpToolBar(), and slot_updateModeActions().

◆ m_autonumbering_dock

AutoNumberingDockWidget* QETDiagramEditor::m_autonumbering_dock
private

◆ m_cascade_window

QAction* QETDiagramEditor::m_cascade_window
private

Show MDI subwindows as cascade.

Definition at line 189 of file qetdiagrameditor.h.

Referenced by setUpActions(), and slot_updateWindowsMenu().

◆ m_clean_project

QAction* QETDiagramEditor::m_clean_project
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().

◆ m_close_file

QAction* QETDiagramEditor::m_close_file
private

Close current project file.

Definition at line 199 of file qetdiagrameditor.h.

Referenced by setUpActions(), slot_updateActions(), and slot_updateWindowsMenu().

◆ m_conductor_reset

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().

◆ m_copy

QAction* QETDiagramEditor::m_copy

Copy selection to clipboard.

Definition at line 153 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updateComplexActions().

◆ m_cut

QAction* QETDiagramEditor::m_cut

Cut selection to clipboard.

Definition at line 152 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updateComplexActions().

◆ m_delete_selection

QAction* QETDiagramEditor::m_delete_selection
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().

◆ m_depth_action_group

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().

◆ m_depth_tool_bar

QToolBar * QETDiagramEditor::m_depth_tool_bar = nullptr
private

Definition at line 221 of file qetdiagrameditor.h.

Referenced by setUpToolBar().

◆ m_draw_grid

QAction* QETDiagramEditor::m_draw_grid
private

Switch the background grid display or not.

Definition at line 180 of file qetdiagrameditor.h.

Referenced by drawGrid(), setUpActions(), setUpMenu(), and setUpToolBar().

◆ m_edit_diagram_properties

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().

◆ m_edit_selection

QAction* QETDiagramEditor::m_edit_selection
private

To edit selected item.

Definition at line 192 of file qetdiagrameditor.h.

Referenced by setUpActions(), and slot_updateComplexActions().

◆ m_element_collection_widget

ElementsCollectionWidget* QETDiagramEditor::m_element_collection_widget
private

Dock for the undo list.

Definition at line 210 of file qetdiagrameditor.h.

Referenced by addProject(), event(), findElementInPanel(), projectWasClosed(), save(), saveAs(), and setUpElementsCollectionWidget().

◆ m_export_diagram

QAction* QETDiagramEditor::m_export_diagram
private

Export diagrams of the current project as imagess.

Definition at line 171 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), and slot_updateActions().

◆ m_file_actions_group

QActionGroup QETDiagramEditor::m_file_actions_group
private

Action related to global selections.

Definition at line 165 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), and setUpToolBar().

◆ m_find

QAction* QETDiagramEditor::m_find = nullptr
private

Definition at line 202 of file qetdiagrameditor.h.

Referenced by setUpActions(), and setUpMenu().

◆ m_find_element

QAction* QETDiagramEditor::m_find_element
private

Find the selected element in the panel.

Definition at line 197 of file qetdiagrameditor.h.

Referenced by setUpActions(), and slot_updateComplexActions().

◆ m_first_show

bool QETDiagramEditor::m_first_show = true
private

Definition at line 226 of file qetdiagrameditor.h.

Referenced by event().

◆ m_grey_background

QAction* QETDiagramEditor::m_grey_background
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().

◆ m_group_selected_texts

QAction* QETDiagramEditor::m_group_selected_texts = nullptr
private

Definition at line 198 of file qetdiagrameditor.h.

Referenced by setUpActions(), and slot_updateComplexActions().

◆ m_group_view_mode

QActionGroup* QETDiagramEditor::m_group_view_mode
private

Action group for project.

Definition at line 161 of file qetdiagrameditor.h.

Referenced by setUpActions().

◆ m_mode_selection

QAction* QETDiagramEditor::m_mode_selection
private

Set edition mode.

Definition at line 169 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updateModeActions().

◆ m_mode_visualise

QAction* QETDiagramEditor::m_mode_visualise
private

Set visualisation mode.

Definition at line 170 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updateModeActions().

◆ m_next_window

QAction* QETDiagramEditor::m_next_window
private

Switch to the next document.

Definition at line 191 of file qetdiagrameditor.h.

Referenced by setUpActions(), and slot_updateWindowsMenu().

◆ m_paste

QAction* QETDiagramEditor::m_paste
private

Paste clipboard content on the current diagram.

Definition at line 176 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updatePasteAction().

◆ m_previous_window

QAction* QETDiagramEditor::m_previous_window
private

Switch to the previous document.

Definition at line 190 of file qetdiagrameditor.h.

Referenced by setUpActions(), and slot_updateWindowsMenu().

◆ m_print

QAction* QETDiagramEditor::m_print
private

Print diagrams of the current project.

Definition at line 172 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), setUpToolBar(), and slot_updateActions().

◆ m_project_add_diagram

QAction* QETDiagramEditor::m_project_add_diagram
private

Add a diagram to the current project.

Definition at line 182 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), and slot_updateActions().

◆ m_project_edit_properties

QAction* QETDiagramEditor::m_project_edit_properties
private

Edit the properties of the current project.

Definition at line 181 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), and slot_updateActions().

◆ m_project_folio_list

QAction* QETDiagramEditor::m_project_folio_list
private

Sommaire des schemas.

Definition at line 185 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), and slot_updateActions().

◆ m_project_nomenclature

QAction* QETDiagramEditor::m_project_nomenclature
private

generate nomenclature

Definition at line 186 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), and slot_updateActions().

◆ m_project_terminalBloc

QAction* QETDiagramEditor::m_project_terminalBloc
private

generate terminal block

Definition at line 187 of file qetdiagrameditor.h.

Referenced by setUpActions(), and setUpMenu().

◆ m_qdw_elmt_collection

QDockWidget* QETDiagramEditor::m_qdw_elmt_collection
private

Dock for the elements panel.

Definition at line 208 of file qetdiagrameditor.h.

Referenced by setUpElementsCollectionWidget().

◆ m_quit_editor

QAction* QETDiagramEditor::m_quit_editor
private

Quit the diagram editor.

Definition at line 173 of file qetdiagrameditor.h.

Referenced by setUpActions(), and setUpMenu().

◆ m_remove_diagram_from_project

QAction* QETDiagramEditor::m_remove_diagram_from_project
private

Delete a diagram from the current project.

Definition at line 183 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), and slot_updateActions().

◆ m_rotate_selection

QAction* QETDiagramEditor::m_rotate_selection
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().

◆ m_rotate_texts

QAction* QETDiagramEditor::m_rotate_texts
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().

◆ m_row_column_actions_group

QActionGroup QETDiagramEditor::m_row_column_actions_group

Definition at line 155 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), and slot_updateActions().

◆ m_save_file

QAction* QETDiagramEditor::m_save_file
private

Save current project.

Definition at line 200 of file qetdiagrameditor.h.

Referenced by setUpActions(), and slot_updateActions().

◆ m_save_file_as

QAction* QETDiagramEditor::m_save_file_as
private

Save current project as a specific file.

Definition at line 201 of file qetdiagrameditor.h.

Referenced by setUpActions(), and slot_updateActions().

◆ m_search_and_replace_widget

SearchAndReplaceWidget QETDiagramEditor::m_search_and_replace_widget
private

Definition at line 227 of file qetdiagrameditor.h.

Referenced by QETDiagramEditor(), and setUpActions().

◆ m_select_actions_group

QActionGroup QETDiagramEditor::m_select_actions_group
private

Action related to zoom for diagram.

Definition at line 164 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), and slot_updateActions().

◆ m_selection_actions_group

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().

◆ m_selection_properties_editor

DiagramPropertiesEditorDockWidget* QETDiagramEditor::m_selection_properties_editor
private

Definition at line 212 of file qetdiagrameditor.h.

Referenced by selectionChanged(), and setUpSelectionPropertiesEditor().

◆ m_tabbed_view_mode

QAction* QETDiagramEditor::m_tabbed_view_mode
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().

◆ m_tile_window

QAction* QETDiagramEditor::m_tile_window
private

Show MDI subwindows as tile.

Definition at line 188 of file qetdiagrameditor.h.

Referenced by setUpActions(), and slot_updateWindowsMenu().

◆ m_windowed_view_mode

QAction* QETDiagramEditor::m_windowed_view_mode
private

Display projects as windows.

Definition at line 168 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), and setWindowedMode().

◆ m_workspace

QMdiArea QETDiagramEditor::m_workspace
private

◆ m_zoom_action_toolBar

QList<QAction *> QETDiagramEditor::m_zoom_action_toolBar
private

Definition at line 193 of file qetdiagrameditor.h.

Referenced by setUpActions(), and setUpToolBar().

◆ m_zoom_actions_group

QActionGroup QETDiagramEditor::m_zoom_actions_group
private

Action related to adding (add text image shape...)

Definition at line 163 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), and slot_updateActions().

◆ main_tool_bar

QToolBar* QETDiagramEditor::main_tool_bar = nullptr
private

Definition at line 217 of file qetdiagrameditor.h.

Referenced by setUpMenu(), and setUpToolBar().

◆ open_dialog_dir

QDir QETDiagramEditor::open_dialog_dir
private

Definition at line 206 of file qetdiagrameditor.h.

Referenced by openProject().

◆ pa

ElementsPanelWidget* QETDiagramEditor::pa
private

Elements panel.

Definition at line 214 of file qetdiagrameditor.h.

Referenced by addProject(), projectWasClosed(), reloadOldElementPanel(), setUpActions(), and setUpElementsPanel().

◆ qdw_pa

QDockWidget* QETDiagramEditor::qdw_pa
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().

◆ qdw_undo

QDockWidget* QETDiagramEditor::qdw_undo
private

Definition at line 209 of file qetdiagrameditor.h.

Referenced by QETDiagramEditor(), setUpMenu(), and setUpUndoStack().

◆ redo

QAction* QETDiagramEditor::redo
private

Redo the latest cancelled operation.

Definition at line 175 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), and setUpToolBar().

◆ undo

QAction* QETDiagramEditor::undo
private

Cancel the latest action.

Definition at line 174 of file qetdiagrameditor.h.

Referenced by setUpActions(), setUpMenu(), and setUpToolBar().

◆ undo_group

QUndoGroup QETDiagramEditor::undo_group
private

◆ view_tool_bar

QToolBar * QETDiagramEditor::view_tool_bar = nullptr
private

Definition at line 218 of file qetdiagrameditor.h.

Referenced by setUpMenu(), and setUpToolBar().

◆ windowMapper

QSignalMapper QETDiagramEditor::windowMapper
private

Definition at line 205 of file qetdiagrameditor.h.

Referenced by QETDiagramEditor(), and slot_updateWindowsMenu().

◆ windows_menu

QMenu* QETDiagramEditor::windows_menu
private

Definition at line 215 of file qetdiagrameditor.h.

Referenced by setUpMenu(), and slot_updateWindowsMenu().


The documentation for this class was generated from the following files: