Minor change

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3595 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2015-01-11 08:50:36 +00:00
parent 3e80f7076f
commit 8079b2e83a
2 changed files with 23 additions and 17 deletions

View File

@@ -1128,17 +1128,25 @@ void QETDiagramEditor::slot_rotateTexts() {
}
/**
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();
}
/**

View File

@@ -52,18 +52,16 @@ class QETDiagramEditor : public QETMainWindow {
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: