Skip to content

Commit 93a4e7d

Browse files
committed
Update UI file
1 parent 7e1913d commit 93a4e7d

File tree

5 files changed

+219
-98
lines changed

5 files changed

+219
-98
lines changed

src/Interface/Application/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ SET(Interface_Application_SOURCES
6161
NetworkEditorControllerGuiProxy.cc
6262
TreeViewCollaborators.cc
6363
ModuleWizard/ModuleWizard.cc
64+
TriggeredEventsWindow.cc
6465
)
6566

6667
SET(Interface_Application_HEADERS
@@ -95,6 +96,7 @@ SET(Interface_Application_HEADERS
9596
TreeViewCollaborators.h
9697
Utility.h
9798
ModuleWizard/ModuleWizard.h
99+
TriggeredEventsWindow.h
98100
)
99101

100102
SET(Interface_Application_FORMS
@@ -109,6 +111,7 @@ SET(Interface_Application_FORMS
109111
ShortcutsInterface.ui
110112
RenderWindow.ui
111113
TagManager.ui
114+
TriggeredEventsWindow.ui
112115
)
113116

114117
SET(Interface_Application_RESOURCES

src/Interface/Application/TriggeredEvents.ui

Lines changed: 0 additions & 98 deletions
This file was deleted.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
For more information, please see: http://software.sci.utah.edu
3+
4+
The MIT License
5+
6+
Copyright (c) 2015 Scientific Computing and Imaging Institute,
7+
University of Utah.
8+
9+
License for the specific language governing rights and limitations under
10+
Permission is hereby granted, free of charge, to any person obtaining a
11+
copy of this software and associated documentation files (the "Software"),
12+
to deal in the Software without restriction, including without limitation
13+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
14+
and/or sell copies of the Software, and to permit persons to whom the
15+
Software is furnished to do so, subject to the following conditions:
16+
17+
The above copyright notice and this permission notice shall be included
18+
in all copies or substantial portions of the Software.
19+
20+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26+
DEALINGS IN THE SOFTWARE.
27+
*/
28+
29+
#include <QtGui>
30+
#include <Interface/Application/TriggeredEventsWindow.h>
31+
#include <Interface/Application/NetworkEditor.h>
32+
33+
using namespace SCIRun::Gui;
34+
//using namespace SCIRun::Dataflow::Networks;
35+
//using namespace SCIRun::Dataflow::Engine;
36+
37+
TriggeredEventsWindow::TriggeredEventsWindow(QWidget* parent /* = 0 */) : QDockWidget(parent)
38+
{
39+
setupUi(this);
40+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/*
2+
For more information, please see: http://software.sci.utah.edu
3+
4+
The MIT License
5+
6+
Copyright (c) 2015 Scientific Computing and Imaging Institute,
7+
University of Utah.
8+
9+
License for the specific language governing rights and limitations under
10+
Permission is hereby granted, free of charge, to any person obtaining a
11+
copy of this software and associated documentation files (the "Software"),
12+
to deal in the Software without restriction, including without limitation
13+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
14+
and/or sell copies of the Software, and to permit persons to whom the
15+
Software is furnished to do so, subject to the following conditions:
16+
17+
The above copyright notice and this permission notice shall be included
18+
in all copies or substantial portions of the Software.
19+
20+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26+
DEALINGS IN THE SOFTWARE.
27+
*/
28+
29+
#ifndef INTERFACE_APPLICATION_TRIGGEREDEVENTSWINDOW_H
30+
#define INTERFACE_APPLICATION_TRIGGEREDEVENTSWINDOW_H
31+
32+
#include "ui_TriggeredEventsWindow.h"
33+
34+
#ifndef Q_MOC_RUN
35+
#include <Dataflow/Network/NetworkFwd.h>
36+
#endif
37+
38+
namespace SCIRun {
39+
namespace Gui {
40+
41+
class NetworkEditor;
42+
43+
class TriggeredEventsWindow : public QDockWidget, public Ui::TriggeredEvents
44+
{
45+
Q_OBJECT
46+
47+
public:
48+
explicit TriggeredEventsWindow(QWidget* parent = nullptr);
49+
//void showFile(SCIRun::Dataflow::Networks::NetworkFileHandle file);
50+
//public Q_SLOTS:
51+
// void clear();
52+
// void addProvenanceItem(SCIRun::Dataflow::Engine::ProvenanceItemHandle item);
53+
// void undo();
54+
// void redo();
55+
// void undoAll();
56+
// void redoAll();
57+
//private Q_SLOTS:
58+
// void displayInfo(QListWidgetItem* item);
59+
//Q_SIGNALS:
60+
// void modifyingNetwork(bool modifying);
61+
// void undoStateChanged(bool enabled);
62+
// void redoStateChanged(bool enabled);
63+
// void networkModified();
64+
private:
65+
//SCIRun::Dataflow::Engine::ProvenanceManagerHandle provenanceManager_;
66+
//int lastUndoRow_;
67+
//const SCIRun::Dataflow::Engine::ProvenanceManagerHandle::element_type::IOType* networkEditor_;
68+
69+
//void setUndoEnabled(bool enable);
70+
//void setRedoEnabled(bool enable);
71+
};
72+
73+
}
74+
}
75+
76+
#endif
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
3+
<class>TriggeredEvents</class>
4+
<widget class="QDockWidget" name="TriggeredEvents">
5+
<property name="geometry">
6+
<rect>
7+
<x>0</x>
8+
<y>0</y>
9+
<width>725</width>
10+
<height>422</height>
11+
</rect>
12+
</property>
13+
<property name="windowTitle">
14+
<string>Triggered Events</string>
15+
</property>
16+
<widget class="QWidget" name="dockWidgetContents">
17+
<layout class="QGridLayout" name="gridLayout_3">
18+
<item row="0" column="0">
19+
<widget class="QSplitter" name="splitter">
20+
<property name="orientation">
21+
<enum>Qt::Horizontal</enum>
22+
</property>
23+
<widget class="QWidget" name="layoutWidget">
24+
<layout class="QGridLayout" name="gridLayout">
25+
<item row="0" column="0">
26+
<widget class="QLabel" name="label">
27+
<property name="text">
28+
<string>Event</string>
29+
</property>
30+
</widget>
31+
</item>
32+
<item row="1" column="0">
33+
<widget class="QListWidget" name="eventListWidget_">
34+
<item>
35+
<property name="text">
36+
<string>Pre module add</string>
37+
</property>
38+
<property name="flags">
39+
<set>ItemIsSelectable|ItemIsDragEnabled|ItemIsUserCheckable</set>
40+
</property>
41+
</item>
42+
<item>
43+
<property name="text">
44+
<string>Post module add</string>
45+
</property>
46+
</item>
47+
<item>
48+
<property name="text">
49+
<string>On network load</string>
50+
</property>
51+
<property name="flags">
52+
<set>ItemIsSelectable|ItemIsDragEnabled|ItemIsUserCheckable</set>
53+
</property>
54+
</item>
55+
<item>
56+
<property name="text">
57+
<string>Pre execute</string>
58+
</property>
59+
<property name="flags">
60+
<set>ItemIsSelectable|ItemIsDragEnabled|ItemIsUserCheckable</set>
61+
</property>
62+
</item>
63+
<item>
64+
<property name="text">
65+
<string>Post execute</string>
66+
</property>
67+
<property name="flags">
68+
<set>ItemIsSelectable|ItemIsDragEnabled|ItemIsUserCheckable</set>
69+
</property>
70+
</item>
71+
</widget>
72+
</item>
73+
</layout>
74+
</widget>
75+
<widget class="QWidget" name="layoutWidget_2">
76+
<layout class="QGridLayout" name="gridLayout_2">
77+
<item row="0" column="0">
78+
<widget class="QLabel" name="label_2">
79+
<property name="text">
80+
<string>Script</string>
81+
</property>
82+
</widget>
83+
</item>
84+
<item row="1" column="0">
85+
<widget class="QPlainTextEdit" name="scriptPlainTextEdit_">
86+
<property name="plainText">
87+
<string># Insert Python API calls here.</string>
88+
</property>
89+
</widget>
90+
</item>
91+
</layout>
92+
</widget>
93+
</widget>
94+
</item>
95+
</layout>
96+
</widget>
97+
</widget>
98+
<resources/>
99+
<connections/>
100+
</ui>

0 commit comments

Comments
 (0)