Extras Dialog

* code clean up
  * allow user to resize horizontal dimension
  * always open beneath, aligned and adjacent to
    the main dialog
This commit is contained in:
David Freese 2020-10-01 06:36:45 -05:00
parent 181cc8731c
commit 7d86b0f571
3 changed files with 5 additions and 14 deletions

View file

@ -1676,6 +1676,8 @@ Fl_Double_Window *tabs_window()
grpTABS->end();
w->end();
w->resizable(grpTABS);
w->size_range (small_mainW, gph, 0, gph);
return w;
}
@ -1683,10 +1685,6 @@ Fl_Double_Window* Small_rig_window() {
Fl_Double_Window* w = new Fl_Double_Window(small_mainW, small_mainH, _("Flrig"));
w->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE));
// hidden_tabs = new Fl_Group(0,0,small_mainW, small_mainH);
// hidden_tabs->hide();
// hidden_tabs->end();
grp_menu = new Fl_Group(0,0,small_mainW,small_menuH);
small_menu = new Fl_Menu_Bar(0, 0, small_mainW - 64, small_menuH);

View file

@ -18,9 +18,6 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// ----------------------------------------------------------------------------
//unsigned char menu_wide_menu_i18n_done = 0;
Fl_Group *gwide = (Fl_Group *)0;
Fl_Group *grp_row1b1b = (Fl_Group *)0;
@ -64,7 +61,6 @@ Fl_Menu_Item menu_wide_menu[] = {
Fl_Group *wide_main_group(int X, int Y, int W, int H)
{
// int tabs_h = 70;
Fl_Group *g = new Fl_Group(X, Y, WIDE_MAINW, WIDE_MAINH);
g->box(FL_FLAT_BOX);
@ -820,10 +816,6 @@ Fl_Double_Window* Wide_rig_window() {
Fl_Double_Window* w = new Fl_Double_Window(mainW, mainH, _("Flrig"));
w->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE));
// hidden_tabs = new Fl_Group(0,0,mainW, mainH);
// hidden_tabs->hide();
// hidden_tabs->end();
grp_menu = new Fl_Group(0, 0, mainW, menuH);
wide_menu = new Fl_Menu_Bar(0, 0, mainW - 64, menuH);
@ -885,7 +877,6 @@ Fl_Double_Window* Wide_rig_window() {
w->size(WIDE_MAINW, WIDE_MAINH);
// w->size_range(WIDE_MAINW, WIDE_MAINH, 0, 0);
w->size_range(WIDE_MAINW, WIDE_MAINH, 0, WIDE_MAINH);
w->end();

View file

@ -1131,7 +1131,9 @@ void show_controls()
if (tabs_dialog->visible())
tabs_dialog->hide();
else {
tabs_dialog->position(mainwindow->x(), mainwindow->y() + mainwindow->h() + 26);
tabs_dialog->resize(
mainwindow->x(), mainwindow->y() + mainwindow->decorated_h(),
mainwindow->w(), tabs_dialog->h());
tabs_dialog->show();
}
break;