mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
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:
@@ -1128,17 +1128,25 @@ void QETDiagramEditor::slot_rotateTexts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Effectue l'action "mode selection" sur le schema en cours
|
* @brief QETDiagramEditor::slot_setSelectionMode
|
||||||
|
* Set all diagram view of the current project to selection mode
|
||||||
*/
|
*/
|
||||||
void QETDiagramEditor::slot_setSelectionMode() {
|
void QETDiagramEditor::slot_setSelectionMode()
|
||||||
if(currentDiagram()) currentDiagram() -> setSelectionMode();
|
{
|
||||||
|
if (ProjectView *pv = currentProject())
|
||||||
|
foreach(DiagramView *dv, pv -> diagrams())
|
||||||
|
dv -> setSelectionMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Effectue l'action "mode visualisation" sur le schema en cours
|
* @brief QETDiagramEditor::slot_setVisualisationMode
|
||||||
|
* Set all diagram view of the current project to visualisation mode
|
||||||
*/
|
*/
|
||||||
void QETDiagramEditor::slot_setVisualisationMode() {
|
void QETDiagramEditor::slot_setVisualisationMode()
|
||||||
if(currentDiagram()) currentDiagram() -> setVisualisationMode();
|
{
|
||||||
|
if (ProjectView *pv = currentProject())
|
||||||
|
foreach(DiagramView *dv, pv -> diagrams())
|
||||||
|
dv -> setVisualisationMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -58,12 +58,10 @@ class QETDiagramEditor : public QETMainWindow {
|
|||||||
QList<ProjectView *> openedProjects () const;
|
QList<ProjectView *> openedProjects () const;
|
||||||
void addProjectView (ProjectView *);
|
void addProjectView (ProjectView *);
|
||||||
bool openAndAddProject (const QString &, bool = true, bool = true);
|
bool openAndAddProject (const QString &, bool = true, bool = true);
|
||||||
QList<DiagramView *> projectViews() const;
|
|
||||||
QList<QString> editedFiles () const;
|
QList<QString> editedFiles () const;
|
||||||
ProjectView *viewForFile (const QString &) const;
|
ProjectView *viewForFile (const QString &) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
//void actions();
|
|
||||||
virtual bool event(QEvent *);
|
virtual bool event(QEvent *);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user