From 631f37ee26c19d38408ee733ffda24ad283c7921 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 19 Dec 2017 22:47:05 +0100 Subject: 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 --- forms/mainwindow.ui | 80 +++++++++++++++++++++++++++++++++++++++++++++++-- forms/metadatadialog.ui | 25 +++++++++------- 2 files changed, 91 insertions(+), 14 deletions(-) (limited to 'forms') 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 @@ - + @@ -255,11 +255,20 @@ + + true + PDF + + Ctrl+E + + + true + LaTeX TikZ @@ -280,7 +289,7 @@ Ctrl+V - + Save As @@ -327,5 +336,70 @@ - + + + actionNew + triggered() + newButton + click() + + + -1 + -1 + + + 23 + 53 + + + + + actionSave + triggered() + saveButton + click() + + + -1 + -1 + + + 99 + 53 + + + + + actionOpen + triggered() + openButton + click() + + + -1 + -1 + + + 61 + 53 + + + + + actionQuit + triggered() + MainWindow + close() + + + -1 + -1 + + + 411 + 300 + + + + 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 @@ - Set metadata + Metadata - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - @@ -44,6 +34,19 @@ + + + + true + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + -- cgit v1.2.1