aboutsummaryrefslogtreecommitdiffstats
path: root/forms
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2017-12-19 01:54:28 +0100
committerNao Pross <naopross@thearcway.org>2017-12-19 01:54:28 +0100
commita7e74749a1c4edb2f8bc34c79e9bd1562de86ee9 (patch)
tree4282a5dfa9ef7d77823e3e8ef02a193c91e719d6 /forms
parentMoved to QtCreator project with QMake (diff)
downloadOrbitingYeti-a7e74749a1c4edb2f8bc34c79e9bd1562de86ee9.tar.gz
OrbitingYeti-a7e74749a1c4edb2f8bc34c79e9bd1562de86ee9.zip
Change to Qt5 conding conventions
Data structure changes: - Structogram is no longer just a scope, because it needs to store metadata - All structures now use QString instead of std::string, to integrate better in the Qt framework New code: - MainWindow ui code, building layout - MetadataDialog to change the metadata stored in the Structogram - Painter is a widget (still unimplemented) to show the structogram on the GUI
Diffstat (limited to 'forms')
-rw-r--r--forms/mainwindow.ui76
-rw-r--r--forms/metadatadialog.ui84
-rw-r--r--forms/painter.ui21
3 files changed, 170 insertions, 11 deletions
diff --git a/forms/mainwindow.ui b/forms/mainwindow.ui
index a41e446..86d6381 100644
--- a/forms/mainwindow.ui
+++ b/forms/mainwindow.ui
@@ -10,8 +10,14 @@
<height>601</height>
</rect>
</property>
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="windowTitle">
- <string>MainWindow</string>
+ <string>OrbitingYeti</string>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonIconOnly</enum>
@@ -21,22 +27,22 @@
<bool>true</bool>
</property>
<property name="sizePolicy">
- <sizepolicy hsizetype="Maximum" vsizetype="Maximum">
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
- <width>824</width>
- <height>548</height>
+ <width>10000</width>
+ <height>10000</height>
</size>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
- <layout class="QVBoxLayout" name="verticalLayout_2">
- <item>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout">
<property name="sizeConstraint">
<enum>QLayout::SetMaximumSize</enum>
@@ -49,7 +55,8 @@
<string>New Diagram</string>
</property>
<property name="icon">
- <iconset theme="document-new"/>
+ <iconset theme="document-new">
+ <normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
@@ -59,7 +66,8 @@
<string>Open</string>
</property>
<property name="icon">
- <iconset theme="document-open"/>
+ <iconset theme="document-open">
+ <normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
@@ -69,7 +77,8 @@
<string>Save</string>
</property>
<property name="icon">
- <iconset theme="document-save"/>
+ <iconset theme="document-save">
+ <normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
@@ -95,7 +104,15 @@
<string>Refresh View</string>
</property>
<property name="icon">
- <iconset theme="view-refresh"/>
+ <iconset theme="view-refresh">
+ <normaloff>.</normaloff>.</iconset>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="metadataButton">
+ <property name="text">
+ <string>Metadata</string>
</property>
</widget>
</item>
@@ -105,7 +122,8 @@
<string>New Statement</string>
</property>
<property name="icon">
- <iconset theme="insert-object"/>
+ <iconset theme="insert-object">
+ <normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
@@ -149,6 +167,7 @@
<addaction name="actionSave"/>
<addaction name="actionSave_As"/>
<addaction name="actionOpen"/>
+ <addaction name="actionClose"/>
<addaction name="menuExport"/>
<addaction name="separator"/>
<addaction name="actionSettings"/>
@@ -174,9 +193,17 @@
</property>
<addaction name="actionFont"/>
</widget>
+ <widget class="QMenu" name="menuView">
+ <property name="title">
+ <string>View</string>
+ </property>
+ <addaction name="actionToolbar"/>
+ <addaction name="actionStatusbar"/>
+ </widget>
<addaction name="menuFIle"/>
<addaction name="menuEdit"/>
<addaction name="menuStyle"/>
+ <addaction name="menuView"/>
<addaction name="menuAbout"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
@@ -271,6 +298,33 @@
<string>Settings</string>
</property>
</action>
+ <action name="actionClose">
+ <property name="text">
+ <string>Close</string>
+ </property>
+ </action>
+ <action name="actionToolbar">
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="text">
+ <string>Toolbar</string>
+ </property>
+ </action>
+ <action name="actionStatusbar">
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="text">
+ <string>Statusbar</string>
+ </property>
+ </action>
</widget>
<resources/>
<connections/>
diff --git a/forms/metadatadialog.ui b/forms/metadatadialog.ui
new file mode 100644
index 0000000..070242e
--- /dev/null
+++ b/forms/metadatadialog.ui
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>MetadataDialog</class>
+ <widget class="QDialog" name="MetadataDialog">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>300</width>
+ <height>190</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Set metadata</string>
+ </property>
+ <layout class="QFormLayout" name="formLayout">
+ <item row="5" column="1">
+ <widget class="QDialogButtonBox" name="buttonBox">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="standardButtons">
+ <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QLabel" name="titleLabel">
+ <property name="text">
+ <string>Title</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="1">
+ <widget class="QLineEdit" name="titleEdit"/>
+ </item>
+ <item row="3" column="1">
+ <widget class="QLabel" name="authorLabel">
+ <property name="text">
+ <string>Author</string>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="1">
+ <widget class="QLineEdit" name="authorEdit"/>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>accepted()</signal>
+ <receiver>MetadataDialog</receiver>
+ <slot>accept()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>248</x>
+ <y>254</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>157</x>
+ <y>274</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>rejected()</signal>
+ <receiver>MetadataDialog</receiver>
+ <slot>reject()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>316</x>
+ <y>260</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>286</x>
+ <y>274</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>
diff --git a/forms/painter.ui b/forms/painter.ui
new file mode 100644
index 0000000..1978a7c
--- /dev/null
+++ b/forms/painter.ui
@@ -0,0 +1,21 @@
+<ui version="4.0">
+ <author/>
+ <comment/>
+ <exportmacro/>
+ <class>Painter</class>
+ <widget name="Painter" class="QWidget">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>400</width>
+ <height>300</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Form</string>
+ </property>
+ </widget>
+ <pixmapfunction/>
+ <connections/>
+</ui>