@@ -1,23 +1,44 | |||||
|
1 | /*------------------------------------------------------------------------------ | |||
|
2 | -- This file is a part of the SocExplorer Software | |||
|
3 | -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS | |||
|
4 | -- | |||
|
5 | -- This program is free software; you can redistribute it and/or modify | |||
|
6 | -- it under the terms of the GNU General Public License as published by | |||
|
7 | -- the Free Software Foundation; either version 2 of the License, or | |||
|
8 | -- (at your option) any later version. | |||
|
9 | -- | |||
|
10 | -- This program is distributed in the hope that it will be useful, | |||
|
11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|
12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
|
13 | -- GNU General Public License for more details. | |||
|
14 | -- | |||
|
15 | -- You should have received a copy of the GNU General Public License | |||
|
16 | -- along with this program; if not, write to the Free Software | |||
|
17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
|
18 | -------------------------------------------------------------------------------*/ | |||
|
19 | /*-- Author : Alexis Jeandet | |||
|
20 | -- Mail : alexis.jeandet@member.fsf.org | |||
|
21 | ----------------------------------------------------------------------------*/ | |||
1 | #include "dockablepluginmanager.h" |
|
22 | #include "dockablepluginmanager.h" | |
2 |
|
23 | |||
3 | dockablePluginManager::dockablePluginManager(QWidget *parent) : |
|
24 | dockablePluginManager::dockablePluginManager(QWidget *parent) : | |
4 | QDockWidget(parent) |
|
25 | QDockWidget(parent) | |
5 | { |
|
26 | { | |
6 | this->managerGui = new pluginmanagerWDGT; |
|
27 | this->managerGui = new pluginmanagerWDGT; | |
7 | connect(this->managerGui,SIGNAL(loadSysDrviver(QString)),this,SIGNAL(loadSysDrviver(QString))); |
|
28 | connect(this->managerGui,SIGNAL(loadSysDrviver(QString)),this,SIGNAL(loadSysDrviver(QString))); | |
8 | connect(this->managerGui,SIGNAL(loadSysDriverToParent(QString,QString)),this,SIGNAL(loadSysDriverToParent(QString,QString))); |
|
29 | connect(this->managerGui,SIGNAL(loadSysDriverToParent(QString,QString)),this,SIGNAL(loadSysDriverToParent(QString,QString))); | |
9 | connect(this->managerGui,SIGNAL(geteplugintree()),this,SIGNAL(geteplugintree())); |
|
30 | connect(this->managerGui,SIGNAL(geteplugintree()),this,SIGNAL(geteplugintree())); | |
10 | connect(this,SIGNAL(treeChanged(QList<socexplorerplugin*>)),this->managerGui,SIGNAL(treeChanged(QList<socexplorerplugin*>))); |
|
31 | connect(this,SIGNAL(treeChanged(QList<socexplorerplugin*>)),this->managerGui,SIGNAL(treeChanged(QList<socexplorerplugin*>))); | |
11 | connect(this->managerGui,SIGNAL(changeSysDriverInstName(QString,QString)),this,SIGNAL(changeSysDriverInstName(QString,QString))); |
|
32 | connect(this->managerGui,SIGNAL(changeSysDriverInstName(QString,QString)),this,SIGNAL(changeSysDriverInstName(QString,QString))); | |
12 | connect(this->managerGui,SIGNAL(closeSysDriver(QString)),this,SIGNAL(closeSysDriver(QString))); |
|
33 | connect(this->managerGui,SIGNAL(closeSysDriver(QString)),this,SIGNAL(closeSysDriver(QString))); | |
13 | connect(this->managerGui,SIGNAL(pluginselected(QString)),this,SIGNAL(pluginselected(QString))); |
|
34 | connect(this->managerGui,SIGNAL(pluginselected(QString)),this,SIGNAL(pluginselected(QString))); | |
14 | this->setWidget(this->managerGui); |
|
35 | this->setWidget(this->managerGui); | |
15 | this->setWindowTitle(this->managerGui->windowTitle()); |
|
36 | this->setWindowTitle(this->managerGui->windowTitle()); | |
16 | } |
|
37 | } | |
17 |
|
38 | |||
18 |
|
39 | |||
19 |
|
40 | |||
20 | void dockablePluginManager::setRootLoadable(bool flag) |
|
41 | void dockablePluginManager::setRootLoadable(bool flag) | |
21 | { |
|
42 | { | |
22 | this->managerGui->setRootLoadable(flag); |
|
43 | this->managerGui->setRootLoadable(flag); | |
23 | } |
|
44 | } |
@@ -1,21 +1,42 | |||||
|
1 | /*------------------------------------------------------------------------------ | |||
|
2 | -- This file is a part of the SocExplorer Software | |||
|
3 | -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS | |||
|
4 | -- | |||
|
5 | -- This program is free software; you can redistribute it and/or modify | |||
|
6 | -- it under the terms of the GNU General Public License as published by | |||
|
7 | -- the Free Software Foundation; either version 2 of the License, or | |||
|
8 | -- (at your option) any later version. | |||
|
9 | -- | |||
|
10 | -- This program is distributed in the hope that it will be useful, | |||
|
11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|
12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
|
13 | -- GNU General Public License for more details. | |||
|
14 | -- | |||
|
15 | -- You should have received a copy of the GNU General Public License | |||
|
16 | -- along with this program; if not, write to the Free Software | |||
|
17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
|
18 | -------------------------------------------------------------------------------*/ | |||
|
19 | /*-- Author : Alexis Jeandet | |||
|
20 | -- Mail : alexis.jeandet@member.fsf.org | |||
|
21 | ----------------------------------------------------------------------------*/ | |||
1 | #include "toolbar.h" |
|
22 | #include "toolbar.h" | |
2 |
|
23 | |||
3 | toolBar::toolBar(QWidget *parent) : |
|
24 | toolBar::toolBar(QWidget *parent) : | |
4 | QDockWidget(parent) |
|
25 | QDockWidget(parent) | |
5 | { |
|
26 | { | |
6 | this->toolsContainer = new toolBarContainer; |
|
27 | this->toolsContainer = new toolBarContainer; | |
7 | this->setWidget(this->toolsContainer); |
|
28 | this->setWidget(this->toolsContainer); | |
8 | this->setFeatures(DockWidgetMovable | DockWidgetFloatable); |
|
29 | this->setFeatures(DockWidgetMovable | DockWidgetFloatable); | |
9 | this->setWindowTitle("SocExplorer Toolbar"); |
|
30 | this->setWindowTitle("SocExplorer Toolbar"); | |
10 | } |
|
31 | } | |
11 |
|
32 | |||
12 |
|
33 | |||
13 |
|
34 | |||
14 | void toolBar::addTool(QDockWidget* widget) |
|
35 | void toolBar::addTool(QDockWidget* widget) | |
15 | { |
|
36 | { | |
16 | widget->setAllowedAreas(Qt::AllDockWidgetAreas); |
|
37 | widget->setAllowedAreas(Qt::AllDockWidgetAreas); | |
17 | this->toolsContainer->addDockWidget(Qt::TopDockWidgetArea,widget); |
|
38 | this->toolsContainer->addDockWidget(Qt::TopDockWidgetArea,widget); | |
18 | } |
|
39 | } | |
19 |
|
40 | |||
20 |
|
41 | |||
21 |
|
42 |
@@ -1,7 +1,28 | |||||
|
1 | /*------------------------------------------------------------------------------ | |||
|
2 | -- This file is a part of the SocExplorer Software | |||
|
3 | -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS | |||
|
4 | -- | |||
|
5 | -- This program is free software; you can redistribute it and/or modify | |||
|
6 | -- it under the terms of the GNU General Public License as published by | |||
|
7 | -- the Free Software Foundation; either version 2 of the License, or | |||
|
8 | -- (at your option) any later version. | |||
|
9 | -- | |||
|
10 | -- This program is distributed in the hope that it will be useful, | |||
|
11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|
12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
|
13 | -- GNU General Public License for more details. | |||
|
14 | -- | |||
|
15 | -- You should have received a copy of the GNU General Public License | |||
|
16 | -- along with this program; if not, write to the Free Software | |||
|
17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
|
18 | -------------------------------------------------------------------------------*/ | |||
|
19 | /*-- Author : Alexis Jeandet | |||
|
20 | -- Mail : alexis.jeandet@member.fsf.org | |||
|
21 | ----------------------------------------------------------------------------*/ | |||
1 | #include "toolbarcontainer.h" |
|
22 | #include "toolbarcontainer.h" | |
2 |
|
23 | |||
3 | toolBarContainer::toolBarContainer(QWidget *parent) : |
|
24 | toolBarContainer::toolBarContainer(QWidget *parent) : | |
4 | QMainWindow(parent) |
|
25 | QMainWindow(parent) | |
5 | { |
|
26 | { | |
6 | this->setWindowFlags(Qt::Widget); |
|
27 | this->setWindowFlags(Qt::Widget); | |
7 | } |
|
28 | } |
General Comments 0
You need to be logged in to leave comments.
Login now