mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +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() {
|
*/
|
||||||
if(currentDiagram()) currentDiagram() -> setSelectionMode();
|
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
|
* @brief QETDiagramEditor::slot_setVisualisationMode
|
||||||
*/
|
* Set all diagram view of the current project to visualisation mode
|
||||||
void QETDiagramEditor::slot_setVisualisationMode() {
|
*/
|
||||||
if(currentDiagram()) currentDiagram() -> setVisualisationMode();
|
void QETDiagramEditor::slot_setVisualisationMode()
|
||||||
|
{
|
||||||
|
if (ProjectView *pv = currentProject())
|
||||||
|
foreach(DiagramView *dv, pv -> diagrams())
|
||||||
|
dv -> setVisualisationMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -54,16 +54,14 @@ class QETDiagramEditor : public QETMainWindow {
|
|||||||
|
|
||||||
// methods
|
// methods
|
||||||
public:
|
public:
|
||||||
void closeEvent(QCloseEvent *);
|
void closeEvent (QCloseEvent *);
|
||||||
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