QElectroTech  0.8-dev
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>

Inheritance diagram for QETDiagramEditor:
Inheritance graph
Collaboration diagram for QETDiagramEditor:
Collaboration graph

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 a new project with an empty diagram. 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 ()
 QETDiagramEditor::slot_updatePasteAction Gere les actions ayant besoin du presse-papier. More...
 
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 *)
 QETDiagramEditor::addDiagramToProject Add a diagram to project. More...
 
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 location 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=Qt::Widget)
 
 ~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_csv_export
 generate nomenclature More...
 
QAction * m_add_nomenclature
 Add nomenclature graphics item;. More...
 
QAction * m_add_summary
 Add summary graphics item. More...
 
QAction * m_project_terminalBloc
 generate terminal block More...
 
QAction * m_project_export_conductor_num
 Export the wire num to csv. More...
 
QAction * m_export_project_db
 
QAction * m_tile_window
 Export to file the internal database of the current project. 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.

Constructor & Destructor Documentation

◆ QETDiagramEditor() [1/2]

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

QETDiagramEditor::QETDiagramEditor Constructor.

Parameters
files: list of files to open
parent: parent widget
Here is the call graph for this function:

◆ ~QETDiagramEditor()

QETDiagramEditor::~QETDiagramEditor ( )
override

Destructeur

◆ 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
Todo:
gerer ce cas
Here is the call graph for this function:
Here is the caller graph for this function:

◆ activateProject [1/2]

void QETDiagramEditor::activateProject ( ProjectView project_view)
slot

Active le projet passe en parametre

Parameters
project_viewProjet a activer
Here is the call graph for this function:

◆ activateProject [2/2]

void QETDiagramEditor::activateProject ( QETProject project)
slot

Active le projet passe en parametre

Parameters
projectProjet a activer
Here is the call graph for this function:
Here is the caller graph for this function:

◆ activateWidget

void QETDiagramEditor::activateWidget ( QWidget *  widget)
slot
Parameters
widgetWidget a activer
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addDiagramToProject

void QETDiagramEditor::addDiagramToProject ( QETProject project)
slot

QETDiagramEditor::addDiagramToProject Add a diagram to project.

Parameters
project
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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: project view to add
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:

◆ currentDiagramView()

