##// END OF EJS Templates
Sync
jeandet -
r32:11efb408742b default
parent child
Show More
@@ -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 22 #include "dockablepluginmanager.h"
2 23
3 24 dockablePluginManager::dockablePluginManager(QWidget *parent) :
4 25 QDockWidget(parent)
5 26 {
6 27 this->managerGui = new pluginmanagerWDGT;
7 28 connect(this->managerGui,SIGNAL(loadSysDrviver(QString)),this,SIGNAL(loadSysDrviver(QString)));
8 29 connect(this->managerGui,SIGNAL(loadSysDriverToParent(QString,QString)),this,SIGNAL(loadSysDriverToParent(QString,QString)));
9 30 connect(this->managerGui,SIGNAL(geteplugintree()),this,SIGNAL(geteplugintree()));
10 31 connect(this,SIGNAL(treeChanged(QList<socexplorerplugin*>)),this->managerGui,SIGNAL(treeChanged(QList<socexplorerplugin*>)));
11 32 connect(this->managerGui,SIGNAL(changeSysDriverInstName(QString,QString)),this,SIGNAL(changeSysDriverInstName(QString,QString)));
12 33 connect(this->managerGui,SIGNAL(closeSysDriver(QString)),this,SIGNAL(closeSysDriver(QString)));
13 34 connect(this->managerGui,SIGNAL(pluginselected(QString)),this,SIGNAL(pluginselected(QString)));
14 35 this->setWidget(this->managerGui);
15 36 this->setWindowTitle(this->managerGui->windowTitle());
16 37 }
17 38
18 39
19 40
20 41 void dockablePluginManager::setRootLoadable(bool flag)
21 42 {
22 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 22 #include "toolbar.h"
2 23
3 24 toolBar::toolBar(QWidget *parent) :
4 25 QDockWidget(parent)
5 26 {
6 27 this->toolsContainer = new toolBarContainer;
7 28 this->setWidget(this->toolsContainer);
8 29 this->setFeatures(DockWidgetMovable | DockWidgetFloatable);
9 30 this->setWindowTitle("SocExplorer Toolbar");
10 31 }
11 32
12 33
13 34
14 35 void toolBar::addTool(QDockWidget* widget)
15 36 {
16 37 widget->setAllowedAreas(Qt::AllDockWidgetAreas);
17 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 22 #include "toolbarcontainer.h"
2 23
3 24 toolBarContainer::toolBarContainer(QWidget *parent) :
4 25 QMainWindow(parent)
5 26 {
6 27 this->setWindowFlags(Qt::Widget);
7 28 }
General Comments 0
You need to be logged in to leave comments. Login now