FLUID: Initialisation orner in menus: #722
This commit is contained in:
parent
e82e709bcc
commit
982d104adb
@ -93,7 +93,7 @@ static Fd_Layout_Suite static_suite_list[] = {
|
|||||||
{ (char*)"Grid", (char*)"@fd_beaker Grid", { &grid_app, &grid_dlg, &grid_tool }, FD_STORE_INTERNAL }
|
{ (char*)"Grid", (char*)"@fd_beaker Grid", { &grid_app, &grid_dlg, &grid_tool }, FD_STORE_INTERNAL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static Fl_Menu_Item static_main_menu[] = {
|
Fl_Menu_Item main_layout_submenu_[] = {
|
||||||
{ static_suite_list[0].menu_label, 0, select_layout_suite_cb, (void*)0, FL_MENU_RADIO|FL_MENU_VALUE },
|
{ static_suite_list[0].menu_label, 0, select_layout_suite_cb, (void*)0, FL_MENU_RADIO|FL_MENU_VALUE },
|
||||||
{ static_suite_list[1].menu_label, 0, select_layout_suite_cb, (void*)1, FL_MENU_RADIO },
|
{ static_suite_list[1].menu_label, 0, select_layout_suite_cb, (void*)1, FL_MENU_RADIO },
|
||||||
{ NULL }
|
{ NULL }
|
||||||
@ -517,7 +517,7 @@ void fd_file(Fl_Color c) {
|
|||||||
|
|
||||||
|
|
||||||
Fd_Layout_List::Fd_Layout_List()
|
Fd_Layout_List::Fd_Layout_List()
|
||||||
: main_menu_(static_main_menu),
|
: main_menu_(main_layout_submenu_),
|
||||||
choice_menu_(static_choice_menu),
|
choice_menu_(static_choice_menu),
|
||||||
list_(static_suite_list),
|
list_(static_suite_list),
|
||||||
list_size_(2),
|
list_size_(2),
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
struct Fl_Menu_Item;
|
struct Fl_Menu_Item;
|
||||||
|
|
||||||
|
extern Fl_Menu_Item main_layout_submenu_[];
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
FD_STORE_INTERNAL,
|
FD_STORE_INTERNAL,
|
||||||
FD_STORE_USER,
|
FD_STORE_USER,
|
||||||
|
@ -1466,7 +1466,7 @@ Fl_Menu_Item Main_Menu[] = {
|
|||||||
{"&Vertical",0,(Fl_Callback *)align_widget_cb,(void*)41},
|
{"&Vertical",0,(Fl_Callback *)align_widget_cb,(void*)41},
|
||||||
{0},
|
{0},
|
||||||
{"&Grid and Size Settings...",FL_COMMAND+'g',show_grid_cb, NULL, FL_MENU_DIVIDER},
|
{"&Grid and Size Settings...",FL_COMMAND+'g',show_grid_cb, NULL, FL_MENU_DIVIDER},
|
||||||
{"Presets", 0, layout_suite_marker, (void*)g_layout_list.main_menu_, FL_SUBMENU_POINTER },
|
{"Presets", 0, layout_suite_marker, (void*)main_layout_submenu_, FL_SUBMENU_POINTER },
|
||||||
{"Application", 0, select_layout_preset_cb, (void*)0, FL_MENU_RADIO|FL_MENU_VALUE },
|
{"Application", 0, select_layout_preset_cb, (void*)0, FL_MENU_RADIO|FL_MENU_VALUE },
|
||||||
{"Dialog", 0, select_layout_preset_cb, (void*)1, FL_MENU_RADIO },
|
{"Dialog", 0, select_layout_preset_cb, (void*)1, FL_MENU_RADIO },
|
||||||
{"Toolbox", 0, select_layout_preset_cb, (void*)2, FL_MENU_RADIO },
|
{"Toolbox", 0, select_layout_preset_cb, (void*)2, FL_MENU_RADIO },
|
||||||
|
Loading…
Reference in New Issue
Block a user