From 16e2b1c230064788e28930ef27903a5164afa74f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sun, 12 May 2019 22:39:34 +0200 Subject: Reorder frames and resize window. --- plugingui/maintab.cc | 6 +++--- plugingui/maintab.h | 2 +- plugingui/testmain.cc | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'plugingui') diff --git a/plugingui/maintab.cc b/plugingui/maintab.cc index 2320c7f..4c8e4d1 100644 --- a/plugingui/maintab.cc +++ b/plugingui/maintab.cc @@ -107,8 +107,9 @@ MainTab::MainTab(Widget* parent, layout.setResizeChildren(true); add("Drumkit", drumkit_frame, drumkitframe_content, 15, 0); - add("Status", status_frame, statusframe_content, 24, 0); - add("Resampling", resampling_frame, resamplingframe_content, 20, 0); + add("Status", status_frame, statusframe_content, 15, 0); + add("Resampling", resampling_frame, resamplingframe_content, 10, 0); + add("Disk Streaming", diskstreaming_frame, diskstreamingframe_content, 9, 0); add("Velocity Humanizer", humanizer_frame, humanizerframe_content, 10, 1); humanizer_frame.setHelpText(humanizer_tip); @@ -120,7 +121,6 @@ MainTab::MainTab(Widget* parent, add("Visualizer", visualizer_frame, visualizerframe_content, 10, 1); visualizer_frame.setHelpText(visualizer_tip); add("Bleed Control", bleedcontrol_frame, bleedcontrolframe_content, 9, 1); - add("Disk Streaming", diskstreaming_frame, diskstreamingframe_content, 10, 1); humanizer_frame.setOnSwitch(settings.enable_velocity_modifier); bleedcontrol_frame.setOnSwitch(settings.enable_bleed_control); diff --git a/plugingui/maintab.h b/plugingui/maintab.h index f90d23a..ea46f11 100644 --- a/plugingui/maintab.h +++ b/plugingui/maintab.h @@ -66,7 +66,7 @@ private: Image logo{":resources/logo.png"}; - GridLayout layout{this, 2, 59}; + GridLayout layout{this, 2, 49}; FrameWidget drumkit_frame{this, false}; FrameWidget status_frame{this, false}; diff --git a/plugingui/testmain.cc b/plugingui/testmain.cc index 319abf6..b122756 100644 --- a/plugingui/testmain.cc +++ b/plugingui/testmain.cc @@ -57,9 +57,9 @@ int main() // TODO: automatically use drumgizmo_plugin.h size here #ifndef UI_PUGL - parent.resize(750, 733); + parent.resize(750, 613); #else - main_window.resize(750, 733); + main_window.resize(750, 613); #endif while(true) -- cgit v1.2.3