From a7e74749a1c4edb2f8bc34c79e9bd1562de86ee9 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 19 Dec 2017 01:54:28 +0100 Subject: 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 --- forms/mainwindow.ui | 76 +++++++++++++++++++++++++++++++++++++------- forms/metadatadialog.ui | 84 +++++++++++++++++++++++++++++++++++++++++++++++++ forms/painter.ui | 21 +++++++++++++ 3 files changed, 170 insertions(+), 11 deletions(-) create mode 100644 forms/metadatadialog.ui create mode 100644 forms/painter.ui (limited to 'forms') 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 @@ 601 + + + 0 + 0 + + - MainWindow + OrbitingYeti Qt::ToolButtonIconOnly @@ -21,22 +27,22 @@ true - + 0 0 - 824 - 548 + 10000 + 10000 Qt::LeftToRight - - + + QLayout::SetMaximumSize @@ -49,7 +55,8 @@ New Diagram - + + .. @@ -59,7 +66,8 @@ Open - + + .. @@ -69,7 +77,8 @@ Save - + + .. @@ -95,7 +104,15 @@ Refresh View - + + .. + + + + + + + Metadata @@ -105,7 +122,8 @@ New Statement - + + .. @@ -149,6 +167,7 @@ + @@ -174,9 +193,17 @@ + + + View + + + + + @@ -271,6 +298,33 @@ Settings + + + Close + + + + + true + + + true + + + Toolbar + + + + + true + + + true + + + Statusbar + + 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 @@ + + + MetadataDialog + + + + 0 + 0 + 300 + 190 + + + + Set metadata + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + Title + + + + + + + + + + Author + + + + + + + + + + + + buttonBox + accepted() + MetadataDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + MetadataDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + 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 @@ + + + + + Painter + + + + 0 + 0 + 400 + 300 + + + + Form + + + + + -- cgit v1.2.1