##// END OF EJS Templates
Working on session manager.
Jeandet Alexis -
r92:a9916b2ad4f6 default
parent child
Show More
@@ -0,0 +1,14
1 #include "sessionmanagerdialog.h"
2 #include "ui_sessionmanagerdialog.h"
3
4 SessionManagerDialog::SessionManagerDialog(QWidget *parent) :
5 QDialog(parent),
6 ui(new Ui::SessionManagerDialog)
7 {
8 ui->setupUi(this);
9 }
10
11 SessionManagerDialog::~SessionManagerDialog()
12 {
13 delete ui;
14 }
@@ -0,0 +1,22
1 #ifndef SESSIONMANAGERDIALOG_H
2 #define SESSIONMANAGERDIALOG_H
3
4 #include <QDialog>
5
6 namespace Ui {
7 class SessionManagerDialog;
8 }
9
10 class SessionManagerDialog : public QDialog
11 {
12 Q_OBJECT
13
14 public:
15 explicit SessionManagerDialog(QWidget *parent = 0);
16 ~SessionManagerDialog();
17
18 private:
19 Ui::SessionManagerDialog *ui;
20 };
21
22 #endif // SESSIONMANAGERDIALOG_H
@@ -0,0 +1,121
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3 <class>SessionManagerDialog</class>
4 <widget class="QDialog" name="SessionManagerDialog">
5 <property name="geometry">
6 <rect>
7 <x>0</x>
8 <y>0</y>
9 <width>553</width>
10 <height>275</height>
11 </rect>
12 </property>
13 <property name="windowTitle">
14 <string>Dialog</string>
15 </property>
16 <layout class="QGridLayout" name="gridLayout">
17 <item row="0" column="0">
18 <widget class="QListWidget" name="listWidget"/>
19 </item>
20 <item row="0" column="1">
21 <widget class="QWidget" name="widget" native="true">
22 <layout class="QVBoxLayout" name="verticalLayout">
23 <item>
24 <widget class="QPushButton" name="NewQPB">
25 <property name="text">
26 <string>New</string>
27 </property>
28 </widget>
29 </item>
30 <item>
31 <widget class="QPushButton" name="RenameQPB">
32 <property name="text">
33 <string>Rename</string>
34 </property>
35 </widget>
36 </item>
37 <item>
38 <widget class="QPushButton" name="CloneQPB">
39 <property name="text">
40 <string>Clone</string>
41 </property>
42 </widget>
43 </item>
44 <item>
45 <widget class="QPushButton" name="DeleteQPB">
46 <property name="text">
47 <string>Delete</string>
48 </property>
49 </widget>
50 </item>
51 <item>
52 <widget class="QPushButton" name="SwitchToQPB">
53 <property name="text">
54 <string>Switch to</string>
55 </property>
56 </widget>
57 </item>
58 <item>
59 <spacer name="verticalSpacer">
60 <property name="orientation">
61 <enum>Qt::Vertical</enum>
62 </property>
63 <property name="sizeHint" stdset="0">
64 <size>
65 <width>20</width>
66 <height>40</height>
67 </size>
68 </property>
69 </spacer>
70 </item>
71 </layout>
72 </widget>
73 </item>
74 <item row="1" column="0" colspan="2">
75 <widget class="QDialogButtonBox" name="buttonBox">
76 <property name="orientation">
77 <enum>Qt::Horizontal</enum>
78 </property>
79 <property name="standardButtons">
80 <set>QDialogButtonBox::Close</set>
81 </property>
82 </widget>
83 </item>
84 </layout>
85 </widget>
86 <resources/>
87 <connections>
88 <connection>
89 <sender>buttonBox</sender>
90 <signal>accepted()</signal>
91 <receiver>SessionManagerDialog</receiver>
92 <slot>accept()</slot>
93 <hints>
94 <hint type="sourcelabel">
95 <x>248</x>
96 <y>254</y>
97 </hint>
98 <hint type="destinationlabel">
99 <x>157</x>
100 <y>274</y>
101 </hint>
102 </hints>
103 </connection>
104 <connection>
105 <sender>buttonBox</sender>
106 <signal>rejected()</signal>
107 <receiver>SessionManagerDialog</receiver>
108 <slot>reject()</slot>
109 <hints>
110 <hint type="sourcelabel">
111 <x>316</x>
112 <y>260</y>
113 </hint>
114 <hint type="destinationlabel">
115 <x>286</x>
116 <y>274</y>
117 </hint>
118 </hints>
119 </connection>
120 </connections>
121 </ui>
@@ -67,6 +67,7 void SocExplorerMainWindow::makeObjects(
67 this->help = new QAction(tr("&Help"),this);
67 this->help = new QAction(tr("&Help"),this);
68 this->help->setShortcut(tr("CTRL+H"));
68 this->help->setShortcut(tr("CTRL+H"));
69 this->about = new QAction(tr("&About"),this);
69 this->about = new QAction(tr("&About"),this);
70 this->p_SessionManagerDialog = new SessionManagerDialog();
70 socexplorerproxy::setMainWindow(this);
71 socexplorerproxy::setMainWindow(this);
71 SocExplorerEngine::setMainWindow(this);
72 SocExplorerEngine::setMainWindow(this);
72 SocExplorerEngine::xmlModel()->scanXmlFiles();
73 SocExplorerEngine::xmlModel()->scanXmlFiles();
@@ -111,6 +112,8 void SocExplorerMainWindow::makeConnecti
111 connect(this->about,SIGNAL(triggered()),this,SLOT(showAboutBox()));
112 connect(this->about,SIGNAL(triggered()),this,SLOT(showAboutBox()));
112 connect(this->exploreRegs,SIGNAL(triggered()),this->regExplorer,SLOT(show()));
113 connect(this->exploreRegs,SIGNAL(triggered()),this->regExplorer,SLOT(show()));
113
114
115 connect(this->sessionManagerAction, SIGNAL(triggered(bool)),this->p_SessionManagerDialog,SLOT(show()));
116
114 this->pluginManager->connect(this->pluginManager,SIGNAL(loadSysDrviver(QString)),socexplorerproxy::self(),SLOT(loadSysDriver(QString)));
117 this->pluginManager->connect(this->pluginManager,SIGNAL(loadSysDrviver(QString)),socexplorerproxy::self(),SLOT(loadSysDriver(QString)));
115 this->pluginManager->connect(this->pluginManager,SIGNAL(loadSysDriverToParent(QString,QString)),socexplorerproxy::self(),SLOT(loadSysDriverToParent(QString,QString)));
118 this->pluginManager->connect(this->pluginManager,SIGNAL(loadSysDriverToParent(QString,QString)),socexplorerproxy::self(),SLOT(loadSysDriverToParent(QString,QString)));
116
119
@@ -155,6 +158,7 void SocExplorerMainWindow::makeMenu()
155 {
158 {
156 this->FileMenu = menuBar()->addMenu(tr("&File"));
159 this->FileMenu = menuBar()->addMenu(tr("&File"));
157 this->SessionsMenu = this->FileMenu->addMenu(tr("&Sessions"));
160 this->SessionsMenu = this->FileMenu->addMenu(tr("&Sessions"));
161 this->sessionManagerAction = this->FileMenu->addAction(tr("&Session manager..."));
158 this->SettingsMenu = menuBar()->addMenu(tr("&Settings"));
162 this->SettingsMenu = menuBar()->addMenu(tr("&Settings"));
159 SocExplorerGUI::registerMenuBar(menuBar(),this->FileMenu,this->SettingsMenu);
163 SocExplorerGUI::registerMenuBar(menuBar(),this->FileMenu,this->SettingsMenu);
160 this->PluginsMenu = menuBar()->addMenu(tr("&Plugins"));
164 this->PluginsMenu = menuBar()->addMenu(tr("&Plugins"));
@@ -39,6 +39,7
39 #include "toolbar.h"
39 #include "toolbar.h"
40 #include "regsExplorer/regsexplorer.h"
40 #include "regsExplorer/regsexplorer.h"
41 #include "socexplorergui.h"
41 #include "socexplorergui.h"
42 #include "sessionmanagerdialog.h"
42
43
43 class SocExplorerMainWindow : public QMainWindow
44 class SocExplorerMainWindow : public QMainWindow
44 {
45 {
@@ -47,7 +48,7 class SocExplorerMainWindow : public QMa
47 public:
48 public:
48 SocExplorerMainWindow(QString ScriptToEval,QWidget *parent = 0);
49 SocExplorerMainWindow(QString ScriptToEval,QWidget *parent = 0);
49 ~SocExplorerMainWindow();
50 ~SocExplorerMainWindow();
50 QAction* Quit,*LoadPlugin,*ManagePlugins,*help,*regsManager,*exploreRegs,*about,*translateAction;
51 QAction* Quit,*LoadPlugin,*ManagePlugins,*help,*regsManager,*exploreRegs,*about,*translateAction,*sessionManagerAction;
51 QActionGroup*langActionGrp;
52 QActionGroup*langActionGrp;
52 QMenu* FileMenu,*SettingsMenu,*PluginsMenu,*ToolsMenu,*langMenu,*helpMenu,*SessionsMenu;
53 QMenu* FileMenu,*SettingsMenu,*PluginsMenu,*ToolsMenu,*langMenu,*helpMenu,*SessionsMenu;
53 QTranslator* appTranslator;
54 QTranslator* appTranslator;
@@ -84,6 +85,7 private:
84 aboutsocexplorer* p_about;
85 aboutsocexplorer* p_about;
85 QList<QDockWidget*>* p_pluginGUIlist;
86 QList<QDockWidget*>* p_pluginGUIlist;
86 QStringList p_Sessions;
87 QStringList p_Sessions;
88 SessionManagerDialog* p_SessionManagerDialog;
87 };
89 };
88
90
89 #endif // MAINWINDOW_H
91 #endif // MAINWINDOW_H
@@ -74,7 +74,8 SOURCES += main.cpp\
74 toolbarcontainer.cpp \
74 toolbarcontainer.cpp \
75 aboutsocexplorer.cpp \
75 aboutsocexplorer.cpp \
76 regsExplorer/regsexplorer.cpp \
76 regsExplorer/regsexplorer.cpp \
77 socexplorercoresettingsgui.cpp
77 socexplorercoresettingsgui.cpp \
78 sessionmanagerdialog.cpp
78
79
79 HEADERS += mainwindow.h \
80 HEADERS += mainwindow.h \
80 PyWdgt/pythonconsole.h \
81 PyWdgt/pythonconsole.h \
@@ -86,7 +87,8 HEADERS += mainwindow.h \
86 SocExplorerEngine/plugins/socexplorerplugin.h \
87 SocExplorerEngine/plugins/socexplorerplugin.h \
87 aboutsocexplorer.h \
88 aboutsocexplorer.h \
88 regsExplorer/regsexplorer.h \
89 regsExplorer/regsexplorer.h \
89 socexplorercoresettingsgui.h
90 socexplorercoresettingsgui.h \
91 sessionmanagerdialog.h
90
92
91
93
92 include ( NicePyConsole/NicePyConsole.pri)
94 include ( NicePyConsole/NicePyConsole.pri)
@@ -104,7 +106,8 TRANSLATIONS = ../translations/socexplor
104
106
105 FORMS += \
107 FORMS += \
106 regsExplorer/regsexplorernew.ui \
108 regsExplorer/regsexplorernew.ui \
107 socexplorercoresettingsgui.ui
109 socexplorercoresettingsgui.ui \
110 sessionmanagerdialog.ui
108
111
109 DISTFILES += \
112 DISTFILES += \
110 ../doc/PythonExamples/LEON3_LOAD.py \
113 ../doc/PythonExamples/LEON3_LOAD.py \
General Comments 0
You need to be logged in to leave comments. Login now