From fbbc3ba4797e509dc181ce5a091afaa96ea8bede Mon Sep 17 00:00:00 2001 From: Ronan Le Tiec Date: Sat, 11 Apr 2020 11:17:53 +0200 Subject: [PATCH] remove tab nos needed for mvp --- src/app/puzzle/puzzlemainwindow.cpp | 14 ++++++++++++++ src/app/puzzle/puzzlemainwindow.h | 1 + src/app/puzzle/puzzlemainwindow.ui | 26 +++++++++++++++++++------- 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/src/app/puzzle/puzzlemainwindow.cpp b/src/app/puzzle/puzzlemainwindow.cpp index 2fec23266..a647d528d 100644 --- a/src/app/puzzle/puzzlemainwindow.cpp +++ b/src/app/puzzle/puzzlemainwindow.cpp @@ -36,6 +36,9 @@ PuzzleMainWindow::PuzzleMainWindow(QWidget *parent) : ui->setupUi(this); InitMenuBar(); + + InitPropertyTabs(); + } //--------------------------------------------------------------------------------------------------------------------- @@ -75,6 +78,17 @@ void PuzzleMainWindow::InitMenuBar() } +//--------------------------------------------------------------------------------------------------------------------- +void PuzzleMainWindow::InitPropertyTabs() +{ + // for the MVP we don't want the tiles and current layer tabs. + // we remove them. As soon as we need them, delete / update this code + ui->tabWidgetProperties->removeTab(3); // remove layers + ui->tabWidgetProperties->removeTab(2); // remove tiles + +} + + //--------------------------------------------------------------------------------------------------------------------- void PuzzleMainWindow::New() { diff --git a/src/app/puzzle/puzzlemainwindow.h b/src/app/puzzle/puzzlemainwindow.h index 6cf5977ee..73167d585 100644 --- a/src/app/puzzle/puzzlemainwindow.h +++ b/src/app/puzzle/puzzlemainwindow.h @@ -50,6 +50,7 @@ private: Ui::PuzzleMainWindow *ui; void InitMenuBar(); + void InitPropertyTabs(); private slots: void New(); diff --git a/src/app/puzzle/puzzlemainwindow.ui b/src/app/puzzle/puzzlemainwindow.ui index 55b7f1b95..818dc3928 100644 --- a/src/app/puzzle/puzzlemainwindow.ui +++ b/src/app/puzzle/puzzlemainwindow.ui @@ -45,7 +45,7 @@ QTabWidget::Rounded - 0 + 1 @@ -61,6 +61,9 @@ + + Current piece properties + @@ -70,6 +73,9 @@ + + Layout properties + @@ -79,6 +85,9 @@ + + Tiles properties + @@ -88,6 +97,9 @@ + + Layers properties + @@ -171,7 +183,7 @@ - Open + &Open Ctrl+O @@ -179,7 +191,7 @@ - Save + &Save Ctrl+S @@ -187,7 +199,7 @@ - Save As + Save &As Ctrl+Shift+S @@ -195,12 +207,12 @@ - Close Layout + &Close Layout - Import Raw Layout Data + &Import Raw Layout Data @@ -220,7 +232,7 @@ - New + &New Ctrl+N