DiagramView * QETDiagramEditor::currentDiagramView ( ) const
private
Returns
Le schema actuellement edite (= l'onglet ouvert dans le projet courant) ou 0 s'il n'y en a pas
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentProject()

QETProject * QETDiagramEditor::currentProject ( ) const

QETDiagramEditor::currentProject.

Returns
the current edited project. This function can return nullptr.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentProjectView()

ProjectView * QETDiagramEditor::currentProjectView ( ) const
Returns
Le projet actuellement edite (= qui a le focus dans l'interface MDI) ou 0 s'il n'y en a pas
Here is the caller graph for this function:

◆ diagramWasAdded

void QETDiagramEditor::diagramWasAdded ( DiagramView dv)
slot

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

Parameters
dv: added diagram view
Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawGrid()

bool QETDiagramEditor::drawGrid ( ) const

QETDiagramEditor::drawGrid.

Returns
true if the grid of folio must be displayed

◆ editDiagramProperties [1/2]

void QETDiagramEditor::editDiagramProperties ( Diagram diagram)
slot

Edite les proprietes du schema diagram

Parameters
diagramschema dont il faut editer les proprietes
Here is the call graph for this function:

◆ editDiagramProperties [2/2]

void QETDiagramEditor::editDiagramProperties ( DiagramView diagram_view)
slot

Edite les proprietes du schema diagram

Parameters
diagram_viewschema dont il faut editer les proprietes
Here is the call graph for this function:
Here is the caller graph for this function:

◆ editedFiles()

QList< QString > QETDiagramEditor::editedFiles ( ) const
Returns
la liste des fichiers edites par cet editeur de schemas
Here is the call graph for this function:

◆ editElementInEditor

void QETDiagramEditor::editElementInEditor ( const ElementsLocation location)
slot

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

Parameters
locationEmplacement de l'element a editer
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ editProjectProperties [2/2]

void QETDiagramEditor::editProjectProperties ( QETProject project)
slot

Edite les proprietes du projet project.

Parameters
projectProjet dont il faut editer les proprietes
Here is the call graph for this function:

◆ editSelectedElementInEditor

void QETDiagramEditor::editSelectedElementInEditor ( )
slot

Launch an element editor to edit the selected element in the current diagram view.

Here is the call graph for this function:

◆ event()

bool QETDiagramEditor::event ( QEvent *  e)
overrideprotected

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

Parameters
e
Returns
Here is the call graph for this function:

◆ findElementInPanel

void QETDiagramEditor::findElementInPanel ( const ElementsLocation location)
slot

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

Parameters
location
Here is the call graph for this function:
Here is the caller graph for this function:

◆ findProject() [1/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
Here is the call graph for this function:

◆ 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
Here is the call graph for this function:

◆ findProject() [3/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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ findProject() [4/4]

ProjectView * QETDiagramEditor::findProject ( QETProject project) const
private
Parameters
projectProjet dont il faut trouver la vue
Returns
la vue du projet passe en parametre
Here is the call graph for this function:

◆ generateTerminalBlock

void QETDiagramEditor::generateTerminalBlock ( )
slot

QETDiagramEditor::generateTerminalBlock.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ newProject

bool QETDiagramEditor::newProject ( )
slot

QETDiagramEditor::newProject Create a new project with an empty diagram.

Returns
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openBackupFiles()

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

QETDiagramEditor::openBackupFiles.

Parameters
backup_files
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openedProjects()

QList< ProjectView * > QETDiagramEditor::openedProjects ( ) const
Returns
la liste des projets ouverts dans cette fenetre
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ projectWasClosed

void QETDiagramEditor::projectWasClosed ( ProjectView project_view)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ readSettings

void QETDiagramEditor::readSettings ( )
slot

QETDiagramEditor::readSettings Read the settings.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reloadOldElementPanel

void QETDiagramEditor::reloadOldElementPanel ( )
slot
Here is the call graph for this function:

◆ removeDiagram

void QETDiagramEditor::removeDiagram ( Diagram diagram)
slot

Supprime un schema de son projet

Parameters
diagramSchema a supprimer
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeDiagramFromProject

void QETDiagramEditor::removeDiagramFromProject ( )
slot

Supprime le schema courant du projet courant

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rowColumnGroupTriggered

void QETDiagramEditor::rowColumnGroupTriggered ( QAction *  action)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ save

void QETDiagramEditor::save ( )
slot

QETDiagramEditor::save Ask the current active project to save.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveAs

void QETDiagramEditor::saveAs ( )
slot

QETDiagramEditor::saveAs Ask the current active project to save as.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectionChanged

void QETDiagramEditor::selectionChanged ( )
privateslot

QETDiagramEditor::selectionChanged This slot is called when a diagram selection was changed.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTabbedMode

void QETDiagramEditor::setTabbedMode ( )
slot

Affiche les projets dans des onglets.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUpActions()

void QETDiagramEditor::setUpActions ( )
private

QETDiagramEditor::setUpActions Set up all Qaction.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUpAutonumberingWidget()

void QETDiagramEditor::setUpAutonumberingWidget ( )
private

QETDiagramEditor::setUpAutonumberingWidget Setup the dock for AutoNumbering Selection.

Here is the caller graph for this function:

◆ setUpElementsCollectionWidget()

void QETDiagramEditor::setUpElementsCollectionWidget ( )
private

QETDiagramEditor::setUpElementsCollectionWidget Set up the dock widget of element collection.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUpElementsPanel()

void QETDiagramEditor::setUpElementsPanel ( )
private

QETDiagramEditor::setUpElementsPanel Setup the element panel and element panel widget.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUpMenu()

void QETDiagramEditor::setUpMenu ( )
private

QETDiagramEditor::setUpMenu.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUpSelectionPropertiesEditor()

void QETDiagramEditor::setUpSelectionPropertiesEditor ( )
private

QETDiagramEditor::setUpSelectionPropertiesEditor Setup the dock for edit the current selection.

Here is the caller graph for this function:

◆ setUpToolBar()

void QETDiagramEditor::setUpToolBar ( )
private

QETDiagramEditor::setUpToolBar.

Here is the caller graph for this function:

◆ setUpUndoStack()

void QETDiagramEditor::setUpUndoStack ( )
private

QETDiagramEditor::setUpUndoStack Setup the undostack and undo stack widget.

Here is the caller graph for this function:

◆ setWindowedMode

void QETDiagramEditor::setWindowedMode ( )
slot

Affiche les projets dans des fenetres.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showError [1/2]

void QETDiagramEditor::showError ( const QETResult result)
slot

Show the error message contained in result.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showError [2/2]

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

Show the error message.

Here is the call graph for this function:

◆ slot_updateActions

void QETDiagramEditor::slot_updateActions ( )
slot

QETDiagramEditor::slot_updateActions Manage actions.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ slot_updateAutoNumDock

void QETDiagramEditor::slot_updateAutoNumDock ( )
slot

QETDiagramEditor::slot_updateAutoNumDock Update Auto Num Dock Widget when changing Project.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ slot_updateComplexActions

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ slot_updateModeActions

void QETDiagramEditor::slot_updateModeActions ( )
slot

QETDiagramEditor::slot_updateModeActions Manage action who need an opened diagram or project to be updated.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ slot_updatePasteAction

void QETDiagramEditor::slot_updatePasteAction ( )
slot

QETDiagramEditor::slot_updatePasteAction Gere les actions ayant besoin du presse-papier.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ slot_updateUndoStack

void QETDiagramEditor::slot_updateUndoStack ( )
slot

QETDiagramEditor::slot_updateUndoStack Update the undo stack view.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ slot_updateWindowsMenu

void QETDiagramEditor::slot_updateWindowsMenu ( )
slot

met a jour le menu "Fenetres"

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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.
Here is the caller graph for this function:

◆ 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.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeSettings

void QETDiagramEditor::writeSettings ( )
slot

QETDiagramEditor::writeSettings Write the settings.

Here is the caller graph for this function:

◆ zoomGroupTriggered

void QETDiagramEditor::zoomGroupTriggered ( QAction *  action)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ activeSubWindowIndex

int QETDiagramEditor::activeSubWindowIndex
private

◆ conductor_default

QAction* QETDiagramEditor::conductor_default
private

Show a dialog to edit default conductor properties.

◆ diagram_tool_bar

QToolBar * QETDiagramEditor::diagram_tool_bar = nullptr
private

◆ grp_visu_sel

QActionGroup* QETDiagramEditor::grp_visu_sel
private

Action group for visualisation vs edition mode.

◆ m_add_item_actions_group

QActionGroup QETDiagramEditor::m_add_item_actions_group
private

◆ m_add_item_tool_bar

QToolBar * QETDiagramEditor::m_add_item_tool_bar = nullptr
private

◆ m_add_nomenclature

QAction* QETDiagramEditor::m_add_nomenclature
private

Add nomenclature graphics item;.

◆ m_add_summary

QAction* QETDiagramEditor::m_add_summary
private

Add summary graphics item.

◆ m_auto_conductor

QAction* QETDiagramEditor::m_auto_conductor
private

Enable/Disable the use of auto conductor.

◆ m_autonumbering_dock

AutoNumberingDockWidget* QETDiagramEditor::m_autonumbering_dock
private

◆ m_cascade_window

QAction* QETDiagramEditor::m_cascade_window
private

Show MDI subwindows as cascade.

◆ m_clean_project

QAction* QETDiagramEditor::m_clean_project
private

Clean the content of the curent project by removing useless items.

◆ m_close_file

QAction* QETDiagramEditor::m_close_file
private

Close current project file.

◆ m_conductor_reset

QAction* QETDiagramEditor::m_conductor_reset

Reset paths of selected conductors.

◆ m_copy

QAction* QETDiagramEditor::m_copy

Copy selection to clipboard.

◆ m_csv_export

QAction* QETDiagramEditor::m_csv_export
private

generate nomenclature

◆ m_cut

QAction* QETDiagramEditor::m_cut

Cut selection to clipboard.

◆ m_delete_selection

QAction* QETDiagramEditor::m_delete_selection
private

Only zoom action must displayed in the toolbar.

Delete selection

◆ m_depth_action_group

QActionGroup* QETDiagramEditor::m_depth_action_group = nullptr

Action related to edit a selected item.

◆ m_depth_tool_bar

QToolBar * QETDiagramEditor::m_depth_tool_bar = nullptr
private

◆ m_draw_grid

QAction* QETDiagramEditor::m_draw_grid
private

Switch the background grid display or not.

◆ m_edit_diagram_properties

QAction* QETDiagramEditor::m_edit_diagram_properties

Show a dialog to edit diagram properties.

◆ m_edit_selection

QAction* QETDiagramEditor::m_edit_selection
private

To edit selected item.

◆ m_element_collection_widget

ElementsCollectionWidget* QETDiagramEditor::m_element_collection_widget
private

Dock for the undo list.

◆ m_export_diagram

QAction* QETDiagramEditor::m_export_diagram
private

Export diagrams of the current project as imagess.

◆ m_export_project_db

QAction* QETDiagramEditor::m_export_project_db
private

◆ m_file_actions_group

QActionGroup QETDiagramEditor::m_file_actions_group
private

Action related to global selections.

◆ m_find

QAction* QETDiagramEditor::m_find = nullptr
private

◆ m_find_element

QAction* QETDiagramEditor::m_find_element
private

Find the selected element in the panel.

◆ m_first_show

bool QETDiagramEditor::m_first_show = true
private

◆ m_grey_background

QAction* QETDiagramEditor::m_grey_background
private

Switch the background color in white or grey.

◆ m_group_selected_texts

QAction* QETDiagramEditor::m_group_selected_texts = nullptr
private

◆ m_group_view_mode

QActionGroup* QETDiagramEditor::m_group_view_mode
private

Action group for project.

◆ m_mode_selection

QAction* QETDiagramEditor::m_mode_selection
private

Set edition mode.

◆ m_mode_visualise

QAction* QETDiagramEditor::m_mode_visualise
private

Set visualisation mode.

◆ m_next_window

QAction* QETDiagramEditor::m_next_window
private

Switch to the next document.

◆ m_paste

QAction* QETDiagramEditor::m_paste
private

Paste clipboard content on the current diagram.

◆ m_previous_window

QAction* QETDiagramEditor::m_previous_window
private

Switch to the previous document.

◆ m_print

QAction* QETDiagramEditor::m_print
private

Print diagrams of the current project.

◆ m_project_add_diagram

QAction* QETDiagramEditor::m_project_add_diagram
private

Add a diagram to the current project.

◆ m_project_edit_properties

QAction* QETDiagramEditor::m_project_edit_properties
private

Edit the properties of the current project.

◆ m_project_export_conductor_num

QAction* QETDiagramEditor::m_project_export_conductor_num
private

Export the wire num to csv.

◆ m_project_folio_list

QAction* QETDiagramEditor::m_project_folio_list
private

Sommaire des schemas.

◆ m_project_terminalBloc

QAction* QETDiagramEditor::m_project_terminalBloc
private

generate terminal block

◆ m_qdw_elmt_collection

QDockWidget* QETDiagramEditor::m_qdw_elmt_collection
private

Dock for the elements panel.

◆ m_quit_editor

QAction* QETDiagramEditor::m_quit_editor
private

Quit the diagram editor.

◆ m_remove_diagram_from_project

QAction* QETDiagramEditor::m_remove_diagram_from_project
private

Delete a diagram from the current project.

◆ m_rotate_selection

QAction* QETDiagramEditor::m_rotate_selection
private

Rotate selected elements and text items by 90 degrees.

◆ m_rotate_texts

QAction* QETDiagramEditor::m_rotate_texts
private

Direct selected text items to a specific angle.

◆ m_row_column_actions_group

QActionGroup QETDiagramEditor::m_row_column_actions_group

◆ m_save_file

QAction* QETDiagramEditor::m_save_file
private

Save current project.

◆ m_save_file_as

QAction* QETDiagramEditor::m_save_file_as
private

Save current project as a specific file.

◆ m_search_and_replace_widget

SearchAndReplaceWidget QETDiagramEditor::m_search_and_replace_widget
private

◆ m_select_actions_group

QActionGroup QETDiagramEditor::m_select_actions_group
private

Action related to zoom for diagram.

◆ m_selection_actions_group

QActionGroup QETDiagramEditor::m_selection_actions_group

Action related to add/remove rows/column in diagram.

◆ m_selection_properties_editor

DiagramPropertiesEditorDockWidget* QETDiagramEditor::m_selection_properties_editor
private

◆ m_tabbed_view_mode

QAction* QETDiagramEditor::m_tabbed_view_mode
private

Actions related to file (open, close, save...)

Display projects as tabs

◆ m_tile_window

QAction* QETDiagramEditor::m_tile_window
private

Export to file the internal database of the current project.

Show MDI subwindows as tile

◆ m_windowed_view_mode

QAction* QETDiagramEditor::m_windowed_view_mode
private

Display projects as windows.

◆ m_workspace

QMdiArea QETDiagramEditor::m_workspace
private

◆ m_zoom_action_toolBar

QList<QAction *> QETDiagramEditor::m_zoom_action_toolBar
private

◆ m_zoom_actions_group

QActionGroup QETDiagramEditor::m_zoom_actions_group
private

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

◆ main_tool_bar

QToolBar* QETDiagramEditor::main_tool_bar = nullptr
private

◆ open_dialog_dir

QDir QETDiagramEditor::open_dialog_dir
private

◆ pa

ElementsPanelWidget* QETDiagramEditor::pa
private

Elements panel.

◆ qdw_pa

QDockWidget* QETDiagramEditor::qdw_pa
private

Directory to use for file dialogs such as File > save.

◆ qdw_undo

QDockWidget* QETDiagramEditor::qdw_undo
private

◆ redo

QAction* QETDiagramEditor::redo
private

Redo the latest cancelled operation.

◆ undo

QAction* QETDiagramEditor::undo
private

Cancel the latest action.

◆ undo_group

QUndoGroup QETDiagramEditor::undo_group
private

◆ view_tool_bar

QToolBar * QETDiagramEditor::view_tool_bar = nullptr
private

◆ windowMapper

QSignalMapper QETDiagramEditor::windowMapper
private

◆ windows_menu

QMenu* QETDiagramEditor::windows_menu
private

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