aboutsummaryrefslogtreecommitdiffstats
path: root/forms
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2017-12-19 22:47:05 +0100
committerNao Pross <naopross@thearcway.org>2017-12-19 22:47:05 +0100
commit631f37ee26c19d38408ee733ffda24ad283c7921 (patch)
tree0d12f7201337ac9c459aac48b5e4421f6a1f7db2 /forms
parentUpdate gitignore for QtCreator (diff)
downloadOrbitingYeti-631f37ee26c19d38408ee733ffda24ad283c7921.tar.gz
OrbitingYeti-631f37ee26c19d38408ee733ffda24ad283c7921.zip
Implement basic ui
Changes: - Clean up code to use Qt coding style - Add comments to some methods - Add debugtools to have debug_msg() and debug_err() macros - New Serializer class header to save / load data - MetadataDialog: check validity of metadata - MainWindow: initial code for `tool' buttons to edit the structogram - MainWindow: open / save dialog
Diffstat (limited to 'forms')
-rw-r--r--forms/mainwindow.ui80
-rw-r--r--forms/metadatadialog.ui25
2 files changed, 91 insertions, 14 deletions
diff --git a/forms/mainwindow.ui b/forms/mainwindow.ui
index 86d6381..23125a1 100644
--- a/forms/mainwindow.ui
+++ b/forms/mainwindow.ui
@@ -165,7 +165,7 @@
</widget>
<addaction name="actionNew"/>
<addaction name="actionSave"/>
- <addaction name="actionSave_As"/>
+ <addaction name="actionSaveAs"/>
<addaction name="actionOpen"/>
<addaction name="actionClose"/>
<addaction name="menuExport"/>
@@ -255,11 +255,20 @@
</property>
</action>
<action name="actionPDF">
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
<property name="text">
<string>PDF</string>
</property>
+ <property name="shortcut">
+ <string>Ctrl+E</string>
+ </property>
</action>
<action name="actionLaTeX_TikZ">
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
<property name="text">
<string>LaTeX TikZ</string>
</property>
@@ -280,7 +289,7 @@
<string>Ctrl+V</string>
</property>
</action>
- <action name="actionSave_As">
+ <action name="actionSaveAs">
<property name="text">
<string>Save As</string>
</property>
@@ -327,5 +336,70 @@
</action>
</widget>
<resources/>
- <connections/>
+ <connections>
+ <connection>
+ <sender>actionNew</sender>
+ <signal>triggered()</signal>
+ <receiver>newButton</receiver>
+ <slot>click()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>-1</x>
+ <y>-1</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>23</x>
+ <y>53</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>actionSave</sender>
+ <signal>triggered()</signal>
+ <receiver>saveButton</receiver>
+ <slot>click()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>-1</x>
+ <y>-1</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>99</x>
+ <y>53</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>actionOpen</sender>
+ <signal>triggered()</signal>
+ <receiver>openButton</receiver>
+ <slot>click()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>-1</x>
+ <y>-1</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>61</x>
+ <y>53</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>actionQuit</sender>
+ <signal>triggered()</signal>
+ <receiver>MainWindow</receiver>
+ <slot>close()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>-1</x>
+ <y>-1</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>411</x>
+ <y>300</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
</ui>
diff --git a/forms/metadatadialog.ui b/forms/metadatadialog.ui
index 070242e..62fca5c 100644
--- a/forms/metadatadialog.ui
+++ b/forms/metadatadialog.ui
@@ -11,19 +11,9 @@
</rect>
</property>
<property name="windowTitle">
- <string>Set metadata</string>
+ <string>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">
@@ -44,6 +34,19 @@
<item row="4" column="1">
<widget class="QLineEdit" name="authorEdit"/>
</item>
+ <item row="5" column="1">
+ <widget class="QDialogButtonBox" name="buttonBox">
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="standardButtons">
+ <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
<resources/>