summaryrefslogtreecommitdiff
path: root/fluid/alignment_panel.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-02-05 00:35:31 +0100
committerMatthias Melcher <github@matthiasm.com>2023-02-05 00:35:31 +0100
commit62331e4a388bab03e8945f3ad57ccf35e50d1ed2 (patch)
treef2ac7ddd7751c98b881cb2479e0b04917189ab31 /fluid/alignment_panel.cxx
parentfa9915e1e3d551e6f647e60a36bd01f0e6ed2346 (diff)
FLUID: resizable Command dialogs
Diffstat (limited to 'fluid/alignment_panel.cxx')
-rw-r--r--fluid/alignment_panel.cxx22
1 files changed, 15 insertions, 7 deletions
diff --git a/fluid/alignment_panel.cxx b/fluid/alignment_panel.cxx
index 81b2cc454..0470c1b9a 100644
--- a/fluid/alignment_panel.cxx
+++ b/fluid/alignment_panel.cxx
@@ -410,8 +410,8 @@ static void cb_shell_run_button(Fl_Return_Button*, void*) {
}
Fl_Double_Window* make_shell_window() {
- { shell_window = new Fl_Double_Window(365, 200, "Shell Command");
- { Fl_Group* o = new Fl_Group(0, 0, 365, 165);
+ { shell_window = new Fl_Double_Window(375, 208, "Shell Command");
+ { Fl_Group* o = new Fl_Group(0, 0, 375, 165);
{ shell_command_input = new Fl_Input(82, 14, 277, 20, "Command:");
shell_command_input->tooltip("external shell command");
shell_command_input->labelfont(1);
@@ -458,8 +458,9 @@ ings");
o->end();
} // Fl_Group* o
o->end();
+ Fl_Group::current()->resizable(o);
} // Fl_Group* o
- { Fl_Group* o = new Fl_Group(0, 160, 365, 40);
+ { Fl_Group* o = new Fl_Group(0, 160, 375, 48);
{ Fl_Box* o = new Fl_Box(10, 167, 135, 25);
Fl_Group::current()->resizable(o);
} // Fl_Box* o
@@ -475,16 +476,23 @@ ings");
o->end();
} // Fl_Group* o
shell_window->set_modal();
- shell_window->size_range(365, 200, 365, 200);
+ shell_window->size_range(375, 208, 1024, 208);
shell_window->end();
} // Fl_Double_Window* shell_window
{ shell_run_window = new Fl_Double_Window(555, 430, "Shell Command Output");
{ shell_run_terminal = new Fl_Simple_Terminal(10, 10, 535, 375);
Fl_Group::current()->resizable(shell_run_terminal);
} // Fl_Simple_Terminal* shell_run_terminal
- { shell_run_button = new Fl_Return_Button(468, 395, 77, 25, "Close");
- shell_run_button->callback((Fl_Callback*)cb_shell_run_button);
- } // Fl_Return_Button* shell_run_button
+ { Fl_Group* o = new Fl_Group(10, 395, 535, 25);
+ { Fl_Box* o = new Fl_Box(10, 395, 435, 25);
+ o->hide();
+ Fl_Group::current()->resizable(o);
+ } // Fl_Box* o
+ { shell_run_button = new Fl_Return_Button(445, 395, 100, 25, "Close");
+ shell_run_button->callback((Fl_Callback*)cb_shell_run_button);
+ } // Fl_Return_Button* shell_run_button
+ o->end();
+ } // Fl_Group* o
shell_run_window->end();
} // Fl_Double_Window* shell_run_window
return shell_run_window;