[qet] [3595] Minor change |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 3595
Author: blacksun
Date: 2015-01-11 09:50:36 +0100 (Sun, 11 Jan 2015)
Log Message:
-----------
Minor change
Modified Paths:
--------------
trunk/sources/qetdiagrameditor.cpp
trunk/sources/qetdiagrameditor.h
Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp 2015-01-09 17:18:16 UTC (rev 3594)
+++ trunk/sources/qetdiagrameditor.cpp 2015-01-11 08:50:36 UTC (rev 3595)
@@ -1128,17 +1128,25 @@
}
/**
- Effectue l'action "mode selection" sur le schema en cours
-*/
-void QETDiagramEditor::slot_setSelectionMode() {
- if(currentDiagram()) currentDiagram() -> setSelectionMode();
+ * @brief QETDiagramEditor::slot_setSelectionMode
+ * Set all diagram view of the current project to selection mode
+ */
+void QETDiagramEditor::slot_setSelectionMode()
+{
+ if (ProjectView *pv = currentProject())
+ foreach(DiagramView *dv, pv -> diagrams())
+ dv -> setSelectionMode();
}
/**
- Effectue l'action "mode visualisation" sur le schema en cours
-*/
-void QETDiagramEditor::slot_setVisualisationMode() {
- if(currentDiagram()) currentDiagram() -> setVisualisationMode();
+ * @brief QETDiagramEditor::slot_setVisualisationMode
+ * Set all diagram view of the current project to visualisation mode
+ */
+void QETDiagramEditor::slot_setVisualisationMode()
+{
+ if (ProjectView *pv = currentProject())
+ foreach(DiagramView *dv, pv -> diagrams())
+ dv -> setVisualisationMode();
}
/**
Modified: trunk/sources/qetdiagrameditor.h
===================================================================
--- trunk/sources/qetdiagrameditor.h 2015-01-09 17:18:16 UTC (rev 3594)
+++ trunk/sources/qetdiagrameditor.h 2015-01-11 08:50:36 UTC (rev 3595)
@@ -52,18 +52,16 @@
void setUpToolBar ();
void setUpMenu ();
- // methods
+ // methods
public:
- void closeEvent(QCloseEvent *);
- QList<ProjectView *> openedProjects() const;
- void addProjectView(ProjectView *);
- bool openAndAddProject(const QString &, bool = true, bool = true);
- QList<DiagramView *> projectViews() const;
- QList<QString> editedFiles() const;
- ProjectView *viewForFile(const QString &) const;
+ void closeEvent (QCloseEvent *);
+ QList<ProjectView *> openedProjects () const;
+ void addProjectView (ProjectView *);
+ bool openAndAddProject (const QString &, bool = true, bool = true);
+ QList<QString> editedFiles () const;
+ ProjectView *viewForFile (const QString &) const;
protected:
- //void actions();
virtual bool event(QEvent *);
private: