Commit 39242a27 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Update layout to get statecharts as a main tab

parent 53b60ee0
...@@ -78,6 +78,16 @@ ...@@ -78,6 +78,16 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="Statechart">
<property name="windowTitle">
<string>Statechart (F4 to update)</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="SDL_View" name="statechart_view"/>
</item>
</layout>
</widget>
</widget> </widget>
</item> </item>
</layout> </layout>
...@@ -88,7 +98,7 @@ ...@@ -88,7 +98,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>900</width> <width>900</width>
<height>18</height> <height>25</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuOpenGEODE"> <widget class="QMenu" name="menuOpenGEODE">
...@@ -141,21 +151,6 @@ ...@@ -141,21 +151,6 @@
</layout> </layout>
</widget> </widget>
</widget> </widget>
<widget class="QDockWidget" name="statechart_dock">
<property name="windowTitle">
<string>Statechart (F4 to update)</string>
</property>
<attribute name="dockWidgetArea">
<number>2</number>
</attribute>
<widget class="QWidget" name="dockWidgetContents_2">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="SDL_View" name="statechart_view"/>
</item>
</layout>
</widget>
</widget>
<widget class="QDockWidget" name="datatypes_dock"> <widget class="QDockWidget" name="datatypes_dock">
<property name="windowTitle"> <property name="windowTitle">
<string>Data types</string> <string>Data types</string>
......
This diff is collapsed.
...@@ -1949,13 +1949,13 @@ class OG_MainWindow(QtGui.QMainWindow, object): ...@@ -1949,13 +1949,13 @@ class OG_MainWindow(QtGui.QMainWindow, object):
self.scene.messages_window = messages self.scene.messages_window = messages
messages.itemClicked.connect(self.view.show_item) messages.itemClicked.connect(self.view.show_item)
statechart_dock = self.findChild(QtGui.QDockWidget, 'statechart_dock') #statechart_dock = self.findChild(QtGui.QDockWidget, 'statechart_dock')
if graphviz: if graphviz:
self.statechart_view = self.findChild(SDL_View, 'statechart_view') self.statechart_view = self.findChild(SDL_View, 'statechart_view')
self.statechart_scene = SDL_Scene(context='statechart') self.statechart_scene = SDL_Scene(context='statechart')
self.statechart_view.setScene(self.statechart_scene) self.statechart_view.setScene(self.statechart_scene)
else: #else:
statechart_dock.hide() # statechart_dock.hide()
# Set up the dock area to display the ASN.1 Data model # Set up the dock area to display the ASN.1 Data model
#asn1_dock = self.findChild(QtGui.QDockWidget, 'datatypes_dock') #asn1_dock = self.findChild(QtGui.QDockWidget, 'datatypes_dock')
......
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment