2005-03-19 07:09:32 +03:00
|
|
|
//
|
|
|
|
// Code dialogs for the Fast Light Tool Kit (FLTK).
|
|
|
|
//
|
2023-01-26 17:23:43 +03:00
|
|
|
// Copyright 1998-2023 by Bill Spitzak and others.
|
2005-03-19 07:09:32 +03:00
|
|
|
//
|
2011-07-19 08:49:30 +04:00
|
|
|
// This library is free software. Distribution and use rights are outlined in
|
|
|
|
// the file "COPYING" which should have been included with this file. If this
|
|
|
|
// file is missing or damaged, see the license at:
|
|
|
|
//
|
2020-04-06 21:04:16 +03:00
|
|
|
// https://www.fltk.org/COPYING.php
|
2005-03-19 07:09:32 +03:00
|
|
|
//
|
2020-07-01 19:03:10 +03:00
|
|
|
// Please see the following page on how to report bugs and issues:
|
2005-03-19 07:09:32 +03:00
|
|
|
//
|
2020-07-01 19:03:10 +03:00
|
|
|
// https://www.fltk.org/bugs.php
|
2005-03-19 07:09:32 +03:00
|
|
|
//
|
|
|
|
|
2016-01-30 03:56:42 +03:00
|
|
|
// generated by Fast Light User Interface Designer (fluid) version 1.0400
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1998-12-06 18:09:22 +03:00
|
|
|
#include "function_panel.h"
|
2021-12-08 17:52:15 +03:00
|
|
|
#include "fluid.h"
|
2023-02-15 17:24:25 +03:00
|
|
|
#include "custom_widgets.h"
|
2021-12-08 17:52:15 +03:00
|
|
|
#include "pixmaps.h"
|
|
|
|
#include "factory.h"
|
2002-10-31 21:49:05 +03:00
|
|
|
#include "Fl_Type.h"
|
2021-12-08 17:52:15 +03:00
|
|
|
#include "widget_browser.h"
|
2005-03-20 07:00:48 +03:00
|
|
|
#include "undo.h"
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2015-04-02 17:08:18 +03:00
|
|
|
/**
|
2015-04-03 22:39:45 +03:00
|
|
|
Allow widget navigation on text fields with Tab.
|
2015-04-02 17:08:18 +03:00
|
|
|
*/
|
|
|
|
static int use_tab_navigation(int, Fl_Text_Editor*) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2005-05-30 10:40:25 +04:00
|
|
|
Fl_Double_Window *function_panel=(Fl_Double_Window *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2008-01-05 00:45:49 +03:00
|
|
|
Fl_Choice *f_public_member_choice=(Fl_Choice *)0;
|
|
|
|
|
|
|
|
Fl_Menu_Item menu_f_public_member_choice[] = {
|
2015-07-09 05:09:33 +03:00
|
|
|
{"private", 0, 0, (void*)(0), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
|
|
|
{"public", 0, 0, (void*)(1), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
|
|
|
{"protected", 0, 0, (void*)(2), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
2008-01-05 00:45:49 +03:00
|
|
|
{0,0,0,0,0,0,0,0,0}
|
|
|
|
};
|
|
|
|
|
|
|
|
Fl_Choice *f_public_choice=(Fl_Choice *)0;
|
|
|
|
|
|
|
|
Fl_Menu_Item menu_f_public_choice[] = {
|
2021-12-09 20:25:43 +03:00
|
|
|
{"static", 0, 0, (void*)(0), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
2015-07-09 05:09:33 +03:00
|
|
|
{"global", 0, 0, (void*)(1), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
2022-02-13 02:54:44 +03:00
|
|
|
{"local", 0, 0, (void*)(2), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
2008-01-05 00:45:49 +03:00
|
|
|
{0,0,0,0,0,0,0,0,0}
|
|
|
|
};
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-08-05 13:01:25 +04:00
|
|
|
Fl_Light_Button *f_c_button=(Fl_Light_Button *)0;
|
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *f_name_input=(Fl_Input *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *f_return_type_input=(Fl_Input *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2015-04-02 17:08:18 +03:00
|
|
|
Fl_Text_Editor *f_comment_input=(Fl_Text_Editor *)0;
|
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Return_Button *f_panel_ok=(Fl_Return_Button *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Button *f_panel_cancel=(Fl_Button *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
2005-05-30 10:40:25 +04:00
|
|
|
Fl_Double_Window* make_function_panel() {
|
2008-09-18 02:43:15 +04:00
|
|
|
{ function_panel = new Fl_Double_Window(343, 232, "Function/Method Properties");
|
2005-05-29 01:00:11 +04:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 10, 270, 20);
|
2008-01-05 00:45:49 +03:00
|
|
|
{ f_public_member_choice = new Fl_Choice(10, 10, 75, 20);
|
|
|
|
f_public_member_choice->tooltip("Change member access attribute.");
|
|
|
|
f_public_member_choice->down_box(FL_BORDER_BOX);
|
|
|
|
f_public_member_choice->labelsize(11);
|
|
|
|
f_public_member_choice->textsize(11);
|
|
|
|
f_public_member_choice->when(FL_WHEN_CHANGED);
|
|
|
|
f_public_member_choice->menu(menu_f_public_member_choice);
|
|
|
|
} // Fl_Choice* f_public_member_choice
|
|
|
|
{ f_public_choice = new Fl_Choice(10, 10, 75, 20);
|
|
|
|
f_public_choice->tooltip("Change widget accessibility.");
|
|
|
|
f_public_choice->down_box(FL_BORDER_BOX);
|
|
|
|
f_public_choice->labelsize(11);
|
|
|
|
f_public_choice->textsize(11);
|
|
|
|
f_public_choice->when(FL_WHEN_CHANGED);
|
|
|
|
f_public_choice->menu(menu_f_public_choice);
|
|
|
|
} // Fl_Choice* f_public_choice
|
2013-10-26 01:16:04 +04:00
|
|
|
{ f_c_button = new Fl_Light_Button(95, 10, 120, 20, "C declaration");
|
2006-09-17 22:31:35 +04:00
|
|
|
f_c_button->tooltip("Declare with a C interface instead of C++.");
|
|
|
|
f_c_button->labelsize(11);
|
|
|
|
} // Fl_Light_Button* f_c_button
|
2008-01-05 00:45:49 +03:00
|
|
|
{ Fl_Box* o = new Fl_Box(235, 10, 45, 20);
|
2005-05-29 01:00:11 +04:00
|
|
|
Fl_Group::current()->resizable(o);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Box* o
|
2005-05-29 01:00:11 +04:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
2008-09-18 02:43:15 +04:00
|
|
|
{ f_name_input = new Fl_Input(10, 50, 320, 20, "Name(args): (blank for main())");
|
2006-09-17 22:31:35 +04:00
|
|
|
f_name_input->tooltip("The name of the function or method.");
|
|
|
|
f_name_input->labelfont(1);
|
|
|
|
f_name_input->labelsize(11);
|
|
|
|
f_name_input->textfont(4);
|
|
|
|
f_name_input->textsize(11);
|
2008-09-18 02:43:15 +04:00
|
|
|
f_name_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
2006-09-17 22:31:35 +04:00
|
|
|
f_name_input->when(FL_WHEN_NEVER);
|
|
|
|
} // Fl_Input* f_name_input
|
2008-09-18 02:43:15 +04:00
|
|
|
{ f_return_type_input = new Fl_Input(10, 90, 320, 20, "Return Type: (blank to return outermost widget)");
|
2006-09-17 22:31:35 +04:00
|
|
|
f_return_type_input->tooltip("The return type of the function or method.");
|
|
|
|
f_return_type_input->labelfont(1);
|
|
|
|
f_return_type_input->labelsize(11);
|
|
|
|
f_return_type_input->textfont(4);
|
|
|
|
f_return_type_input->textsize(11);
|
2008-09-18 02:43:15 +04:00
|
|
|
f_return_type_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
2006-09-17 22:31:35 +04:00
|
|
|
f_return_type_input->when(FL_WHEN_NEVER);
|
|
|
|
} // Fl_Input* f_return_type_input
|
2015-04-02 17:08:18 +03:00
|
|
|
{ f_comment_input = new Fl_Text_Editor(10, 125, 320, 65, "Comment:");
|
|
|
|
f_comment_input->tooltip("Function comment in Doxygen format");
|
|
|
|
f_comment_input->box(FL_DOWN_BOX);
|
|
|
|
f_comment_input->labelfont(1);
|
|
|
|
f_comment_input->labelsize(11);
|
|
|
|
f_comment_input->textfont(4);
|
|
|
|
f_comment_input->textsize(11);
|
|
|
|
f_comment_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
|
|
|
Fl_Group::current()->resizable(f_comment_input);
|
|
|
|
f_comment_input->buffer(new Fl_Text_Buffer());
|
|
|
|
f_comment_input->add_key_binding(FL_Tab, 0, use_tab_navigation);
|
|
|
|
} // Fl_Text_Editor* f_comment_input
|
2008-09-18 02:43:15 +04:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 200, 320, 20);
|
|
|
|
{ f_panel_ok = new Fl_Return_Button(220, 200, 50, 20, "OK");
|
2006-09-17 22:31:35 +04:00
|
|
|
f_panel_ok->tooltip("Apply the changes.");
|
|
|
|
f_panel_ok->labelsize(11);
|
|
|
|
f_panel_ok->window()->hotspot(f_panel_ok);
|
|
|
|
} // Fl_Return_Button* f_panel_ok
|
2008-09-18 02:43:15 +04:00
|
|
|
{ f_panel_cancel = new Fl_Button(280, 200, 50, 20, "Cancel");
|
2006-09-17 22:31:35 +04:00
|
|
|
f_panel_cancel->tooltip("Cancel the changes.");
|
|
|
|
f_panel_cancel->labelsize(11);
|
|
|
|
} // Fl_Button* f_panel_cancel
|
2008-09-18 02:43:15 +04:00
|
|
|
{ Fl_Box* o = new Fl_Box(10, 200, 205, 20);
|
2005-05-29 01:00:11 +04:00
|
|
|
Fl_Group::current()->resizable(o);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Box* o
|
2005-05-29 01:00:11 +04:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
|
|
|
function_panel->set_modal();
|
|
|
|
function_panel->end();
|
|
|
|
} // Fl_Double_Window* function_panel
|
|
|
|
return function_panel;
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
|
|
|
|
2005-05-30 10:40:25 +04:00
|
|
|
Fl_Double_Window *code_panel=(Fl_Double_Window *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
2013-10-26 02:03:47 +04:00
|
|
|
static void cb_code_panel(Fl_Double_Window*, void*) {
|
2020-07-01 19:03:10 +03:00
|
|
|
if (Fl::event()==FL_SHORTCUT && Fl::event_key()==FL_Escape)
|
2013-10-26 02:03:47 +04:00
|
|
|
return; // ignore Escape
|
2021-12-11 05:33:25 +03:00
|
|
|
code_panel->hide(); // otherwise hide..;
|
2013-10-26 02:03:47 +04:00
|
|
|
}
|
|
|
|
|
2005-03-23 06:13:31 +03:00
|
|
|
CodeEditor *code_input=(CodeEditor *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Return_Button *code_panel_ok=(Fl_Return_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Button *code_panel_cancel=(Fl_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
2005-05-30 10:40:25 +04:00
|
|
|
Fl_Double_Window* make_code_panel() {
|
|
|
|
{ Fl_Double_Window* o = code_panel = new Fl_Double_Window(540, 180, "Code Properties");
|
2006-09-17 22:31:35 +04:00
|
|
|
code_panel->labelsize(11);
|
2013-10-26 02:03:47 +04:00
|
|
|
code_panel->callback((Fl_Callback*)cb_code_panel);
|
2005-05-30 02:28:13 +04:00
|
|
|
{ CodeEditor* o = code_input = new CodeEditor(10, 10, 520, 130);
|
2006-09-17 22:31:35 +04:00
|
|
|
code_input->box(FL_DOWN_BOX);
|
|
|
|
code_input->color(FL_BACKGROUND2_COLOR);
|
|
|
|
code_input->selection_color(FL_SELECTION_COLOR);
|
|
|
|
code_input->labeltype(FL_NORMAL_LABEL);
|
|
|
|
code_input->labelfont(0);
|
|
|
|
code_input->labelsize(11);
|
|
|
|
code_input->labelcolor(FL_FOREGROUND_COLOR);
|
|
|
|
code_input->textfont(4);
|
|
|
|
code_input->textsize(11);
|
2008-09-18 02:43:15 +04:00
|
|
|
code_input->align(Fl_Align(FL_ALIGN_TOP));
|
2006-09-17 22:31:35 +04:00
|
|
|
code_input->when(FL_WHEN_RELEASE);
|
|
|
|
Fl_Group::current()->resizable(code_input);
|
2005-03-19 07:09:32 +03:00
|
|
|
o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // CodeEditor* code_input
|
2005-05-30 02:28:13 +04:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 150, 520, 20);
|
2005-03-19 07:09:32 +03:00
|
|
|
o->labelsize(11);
|
2006-09-17 22:31:35 +04:00
|
|
|
{ code_panel_ok = new Fl_Return_Button(400, 150, 60, 20, "OK");
|
|
|
|
code_panel_ok->labelsize(11);
|
|
|
|
code_panel_ok->window()->hotspot(code_panel_ok);
|
|
|
|
} // Fl_Return_Button* code_panel_ok
|
|
|
|
{ code_panel_cancel = new Fl_Button(470, 150, 60, 20, "Cancel");
|
|
|
|
code_panel_cancel->labelsize(11);
|
|
|
|
} // Fl_Button* code_panel_cancel
|
2005-05-30 02:28:13 +04:00
|
|
|
{ Fl_Box* o = new Fl_Box(10, 150, 380, 20);
|
2005-03-19 07:09:32 +03:00
|
|
|
o->labelsize(11);
|
2002-11-03 03:01:21 +03:00
|
|
|
Fl_Group::current()->resizable(o);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Box* o
|
2002-11-03 03:01:21 +03:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
|
|
|
code_panel->set_modal();
|
2023-07-17 13:56:23 +03:00
|
|
|
o->size_range(200, 150);
|
2006-09-17 22:31:35 +04:00
|
|
|
code_panel->end();
|
|
|
|
} // Fl_Double_Window* code_panel
|
2016-08-30 09:00:57 +03:00
|
|
|
// Enable line numbers
|
|
|
|
code_input->linenumber_width(60);
|
|
|
|
code_input->linenumber_size(code_input->Fl_Text_Display::textsize());
|
2006-09-17 22:31:35 +04:00
|
|
|
return code_panel;
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
|
|
|
|
2005-05-30 10:40:25 +04:00
|
|
|
Fl_Double_Window *codeblock_panel=(Fl_Double_Window *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *code_before_input=(Fl_Input *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *code_after_input=(Fl_Input *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Return_Button *codeblock_panel_ok=(Fl_Return_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Button *codeblock_panel_cancel=(Fl_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
2005-05-30 10:40:25 +04:00
|
|
|
Fl_Double_Window* make_codeblock_panel() {
|
|
|
|
{ Fl_Double_Window* o = codeblock_panel = new Fl_Double_Window(300, 115, "Code Block Properties");
|
2006-09-17 22:31:35 +04:00
|
|
|
codeblock_panel->labelsize(11);
|
|
|
|
{ code_before_input = new Fl_Input(10, 15, 280, 20, "Conditional code block");
|
|
|
|
code_before_input->tooltip("#ifdef or similar conditional code block.");
|
|
|
|
code_before_input->labelsize(11);
|
|
|
|
code_before_input->textfont(4);
|
|
|
|
code_before_input->textsize(11);
|
2008-09-18 02:43:15 +04:00
|
|
|
code_before_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
2006-09-17 22:31:35 +04:00
|
|
|
code_before_input->when(FL_WHEN_NEVER);
|
|
|
|
} // Fl_Input* code_before_input
|
|
|
|
{ code_after_input = new Fl_Input(10, 55, 280, 20, "\"{...child code...}\" is inserted here");
|
|
|
|
code_after_input->tooltip("#endif or similar conditional code block.");
|
|
|
|
code_after_input->labelsize(11);
|
|
|
|
code_after_input->textfont(4);
|
|
|
|
code_after_input->textsize(11);
|
2008-09-18 02:43:15 +04:00
|
|
|
code_after_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
2006-09-17 22:31:35 +04:00
|
|
|
code_after_input->when(FL_WHEN_NEVER);
|
|
|
|
Fl_Group::current()->resizable(code_after_input);
|
|
|
|
} // Fl_Input* code_after_input
|
2005-05-30 02:28:13 +04:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 85, 280, 20);
|
2006-09-17 22:31:35 +04:00
|
|
|
{ codeblock_panel_ok = new Fl_Return_Button(160, 85, 60, 20, "OK");
|
|
|
|
codeblock_panel_ok->labelsize(11);
|
|
|
|
codeblock_panel_ok->window()->hotspot(codeblock_panel_ok);
|
|
|
|
} // Fl_Return_Button* codeblock_panel_ok
|
|
|
|
{ codeblock_panel_cancel = new Fl_Button(230, 85, 60, 20, "Cancel");
|
|
|
|
codeblock_panel_cancel->shortcut(0xff1b);
|
|
|
|
codeblock_panel_cancel->labelsize(11);
|
|
|
|
} // Fl_Button* codeblock_panel_cancel
|
2005-05-30 02:28:13 +04:00
|
|
|
{ Fl_Box* o = new Fl_Box(10, 85, 140, 20);
|
|
|
|
Fl_Group::current()->resizable(o);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Box* o
|
2005-05-30 02:28:13 +04:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
|
|
|
codeblock_panel->set_modal();
|
2023-07-17 13:56:23 +03:00
|
|
|
o->size_range(o->w(), o->h(), Fl::w(), o->h());
|
2006-09-17 22:31:35 +04:00
|
|
|
codeblock_panel->end();
|
|
|
|
} // Fl_Double_Window* codeblock_panel
|
|
|
|
return codeblock_panel;
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
|
|
|
|
2005-05-30 10:40:25 +04:00
|
|
|
Fl_Double_Window *declblock_panel=(Fl_Double_Window *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
2008-01-05 00:45:49 +03:00
|
|
|
Fl_Choice *declblock_public_choice=(Fl_Choice *)0;
|
|
|
|
|
|
|
|
Fl_Menu_Item menu_declblock_public_choice[] = {
|
2015-07-09 05:09:33 +03:00
|
|
|
{"in source code only", 0, 0, (void*)(0), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
|
|
|
{"in header and source", 0, 0, (void*)(1), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
2008-01-05 00:45:49 +03:00
|
|
|
{0,0,0,0,0,0,0,0,0}
|
|
|
|
};
|
|
|
|
|
|
|
|
Fl_Light_Button *declblock_public_button_x=(Fl_Light_Button *)0;
|
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *decl_before_input=(Fl_Input *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *decl_after_input=(Fl_Input *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Return_Button *declblock_panel_ok=(Fl_Return_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Button *declblock_panel_cancel=(Fl_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
2005-05-30 10:40:25 +04:00
|
|
|
Fl_Double_Window* make_declblock_panel() {
|
|
|
|
{ Fl_Double_Window* o = declblock_panel = new Fl_Double_Window(300, 135, "Declaration Block Properties");
|
2006-09-17 22:31:35 +04:00
|
|
|
declblock_panel->labelsize(11);
|
2008-01-05 00:45:49 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 10, 280, 20);
|
|
|
|
{ declblock_public_choice = new Fl_Choice(10, 10, 140, 20);
|
|
|
|
declblock_public_choice->tooltip("Change widget accessibility.");
|
|
|
|
declblock_public_choice->down_box(FL_BORDER_BOX);
|
|
|
|
declblock_public_choice->labelsize(11);
|
|
|
|
declblock_public_choice->textsize(11);
|
|
|
|
declblock_public_choice->when(FL_WHEN_NEVER);
|
|
|
|
declblock_public_choice->menu(menu_declblock_public_choice);
|
|
|
|
} // Fl_Choice* declblock_public_choice
|
|
|
|
{ declblock_public_button_x = new Fl_Light_Button(10, 10, 60, 20, "public");
|
|
|
|
declblock_public_button_x->tooltip("Make the declaration publicly accessible.");
|
|
|
|
declblock_public_button_x->labelsize(11);
|
|
|
|
declblock_public_button_x->when(FL_WHEN_NEVER);
|
|
|
|
declblock_public_button_x->hide();
|
|
|
|
} // Fl_Light_Button* declblock_public_button_x
|
|
|
|
{ Fl_Box* o = new Fl_Box(155, 10, 135, 20);
|
|
|
|
Fl_Group::current()->resizable(o);
|
|
|
|
} // Fl_Box* o
|
|
|
|
o->end();
|
|
|
|
} // Fl_Group* o
|
2006-09-17 22:31:35 +04:00
|
|
|
{ decl_before_input = new Fl_Input(10, 40, 280, 20);
|
|
|
|
decl_before_input->tooltip("#ifdef or similar conditional declaration block.");
|
|
|
|
decl_before_input->labelsize(11);
|
|
|
|
decl_before_input->textfont(4);
|
|
|
|
decl_before_input->textsize(11);
|
2008-09-18 02:43:15 +04:00
|
|
|
decl_before_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
2006-09-17 22:31:35 +04:00
|
|
|
decl_before_input->when(FL_WHEN_NEVER);
|
|
|
|
Fl_Group::current()->resizable(decl_before_input);
|
|
|
|
} // Fl_Input* decl_before_input
|
|
|
|
{ decl_after_input = new Fl_Input(10, 75, 280, 20, "\"\\n...child code...\\n\" is inserted here");
|
|
|
|
decl_after_input->tooltip("#endif or similar declaration code block.");
|
|
|
|
decl_after_input->labelsize(11);
|
|
|
|
decl_after_input->textfont(4);
|
|
|
|
decl_after_input->textsize(11);
|
2008-09-18 02:43:15 +04:00
|
|
|
decl_after_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
2006-09-17 22:31:35 +04:00
|
|
|
decl_after_input->when(FL_WHEN_NEVER);
|
|
|
|
} // Fl_Input* decl_after_input
|
2005-05-30 02:28:13 +04:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 105, 280, 20);
|
2006-09-17 22:31:35 +04:00
|
|
|
{ declblock_panel_ok = new Fl_Return_Button(160, 105, 60, 20, "OK");
|
|
|
|
declblock_panel_ok->labelsize(11);
|
|
|
|
declblock_panel_ok->window()->hotspot(declblock_panel_ok);
|
|
|
|
} // Fl_Return_Button* declblock_panel_ok
|
|
|
|
{ declblock_panel_cancel = new Fl_Button(230, 105, 60, 20, "Cancel");
|
|
|
|
declblock_panel_cancel->shortcut(0xff1b);
|
|
|
|
declblock_panel_cancel->labelsize(11);
|
|
|
|
} // Fl_Button* declblock_panel_cancel
|
2005-05-30 02:28:13 +04:00
|
|
|
{ Fl_Box* o = new Fl_Box(10, 105, 140, 20);
|
|
|
|
Fl_Group::current()->resizable(o);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Box* o
|
2005-05-30 02:28:13 +04:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
|
|
|
declblock_panel->set_modal();
|
2023-07-17 13:56:23 +03:00
|
|
|
o->size_range(o->w(), o->h(), Fl::w(), o->h());
|
2006-09-17 22:31:35 +04:00
|
|
|
declblock_panel->end();
|
|
|
|
} // Fl_Double_Window* declblock_panel
|
|
|
|
return declblock_panel;
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
|
|
|
|
2005-05-30 10:40:25 +04:00
|
|
|
Fl_Double_Window *decl_panel=(Fl_Double_Window *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
2008-01-05 00:45:49 +03:00
|
|
|
Fl_Choice *decl_choice=(Fl_Choice *)0;
|
|
|
|
|
|
|
|
Fl_Menu_Item menu_decl_choice[] = {
|
2015-07-09 05:09:33 +03:00
|
|
|
{"in source file only", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
|
|
|
{"in header file only", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
|
|
|
{"\"static\" in source file", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
|
|
|
{"in source and \"extern\" in header", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
2008-01-05 00:45:49 +03:00
|
|
|
{0,0,0,0,0,0,0,0,0}
|
|
|
|
};
|
|
|
|
|
|
|
|
Fl_Choice *decl_class_choice=(Fl_Choice *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
2008-01-05 00:45:49 +03:00
|
|
|
Fl_Menu_Item menu_decl_class_choice[] = {
|
2015-07-09 05:09:33 +03:00
|
|
|
{"private", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
|
|
|
{"public", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
|
|
|
{"protected", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
2008-01-05 00:45:49 +03:00
|
|
|
{0,0,0,0,0,0,0,0,0}
|
|
|
|
};
|
2006-05-18 18:40:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *decl_input=(Fl_Input *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
2015-04-02 17:08:18 +03:00
|
|
|
Fl_Text_Editor *decl_comment_input=(Fl_Text_Editor *)0;
|
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Return_Button *decl_panel_ok=(Fl_Return_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Button *decl_panel_cancel=(Fl_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
2005-05-30 10:40:25 +04:00
|
|
|
Fl_Double_Window* make_decl_panel() {
|
2008-09-18 02:43:15 +04:00
|
|
|
{ decl_panel = new Fl_Double_Window(343, 237, "Declaration Properties");
|
|
|
|
decl_panel->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE));
|
2005-05-30 02:28:13 +04:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 10, 270, 20);
|
2008-01-05 00:45:49 +03:00
|
|
|
{ Fl_Box* o = new Fl_Box(200, 10, 80, 20);
|
2005-05-30 02:28:13 +04:00
|
|
|
Fl_Group::current()->resizable(o);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Box* o
|
2008-01-05 00:45:49 +03:00
|
|
|
{ decl_choice = new Fl_Choice(10, 10, 185, 20);
|
|
|
|
decl_choice->down_box(FL_BORDER_BOX);
|
|
|
|
decl_choice->labelsize(11);
|
|
|
|
decl_choice->textsize(11);
|
|
|
|
decl_choice->menu(menu_decl_choice);
|
|
|
|
} // Fl_Choice* decl_choice
|
|
|
|
{ decl_class_choice = new Fl_Choice(10, 10, 75, 20);
|
|
|
|
decl_class_choice->down_box(FL_BORDER_BOX);
|
|
|
|
decl_class_choice->labelsize(11);
|
|
|
|
decl_class_choice->textsize(11);
|
|
|
|
decl_class_choice->menu(menu_decl_class_choice);
|
|
|
|
} // Fl_Choice* decl_class_choice
|
2005-05-30 02:28:13 +04:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
2008-09-18 02:43:15 +04:00
|
|
|
{ decl_input = new Fl_Input(10, 40, 320, 20, "This can be any declaration, like \"int x;\", an external symbol like \"exter\
|
|
|
|
n int foo();\", a #directive like \"#include <foo.h>\", a comment like \"//foo\
|
|
|
|
\" or \"/*foo*/\", or typedef like \"typedef char byte;\" or \"using std::list\
|
|
|
|
;\".");
|
2006-09-17 22:31:35 +04:00
|
|
|
decl_input->tooltip("Declaration text.");
|
|
|
|
decl_input->labelsize(11);
|
|
|
|
decl_input->textfont(4);
|
|
|
|
decl_input->textsize(11);
|
2008-09-18 02:43:15 +04:00
|
|
|
decl_input->align(Fl_Align(134));
|
2006-09-17 22:31:35 +04:00
|
|
|
decl_input->when(FL_WHEN_NEVER);
|
|
|
|
} // Fl_Input* decl_input
|
2015-04-02 17:08:18 +03:00
|
|
|
{ decl_comment_input = new Fl_Text_Editor(10, 130, 320, 65, "Comment:");
|
|
|
|
decl_comment_input->tooltip("Declaration comment in Doxygen format");
|
|
|
|
decl_comment_input->box(FL_DOWN_BOX);
|
|
|
|
decl_comment_input->labelfont(1);
|
|
|
|
decl_comment_input->labelsize(11);
|
|
|
|
decl_comment_input->textfont(4);
|
|
|
|
decl_comment_input->textsize(11);
|
|
|
|
decl_comment_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
|
|
|
Fl_Group::current()->resizable(decl_comment_input);
|
|
|
|
decl_comment_input->buffer(new Fl_Text_Buffer());
|
|
|
|
decl_comment_input->add_key_binding(FL_Tab, 0, use_tab_navigation);
|
|
|
|
} // Fl_Text_Editor* decl_comment_input
|
2008-09-18 02:43:15 +04:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 205, 320, 20);
|
|
|
|
{ decl_panel_ok = new Fl_Return_Button(200, 205, 60, 20, "OK");
|
2006-09-17 22:31:35 +04:00
|
|
|
decl_panel_ok->labelsize(11);
|
|
|
|
decl_panel_ok->window()->hotspot(decl_panel_ok);
|
|
|
|
} // Fl_Return_Button* decl_panel_ok
|
2008-09-18 02:43:15 +04:00
|
|
|
{ decl_panel_cancel = new Fl_Button(270, 205, 60, 20, "Cancel");
|
2006-09-17 22:31:35 +04:00
|
|
|
decl_panel_cancel->shortcut(0xff1b);
|
|
|
|
decl_panel_cancel->labelsize(11);
|
|
|
|
} // Fl_Button* decl_panel_cancel
|
2008-09-18 02:43:15 +04:00
|
|
|
{ Fl_Box* o = new Fl_Box(10, 205, 185, 20);
|
2005-05-30 02:28:13 +04:00
|
|
|
Fl_Group::current()->resizable(o);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Box* o
|
2005-05-30 02:28:13 +04:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
2008-09-18 02:43:15 +04:00
|
|
|
decl_panel->size_range(343, 237);
|
2006-09-17 22:31:35 +04:00
|
|
|
decl_panel->end();
|
|
|
|
} // Fl_Double_Window* decl_panel
|
|
|
|
return decl_panel;
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
|
|
|
|
2010-02-15 19:43:51 +03:00
|
|
|
Fl_Double_Window *data_panel=(Fl_Double_Window *)0;
|
|
|
|
|
|
|
|
Fl_Choice *data_choice=(Fl_Choice *)0;
|
|
|
|
|
|
|
|
Fl_Menu_Item menu_data_choice[] = {
|
2015-07-09 05:09:33 +03:00
|
|
|
{"in source file only", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
|
|
|
{"in header file only", 0, 0, 0, 16, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
|
|
|
{"\"static\" in source file", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
|
|
|
{"in source and \"extern\" in header", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
2010-02-15 19:43:51 +03:00
|
|
|
{0,0,0,0,0,0,0,0,0}
|
|
|
|
};
|
|
|
|
|
|
|
|
Fl_Choice *data_class_choice=(Fl_Choice *)0;
|
|
|
|
|
|
|
|
Fl_Menu_Item menu_data_class_choice[] = {
|
2015-07-09 05:09:33 +03:00
|
|
|
{"private", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
|
|
|
{"public", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
|
|
|
{"protected", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0},
|
2010-02-15 19:43:51 +03:00
|
|
|
{0,0,0,0,0,0,0,0,0}
|
|
|
|
};
|
|
|
|
|
2018-08-25 18:17:16 +03:00
|
|
|
Fl_Check_Button *data_mode=(Fl_Check_Button *)0;
|
|
|
|
|
2010-02-15 19:43:51 +03:00
|
|
|
Fl_Input *data_input=(Fl_Input *)0;
|
|
|
|
|
|
|
|
Fl_Input *data_filename=(Fl_Input *)0;
|
|
|
|
|
|
|
|
Fl_Button *data_filebrowser=(Fl_Button *)0;
|
|
|
|
|
2015-04-02 17:08:18 +03:00
|
|
|
Fl_Text_Editor *data_comment_input=(Fl_Text_Editor *)0;
|
|
|
|
|
2010-02-15 19:43:51 +03:00
|
|
|
Fl_Return_Button *data_panel_ok=(Fl_Return_Button *)0;
|
|
|
|
|
|
|
|
Fl_Button *data_panel_cancel=(Fl_Button *)0;
|
|
|
|
|
|
|
|
Fl_Double_Window* make_data_panel() {
|
2018-08-25 18:17:16 +03:00
|
|
|
{ data_panel = new Fl_Double_Window(343, 237, "Inline Data Properties");
|
2010-02-15 19:43:51 +03:00
|
|
|
data_panel->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE));
|
2018-08-25 18:17:16 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 10, 320, 20);
|
|
|
|
{ Fl_Box* o = new Fl_Box(288, 10, 42, 20);
|
2010-02-15 19:43:51 +03:00
|
|
|
Fl_Group::current()->resizable(o);
|
|
|
|
} // Fl_Box* o
|
|
|
|
{ data_choice = new Fl_Choice(10, 10, 185, 20);
|
|
|
|
data_choice->down_box(FL_BORDER_BOX);
|
|
|
|
data_choice->labelsize(11);
|
|
|
|
data_choice->textsize(11);
|
|
|
|
data_choice->menu(menu_data_choice);
|
|
|
|
} // Fl_Choice* data_choice
|
|
|
|
{ data_class_choice = new Fl_Choice(10, 10, 75, 20);
|
|
|
|
data_class_choice->down_box(FL_BORDER_BOX);
|
|
|
|
data_class_choice->labelsize(11);
|
|
|
|
data_class_choice->textsize(11);
|
|
|
|
data_class_choice->menu(menu_data_class_choice);
|
|
|
|
} // Fl_Choice* data_class_choice
|
2018-08-25 18:17:16 +03:00
|
|
|
{ data_mode = new Fl_Check_Button(200, 10, 78, 20, "text mode");
|
2018-08-30 13:41:16 +03:00
|
|
|
data_mode->tooltip("When text mode is selected, the returned type is \"const char*\" and a traili\
|
|
|
|
ng NUL will be appended to the data.");
|
2018-08-25 18:17:16 +03:00
|
|
|
data_mode->down_box(FL_DOWN_BOX);
|
|
|
|
data_mode->labelsize(11);
|
|
|
|
} // Fl_Check_Button* data_mode
|
2010-02-15 19:43:51 +03:00
|
|
|
o->end();
|
|
|
|
} // Fl_Group* o
|
|
|
|
{ data_input = new Fl_Input(10, 52, 320, 20, "Variable Name:");
|
2018-08-25 18:17:16 +03:00
|
|
|
data_input->tooltip("Inline Data variables are declared \"const unsigned char []\" in binary mode \
|
2018-08-25 18:38:25 +03:00
|
|
|
and \"const char*\" in text mode.");
|
2010-02-15 19:43:51 +03:00
|
|
|
data_input->labelfont(1);
|
|
|
|
data_input->labelsize(11);
|
|
|
|
data_input->textfont(4);
|
|
|
|
data_input->textsize(11);
|
|
|
|
data_input->align(Fl_Align(133));
|
|
|
|
data_input->when(FL_WHEN_NEVER);
|
|
|
|
} // Fl_Input* data_input
|
|
|
|
{ data_filename = new Fl_Input(10, 90, 280, 20, "Filename:");
|
2018-08-25 18:17:16 +03:00
|
|
|
data_filename->tooltip("Name and path of file that will be inlined.");
|
2010-02-15 19:43:51 +03:00
|
|
|
data_filename->labelfont(1);
|
|
|
|
data_filename->labelsize(11);
|
|
|
|
data_filename->textfont(4);
|
|
|
|
data_filename->textsize(11);
|
|
|
|
data_filename->align(Fl_Align(133));
|
|
|
|
data_filename->when(FL_WHEN_NEVER);
|
|
|
|
} // Fl_Input* data_filename
|
|
|
|
{ data_filebrowser = new Fl_Button(290, 90, 40, 20, "@fileopen");
|
|
|
|
data_filebrowser->labelcolor((Fl_Color)134);
|
|
|
|
} // Fl_Button* data_filebrowser
|
2015-04-02 17:08:18 +03:00
|
|
|
{ data_comment_input = new Fl_Text_Editor(10, 130, 320, 65, "Comment:");
|
|
|
|
data_comment_input->tooltip("Declaration comment in Doxygen format");
|
|
|
|
data_comment_input->box(FL_DOWN_BOX);
|
|
|
|
data_comment_input->labelfont(1);
|
|
|
|
data_comment_input->labelsize(11);
|
|
|
|
data_comment_input->textfont(4);
|
|
|
|
data_comment_input->textsize(11);
|
|
|
|
data_comment_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
|
|
|
Fl_Group::current()->resizable(data_comment_input);
|
|
|
|
data_comment_input->buffer(new Fl_Text_Buffer());
|
|
|
|
data_comment_input->add_key_binding(FL_Tab, 0, use_tab_navigation);
|
|
|
|
} // Fl_Text_Editor* data_comment_input
|
2010-02-15 19:43:51 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 205, 320, 20);
|
|
|
|
{ data_panel_ok = new Fl_Return_Button(200, 205, 60, 20, "OK");
|
|
|
|
data_panel_ok->labelsize(11);
|
|
|
|
data_panel_ok->window()->hotspot(data_panel_ok);
|
|
|
|
} // Fl_Return_Button* data_panel_ok
|
|
|
|
{ data_panel_cancel = new Fl_Button(270, 205, 60, 20, "Cancel");
|
|
|
|
data_panel_cancel->shortcut(0xff1b);
|
|
|
|
data_panel_cancel->labelsize(11);
|
|
|
|
} // Fl_Button* data_panel_cancel
|
|
|
|
{ Fl_Box* o = new Fl_Box(10, 205, 185, 20);
|
|
|
|
Fl_Group::current()->resizable(o);
|
|
|
|
} // Fl_Box* o
|
|
|
|
o->end();
|
|
|
|
} // Fl_Group* o
|
|
|
|
data_panel->size_range(343, 237);
|
|
|
|
data_panel->end();
|
|
|
|
} // Fl_Double_Window* data_panel
|
|
|
|
return data_panel;
|
|
|
|
}
|
|
|
|
|
2005-05-30 10:40:25 +04:00
|
|
|
Fl_Double_Window *class_panel=(Fl_Double_Window *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Light_Button *c_public_button=(Fl_Light_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *c_name_input=(Fl_Input *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *c_subclass_input=(Fl_Input *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
2008-09-18 02:43:15 +04:00
|
|
|
Fl_Text_Editor *c_comment_input=(Fl_Text_Editor *)0;
|
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Return_Button *c_panel_ok=(Fl_Return_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Button *c_panel_cancel=(Fl_Button *)0;
|
1998-10-22 02:00:10 +04:00
|
|
|
|
2005-05-30 10:40:25 +04:00
|
|
|
Fl_Double_Window* make_class_panel() {
|
2008-09-18 02:43:15 +04:00
|
|
|
{ class_panel = new Fl_Double_Window(342, 196, "Class Properties");
|
2006-09-17 22:31:35 +04:00
|
|
|
class_panel->labelsize(11);
|
2005-05-30 02:28:13 +04:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 10, 280, 20);
|
2008-01-05 00:45:49 +03:00
|
|
|
o->hide();
|
2006-09-17 22:31:35 +04:00
|
|
|
{ c_public_button = new Fl_Light_Button(10, 10, 60, 20, "public");
|
|
|
|
c_public_button->tooltip("Make the class publicly accessible.");
|
|
|
|
c_public_button->labelsize(11);
|
|
|
|
c_public_button->when(FL_WHEN_NEVER);
|
2008-01-05 00:45:49 +03:00
|
|
|
c_public_button->hide();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Light_Button* c_public_button
|
2005-05-30 02:28:13 +04:00
|
|
|
{ Fl_Box* o = new Fl_Box(80, 10, 210, 20);
|
|
|
|
Fl_Group::current()->resizable(o);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Box* o
|
2005-05-30 02:28:13 +04:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
2008-09-18 02:43:15 +04:00
|
|
|
{ c_name_input = new Fl_Input(10, 20, 320, 20, "Name:");
|
2006-09-17 22:31:35 +04:00
|
|
|
c_name_input->tooltip("Name of class.");
|
|
|
|
c_name_input->labelfont(1);
|
|
|
|
c_name_input->labelsize(11);
|
|
|
|
c_name_input->textfont(4);
|
|
|
|
c_name_input->textsize(11);
|
2008-09-18 02:43:15 +04:00
|
|
|
c_name_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
2006-09-17 22:31:35 +04:00
|
|
|
c_name_input->when(FL_WHEN_NEVER);
|
|
|
|
} // Fl_Input* c_name_input
|
2008-09-18 02:43:15 +04:00
|
|
|
{ c_subclass_input = new Fl_Input(10, 55, 320, 20, "Subclass of (text between : and {)");
|
2006-09-17 22:31:35 +04:00
|
|
|
c_subclass_input->tooltip("Name of subclass.");
|
|
|
|
c_subclass_input->labelfont(1);
|
|
|
|
c_subclass_input->labelsize(11);
|
|
|
|
c_subclass_input->textfont(4);
|
|
|
|
c_subclass_input->textsize(11);
|
2008-09-18 02:43:15 +04:00
|
|
|
c_subclass_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
2006-09-17 22:31:35 +04:00
|
|
|
c_subclass_input->when(FL_WHEN_NEVER);
|
|
|
|
} // Fl_Input* c_subclass_input
|
2008-09-18 02:43:15 +04:00
|
|
|
{ c_comment_input = new Fl_Text_Editor(10, 90, 320, 65, "Comment:");
|
|
|
|
c_comment_input->tooltip("Class comment in Doxygen format");
|
|
|
|
c_comment_input->box(FL_DOWN_BOX);
|
|
|
|
c_comment_input->labelfont(1);
|
|
|
|
c_comment_input->labelsize(11);
|
|
|
|
c_comment_input->textfont(4);
|
|
|
|
c_comment_input->textsize(11);
|
|
|
|
c_comment_input->align(Fl_Align(FL_ALIGN_TOP_LEFT));
|
|
|
|
Fl_Group::current()->resizable(c_comment_input);
|
|
|
|
c_comment_input->buffer(new Fl_Text_Buffer());
|
2015-04-02 17:08:18 +03:00
|
|
|
c_comment_input->add_key_binding(FL_Tab, 0, use_tab_navigation);
|
2008-09-18 02:43:15 +04:00
|
|
|
} // Fl_Text_Editor* c_comment_input
|
|
|
|
{ Fl_Group* o = new Fl_Group(10, 165, 320, 20);
|
|
|
|
{ c_panel_ok = new Fl_Return_Button(200, 165, 60, 20, "OK");
|
2006-09-17 22:31:35 +04:00
|
|
|
c_panel_ok->labelsize(11);
|
|
|
|
c_panel_ok->window()->hotspot(c_panel_ok);
|
|
|
|
} // Fl_Return_Button* c_panel_ok
|
2008-09-18 02:43:15 +04:00
|
|
|
{ c_panel_cancel = new Fl_Button(270, 165, 60, 20, "Cancel");
|
2006-09-17 22:31:35 +04:00
|
|
|
c_panel_cancel->shortcut(0xff1b);
|
|
|
|
c_panel_cancel->labelsize(11);
|
|
|
|
} // Fl_Button* c_panel_cancel
|
2008-09-18 02:43:15 +04:00
|
|
|
{ Fl_Box* o = new Fl_Box(10, 165, 185, 20);
|
2005-05-30 02:28:13 +04:00
|
|
|
Fl_Group::current()->resizable(o);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Box* o
|
2005-05-30 02:28:13 +04:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
|
|
|
class_panel->set_modal();
|
2008-09-18 02:43:15 +04:00
|
|
|
class_panel->size_range(343, 188);
|
2006-09-17 22:31:35 +04:00
|
|
|
class_panel->end();
|
|
|
|
} // Fl_Double_Window* class_panel
|
|
|
|
return class_panel;
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2002-10-31 21:49:05 +03:00
|
|
|
|
2005-05-30 10:40:25 +04:00
|
|
|
Fl_Double_Window *comment_panel=(Fl_Double_Window *)0;
|
2005-03-10 00:26:53 +03:00
|
|
|
|
2023-01-21 20:23:21 +03:00
|
|
|
Fl_Text_Editor *comment_input=(Fl_Text_Editor *)0;
|
2005-03-10 00:26:53 +03:00
|
|
|
|
|
|
|
Fl_Return_Button *comment_panel_ok=(Fl_Return_Button *)0;
|
|
|
|
|
|
|
|
Fl_Button *comment_panel_cancel=(Fl_Button *)0;
|
|
|
|
|
|
|
|
Fl_Light_Button *comment_in_source=(Fl_Light_Button *)0;
|
|
|
|
|
|
|
|
Fl_Light_Button *comment_in_header=(Fl_Light_Button *)0;
|
|
|
|
|
|
|
|
Fl_Menu_Button *comment_predefined=(Fl_Menu_Button *)0;
|
|
|
|
|
|
|
|
Fl_Button *comment_load=(Fl_Button *)0;
|
|
|
|
|
2005-05-30 10:40:25 +04:00
|
|
|
Fl_Double_Window* make_comment_panel() {
|
|
|
|
{ Fl_Double_Window* o = comment_panel = new Fl_Double_Window(550, 280, "Comment Properties");
|
2006-09-17 22:31:35 +04:00
|
|
|
comment_panel->labelsize(11);
|
2023-01-21 20:23:21 +03:00
|
|
|
{ Fl_Text_Editor* o = comment_input = new Fl_Text_Editor(110, 10, 430, 230);
|
2006-09-17 22:31:35 +04:00
|
|
|
comment_input->box(FL_DOWN_BOX);
|
|
|
|
comment_input->labelsize(11);
|
|
|
|
comment_input->textfont(4);
|
|
|
|
comment_input->textsize(11);
|
2023-01-21 20:23:21 +03:00
|
|
|
comment_input->textcolor((Fl_Color)58);
|
2006-09-17 22:31:35 +04:00
|
|
|
Fl_Group::current()->resizable(comment_input);
|
2005-03-19 11:38:21 +03:00
|
|
|
o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);
|
2023-01-21 20:23:21 +03:00
|
|
|
o->buffer(new Fl_Text_Buffer());
|
|
|
|
} // Fl_Text_Editor* comment_input
|
2005-05-29 00:52:03 +04:00
|
|
|
{ Fl_Group* o = new Fl_Group(110, 250, 430, 20);
|
2005-03-19 11:38:21 +03:00
|
|
|
o->labelsize(11);
|
2006-09-17 22:31:35 +04:00
|
|
|
{ comment_panel_ok = new Fl_Return_Button(370, 250, 80, 20, "OK");
|
|
|
|
comment_panel_ok->labelsize(11);
|
|
|
|
comment_panel_ok->window()->hotspot(comment_panel_ok);
|
|
|
|
} // Fl_Return_Button* comment_panel_ok
|
|
|
|
{ comment_panel_cancel = new Fl_Button(460, 250, 80, 20, "Cancel");
|
|
|
|
comment_panel_cancel->shortcut(0xff1b);
|
|
|
|
comment_panel_cancel->labelsize(11);
|
|
|
|
} // Fl_Button* comment_panel_cancel
|
2005-05-29 00:52:03 +04:00
|
|
|
{ Fl_Box* o = new Fl_Box(110, 250, 250, 20);
|
2005-03-19 11:38:21 +03:00
|
|
|
o->labelsize(11);
|
2005-03-10 00:26:53 +03:00
|
|
|
Fl_Group::current()->resizable(o);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Box* o
|
2005-03-10 00:26:53 +03:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
2005-05-29 00:52:03 +04:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 10, 90, 243);
|
2005-03-19 11:38:21 +03:00
|
|
|
o->labelsize(11);
|
2006-09-17 22:31:35 +04:00
|
|
|
{ comment_in_source = new Fl_Light_Button(10, 10, 90, 20, "In Source");
|
|
|
|
comment_in_source->tooltip("Put the comment into the source (.cxx) file.");
|
|
|
|
comment_in_source->labelsize(11);
|
|
|
|
comment_in_source->when(FL_WHEN_NEVER);
|
|
|
|
} // Fl_Light_Button* comment_in_source
|
|
|
|
{ comment_in_header = new Fl_Light_Button(10, 40, 90, 20, "In Header");
|
|
|
|
comment_in_header->tooltip("Put the comment into the header (.h) file.");
|
|
|
|
comment_in_header->labelsize(11);
|
|
|
|
comment_in_header->when(FL_WHEN_NEVER);
|
|
|
|
} // Fl_Light_Button* comment_in_header
|
|
|
|
{ comment_predefined = new Fl_Menu_Button(10, 70, 90, 20, "Predefined");
|
|
|
|
comment_predefined->labelsize(11);
|
|
|
|
comment_predefined->textsize(11);
|
|
|
|
} // Fl_Menu_Button* comment_predefined
|
|
|
|
{ comment_load = new Fl_Button(10, 100, 90, 20, "Import...");
|
|
|
|
comment_load->labelsize(11);
|
|
|
|
} // Fl_Button* comment_load
|
2005-05-29 00:52:03 +04:00
|
|
|
{ Fl_Box* o = new Fl_Box(10, 132, 90, 121);
|
2005-03-19 11:38:21 +03:00
|
|
|
o->labelsize(11);
|
2005-03-10 00:26:53 +03:00
|
|
|
Fl_Group::current()->resizable(o);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Box* o
|
2005-03-10 00:26:53 +03:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
|
|
|
comment_panel->set_modal();
|
2023-07-17 13:56:23 +03:00
|
|
|
o->size_range(320, 180);
|
2006-09-17 22:31:35 +04:00
|
|
|
comment_panel->end();
|
|
|
|
} // Fl_Double_Window* comment_panel
|
|
|
|
return comment_panel;
|
2005-03-10 00:26:53 +03:00
|
|
|
}
|
|
|
|
|
2007-05-20 04:01:06 +04:00
|
|
|
void type_make_cb(Fl_Widget*,void*d) {
|
2021-12-11 21:43:00 +03:00
|
|
|
const char *type_name = (const char*)d;
|
2023-07-20 14:48:43 +03:00
|
|
|
if (Fl_Type::current && Fl_Type::current->is_parent())
|
2021-12-11 21:43:00 +03:00
|
|
|
add_new_widget_from_user(type_name, kAddAsLastChild);
|
|
|
|
else
|
|
|
|
add_new_widget_from_user(type_name, kAddAfterCurrent);
|
2002-10-31 21:49:05 +03:00
|
|
|
}
|
|
|
|
|
2004-03-11 08:17:12 +03:00
|
|
|
Fl_Window *widgetbin_panel=(Fl_Window *)0;
|
2002-10-31 21:49:05 +03:00
|
|
|
|
2009-12-25 23:53:22 +03:00
|
|
|
static void cb_widgetbin_panel(Fl_Window* o, void* v) {
|
|
|
|
if (Fl::event()==FL_SHORTCUT && Fl::event_key()==FL_Escape)
|
2021-12-11 05:33:25 +03:00
|
|
|
exit_cb((Fl_Widget*)o, v);
|
|
|
|
else
|
|
|
|
toggle_widgetbin_cb((Fl_Widget*)o, v);
|
2009-12-25 23:53:22 +03:00
|
|
|
}
|
|
|
|
|
2004-03-11 08:17:12 +03:00
|
|
|
Fl_Window* make_widgetbin() {
|
2021-12-05 23:51:18 +03:00
|
|
|
{ widgetbin_panel = new Fl_Window(600, 102, "Widget Bin");
|
2009-12-25 23:53:22 +03:00
|
|
|
widgetbin_panel->callback((Fl_Callback*)cb_widgetbin_panel);
|
2008-09-18 02:43:15 +04:00
|
|
|
widgetbin_panel->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE));
|
2021-12-05 01:18:21 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(3, 19, 79, 79, "Code");
|
|
|
|
o->labelsize(12);
|
|
|
|
{ Fl_Button* o = new Fl_Button(5, 21, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Function");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Function"));
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Function]);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Button* o
|
2021-12-05 01:18:21 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(30, 21, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Class");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Class"));
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Class]);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Button* o
|
2021-12-05 01:18:21 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(55, 21, 24, 24);
|
2005-05-29 11:15:39 +04:00
|
|
|
o->tooltip("Comment");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("comment"));
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Comment]);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Button* o
|
2021-12-05 01:18:21 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(5, 46, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Code");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Code"));
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Code]);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Button* o
|
2021-12-05 01:18:21 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(30, 46, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Code Block");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("CodeBlock"));
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_CodeBlock]);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Button* o
|
2023-07-17 21:20:54 +03:00
|
|
|
{ Widget_Bin_Window_Button* o = new Widget_Bin_Window_Button(55, 46, 24, 24);
|
2005-05-30 11:32:29 +04:00
|
|
|
o->tooltip("Widget Class");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2023-07-17 21:20:54 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2005-05-30 11:32:29 +04:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("widget_class"));
|
2023-07-17 21:20:54 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Widget_Class]);
|
2023-07-17 21:20:54 +03:00
|
|
|
} // Widget_Bin_Window_Button* o
|
2021-12-05 01:18:21 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(5, 71, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Declaration");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("decl"));
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Decl]);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Button* o
|
2021-12-05 01:18:21 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(30, 71, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Declaration Block");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("declblock"));
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_DeclBlock]);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Button* o
|
2021-12-05 01:18:21 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(55, 71, 24, 24);
|
2018-08-25 18:17:16 +03:00
|
|
|
o->tooltip("Inline Data");
|
2010-02-15 19:43:51 +03:00
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("data"));
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Data]);
|
2010-02-15 19:43:51 +03:00
|
|
|
} // Fl_Button* o
|
2002-10-31 21:49:05 +03:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
2021-12-05 01:18:21 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(87, 19, 79, 79, "Groups");
|
|
|
|
o->labelsize(12);
|
2021-12-11 21:43:00 +03:00
|
|
|
{ Widget_Bin_Window_Button* o = new Widget_Bin_Window_Button(89, 21, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Window");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Window"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Window]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Window_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(114, 21, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Group");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Group"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Group]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(139, 21, 24, 24);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->tooltip("Pack");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Pack"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Pack]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(89, 46, 24, 24);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->tooltip("Tabs");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Tabs"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Tabs]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(114, 46, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Scroll");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Scroll"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Scroll]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
2022-11-01 15:30:05 +03:00
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(139, 46, 24, 24);
|
|
|
|
o->tooltip("Flex");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Flex"));
|
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Flex]);
|
2022-11-01 15:30:05 +03:00
|
|
|
} // Widget_Bin_Button* o
|
2021-12-11 21:43:00 +03:00
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(89, 71, 24, 24);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->tooltip("Tile");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Tile"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Tile]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(114, 71, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Wizard");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Wizard"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Wizard]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
2002-10-31 21:49:05 +03:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
2021-12-05 01:18:21 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(171, 19, 54, 79, "Buttons");
|
|
|
|
o->labelsize(12);
|
2021-12-11 21:43:00 +03:00
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(173, 21, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Button");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Button"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Button]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(198, 21, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Return Button");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Return_Button"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Return_Button]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(173, 46, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Light Button");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Light_Button"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Light_Button]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(198, 46, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Repeat Button");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Repeat_Button"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Repeat_Button]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(173, 71, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Check Button");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Check_Button"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Check_Button]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(198, 71, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Round Button");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Round_Button"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Round_Button]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
2002-10-31 21:49:05 +03:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
2021-12-05 01:18:21 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(230, 19, 104, 79, "Valuators");
|
|
|
|
o->labelsize(12);
|
2021-12-11 21:43:00 +03:00
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(232, 21, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Slider");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Slider"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Slider]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(257, 21, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Scroll Bar");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Scrollbar"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Scrollbar]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(282, 21, 24, 24);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->tooltip("Value Slider");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Value_Slider"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Value_Slider]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(307, 21, 24, 24);
|
2005-05-29 11:15:39 +04:00
|
|
|
o->tooltip("Value Output");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2005-05-29 11:15:39 +04:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Value_Output"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Value_Output]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(232, 46, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Adjuster");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Adjuster"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Adjuster]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(257, 46, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Counter");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Counter"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Counter]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(282, 46, 24, 24);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->tooltip("Dial");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Dial"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Dial]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(232, 71, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Roller");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Roller"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Roller]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(257, 71, 24, 24);
|
2005-03-21 02:38:14 +03:00
|
|
|
o->tooltip("Spinner");
|
2002-10-31 21:49:05 +03:00
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2005-03-21 02:38:14 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Spinner"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Spinner]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(282, 71, 24, 24);
|
2005-03-21 02:38:14 +03:00
|
|
|
o->tooltip("Value Input");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2005-03-21 02:38:14 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Value_Input"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Value_Input]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
2002-10-31 21:49:05 +03:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
2021-12-05 01:18:21 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(339, 19, 54, 79, "Text");
|
|
|
|
o->labelsize(12);
|
2021-12-11 21:43:00 +03:00
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(341, 21, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Input");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Input"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Input]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(366, 21, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Output");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Output"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Output]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(341, 46, 24, 24);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->tooltip("Text Edit");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Text_Editor"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Text_Editor]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(366, 46, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Text Display");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Text_Display"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Text_Display]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(341, 71, 24, 24);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->tooltip("File Input");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_File_Input"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_File_Input]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(366, 71, 24, 24);
|
2021-12-05 01:18:21 +03:00
|
|
|
o->tooltip("Simple Terminal");
|
2019-01-14 03:43:17 +03:00
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2019-01-14 03:43:17 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Simple_Terminal"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Simple_Terminal]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
2002-10-31 21:49:05 +03:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
2021-12-05 23:51:18 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(398, 19, 79, 79, "Menus");
|
2021-12-05 01:18:21 +03:00
|
|
|
o->labelsize(12);
|
2021-12-11 21:43:00 +03:00
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(400, 21, 24, 24);
|
2005-05-29 11:15:39 +04:00
|
|
|
o->tooltip("Input Choice");
|
2002-10-31 21:49:05 +03:00
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2005-05-29 11:15:39 +04:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Input_Choice"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Input_Choice]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(425, 21, 24, 24);
|
2021-12-05 23:51:18 +03:00
|
|
|
o->tooltip("Menu Item");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2021-12-05 23:51:18 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("menuitem"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Menu_Item]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(450, 21, 24, 24);
|
2021-12-05 23:51:18 +03:00
|
|
|
o->tooltip("Menu Bar");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2021-12-05 23:51:18 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Menu_Bar"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Menu_Bar]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(400, 46, 24, 24);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->tooltip("Menu Button");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Menu_Button"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Menu_Button]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(425, 46, 24, 24);
|
2021-12-05 23:51:18 +03:00
|
|
|
o->tooltip("Checkbox Menu Item");
|
2002-10-31 21:49:05 +03:00
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2021-12-05 23:51:18 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("checkmenuitem"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Checkbox_Menu_Item]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(450, 46, 24, 24);
|
2021-12-05 23:51:18 +03:00
|
|
|
o->tooltip("Sub Menu");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2021-12-05 23:51:18 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("submenu"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Submenu]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(400, 71, 24, 24);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->tooltip("Choice");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Choice"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Choice]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(425, 71, 24, 24);
|
2021-12-05 23:51:18 +03:00
|
|
|
o->tooltip("Radio Menu Item");
|
2005-03-21 02:38:14 +03:00
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2021-12-05 23:51:18 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("radiomenuitem"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Radio_Menu_Item]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
2002-10-31 21:49:05 +03:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
2021-12-05 23:51:18 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(482, 19, 54, 79, "Browsers");
|
2021-12-05 01:18:21 +03:00
|
|
|
o->labelsize(12);
|
2021-12-11 21:43:00 +03:00
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(484, 21, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Browser");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Browser"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Browser]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(509, 21, 24, 24);
|
2011-01-03 11:28:38 +03:00
|
|
|
o->tooltip("Tree");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2011-01-03 11:28:38 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Tree"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Tree]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(484, 46, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Check Browser");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Check_Browser"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Check_Browser]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(509, 46, 24, 24);
|
2021-12-05 01:18:21 +03:00
|
|
|
o->tooltip("Help Browser");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2021-12-05 01:18:21 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Help_View"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Help_View]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(484, 71, 24, 24);
|
2021-12-05 23:51:18 +03:00
|
|
|
o->tooltip("File Browser");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2021-12-05 23:51:18 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_File_Browser"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_File_Browser]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(509, 71, 24, 24);
|
2021-12-05 01:18:21 +03:00
|
|
|
o->tooltip("Table");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2021-12-05 01:18:21 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Table"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Table]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
2002-10-31 21:49:05 +03:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
2021-12-05 23:51:18 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(540, 19, 55, 79, "Misc");
|
2021-12-05 01:18:21 +03:00
|
|
|
o->labelsize(12);
|
2021-12-11 21:43:00 +03:00
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(542, 21, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Box");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Box"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Box]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(567, 21, 24, 24);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->tooltip("Clock");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2003-04-03 08:28:15 +04:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Clock"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Clock]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
|
|
|
{ Widget_Bin_Button* o = new Widget_Bin_Button(542, 46, 24, 24);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->tooltip("Progress");
|
|
|
|
o->box(FL_THIN_UP_BOX);
|
2021-12-11 21:43:00 +03:00
|
|
|
o->color(FL_BACKGROUND_COLOR);
|
|
|
|
o->selection_color(FL_BACKGROUND_COLOR);
|
|
|
|
o->labeltype(FL_NORMAL_LABEL);
|
|
|
|
o->labelfont(0);
|
|
|
|
o->labelsize(14);
|
|
|
|
o->labelcolor(FL_FOREGROUND_COLOR);
|
2002-10-31 21:49:05 +03:00
|
|
|
o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Progress"));
|
2021-12-11 21:43:00 +03:00
|
|
|
o->align(Fl_Align(FL_ALIGN_CENTER));
|
|
|
|
o->when(FL_WHEN_RELEASE);
|
2023-07-17 21:40:55 +03:00
|
|
|
o->image(pixmap[Fl_Type::ID_Progress]);
|
2021-12-11 21:43:00 +03:00
|
|
|
} // Widget_Bin_Button* o
|
2002-10-31 21:49:05 +03:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
|
|
|
widgetbin_panel->set_non_modal();
|
|
|
|
widgetbin_panel->end();
|
|
|
|
} // Fl_Window* widgetbin_panel
|
|
|
|
return widgetbin_panel;
|
2002-10-31 21:49:05 +03:00
|
|
|
}
|
2005-03-19 07:09:32 +03:00
|
|
|
|
2005-11-03 23:43:19 +03:00
|
|
|
Fl_Double_Window *sourceview_panel=(Fl_Double_Window *)0;
|
|
|
|
|
|
|
|
Fl_Tabs *sv_tab=(Fl_Tabs *)0;
|
|
|
|
|
2006-04-28 05:00:41 +04:00
|
|
|
CodeViewer *sv_source=(CodeViewer *)0;
|
2005-11-03 23:43:19 +03:00
|
|
|
|
2006-04-28 05:00:41 +04:00
|
|
|
CodeViewer *sv_header=(CodeViewer *)0;
|
2005-11-03 23:43:19 +03:00
|
|
|
|
2022-11-23 17:17:54 +03:00
|
|
|
TextViewer *sv_strings=(TextViewer *)0;
|
2022-11-10 01:12:55 +03:00
|
|
|
|
2022-11-23 17:17:54 +03:00
|
|
|
TextViewer *sv_project=(TextViewer *)0;
|
2022-11-10 01:12:55 +03:00
|
|
|
|
2005-11-03 23:43:19 +03:00
|
|
|
Fl_Light_Button *sv_autorefresh=(Fl_Light_Button *)0;
|
|
|
|
|
|
|
|
Fl_Light_Button *sv_autoposition=(Fl_Light_Button *)0;
|
|
|
|
|
|
|
|
Fl_Double_Window* make_sourceview() {
|
2006-09-17 22:31:35 +04:00
|
|
|
{ sourceview_panel = new Fl_Double_Window(520, 490, "Code View");
|
|
|
|
sourceview_panel->callback((Fl_Callback*)toggle_sourceview_cb);
|
2008-09-18 02:43:15 +04:00
|
|
|
sourceview_panel->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE));
|
2006-09-17 22:31:35 +04:00
|
|
|
{ sv_tab = new Fl_Tabs(10, 10, 500, 440);
|
|
|
|
sv_tab->selection_color((Fl_Color)4);
|
|
|
|
sv_tab->labelcolor(FL_BACKGROUND2_COLOR);
|
|
|
|
sv_tab->callback((Fl_Callback*)update_sourceview_position_cb);
|
2005-11-04 01:16:52 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 35, 500, 415, "Source");
|
2005-11-03 23:43:19 +03:00
|
|
|
o->labelsize(13);
|
2016-10-17 20:00:58 +03:00
|
|
|
{ CodeViewer* o = sv_source = new CodeViewer(20, 50, 480, 390);
|
2006-09-17 22:31:35 +04:00
|
|
|
sv_source->box(FL_DOWN_FRAME);
|
|
|
|
sv_source->color(FL_BACKGROUND2_COLOR);
|
|
|
|
sv_source->selection_color(FL_SELECTION_COLOR);
|
|
|
|
sv_source->labeltype(FL_NORMAL_LABEL);
|
|
|
|
sv_source->labelfont(0);
|
|
|
|
sv_source->labelsize(14);
|
|
|
|
sv_source->labelcolor(FL_FOREGROUND_COLOR);
|
|
|
|
sv_source->textfont(4);
|
|
|
|
sv_source->textsize(11);
|
2008-09-18 02:43:15 +04:00
|
|
|
sv_source->align(Fl_Align(FL_ALIGN_TOP));
|
2006-09-17 22:31:35 +04:00
|
|
|
sv_source->when(FL_WHEN_RELEASE);
|
|
|
|
Fl_Group::current()->resizable(sv_source);
|
2016-10-17 20:00:58 +03:00
|
|
|
o->linenumber_width(60);
|
|
|
|
o->linenumber_size(o->Fl_Text_Display::textsize());
|
2006-09-17 22:31:35 +04:00
|
|
|
} // CodeViewer* sv_source
|
2005-11-03 23:43:19 +03:00
|
|
|
o->end();
|
|
|
|
Fl_Group::current()->resizable(o);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
2005-11-04 01:16:52 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 35, 500, 415, "Header");
|
2005-11-03 23:43:19 +03:00
|
|
|
o->labelsize(13);
|
2014-10-05 04:03:27 +04:00
|
|
|
o->hide();
|
2016-10-17 20:00:58 +03:00
|
|
|
{ CodeViewer* o = sv_header = new CodeViewer(20, 50, 480, 390);
|
2006-09-17 22:31:35 +04:00
|
|
|
sv_header->box(FL_DOWN_FRAME);
|
|
|
|
sv_header->color(FL_BACKGROUND2_COLOR);
|
|
|
|
sv_header->selection_color(FL_SELECTION_COLOR);
|
|
|
|
sv_header->labeltype(FL_NORMAL_LABEL);
|
|
|
|
sv_header->labelfont(0);
|
|
|
|
sv_header->labelsize(14);
|
|
|
|
sv_header->labelcolor(FL_FOREGROUND_COLOR);
|
|
|
|
sv_header->textfont(4);
|
|
|
|
sv_header->textsize(11);
|
2008-09-18 02:43:15 +04:00
|
|
|
sv_header->align(Fl_Align(FL_ALIGN_TOP));
|
2006-09-17 22:31:35 +04:00
|
|
|
sv_header->when(FL_WHEN_RELEASE);
|
|
|
|
Fl_Group::current()->resizable(sv_header);
|
2016-10-17 20:00:58 +03:00
|
|
|
o->linenumber_width(60);
|
|
|
|
o->linenumber_size(o->Fl_Text_Display::textsize());
|
2006-09-17 22:31:35 +04:00
|
|
|
} // CodeViewer* sv_header
|
2005-11-03 23:43:19 +03:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
2022-11-10 01:12:55 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 35, 500, 415, "Strings");
|
|
|
|
o->labelsize(13);
|
|
|
|
o->hide();
|
2022-11-23 17:17:54 +03:00
|
|
|
{ TextViewer* o = sv_strings = new TextViewer(20, 50, 480, 390);
|
2022-11-10 01:12:55 +03:00
|
|
|
sv_strings->box(FL_DOWN_FRAME);
|
|
|
|
sv_strings->color(FL_BACKGROUND2_COLOR);
|
|
|
|
sv_strings->selection_color(FL_SELECTION_COLOR);
|
|
|
|
sv_strings->labeltype(FL_NORMAL_LABEL);
|
|
|
|
sv_strings->labelfont(0);
|
|
|
|
sv_strings->labelsize(14);
|
|
|
|
sv_strings->labelcolor(FL_FOREGROUND_COLOR);
|
|
|
|
sv_strings->textfont(4);
|
|
|
|
sv_strings->textsize(11);
|
|
|
|
sv_strings->align(Fl_Align(FL_ALIGN_TOP));
|
|
|
|
sv_strings->when(FL_WHEN_RELEASE);
|
|
|
|
Fl_Group::current()->resizable(sv_strings);
|
|
|
|
o->linenumber_width(60);
|
|
|
|
o->linenumber_size(o->Fl_Text_Display::textsize());
|
2022-11-23 17:17:54 +03:00
|
|
|
} // TextViewer* sv_strings
|
2022-11-10 01:12:55 +03:00
|
|
|
o->end();
|
|
|
|
} // Fl_Group* o
|
2022-11-23 17:17:54 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 35, 500, 415, "Project");
|
2022-11-10 01:12:55 +03:00
|
|
|
o->labelsize(13);
|
|
|
|
o->hide();
|
2022-11-23 17:17:54 +03:00
|
|
|
{ TextViewer* o = sv_project = new TextViewer(20, 50, 480, 390);
|
|
|
|
sv_project->box(FL_DOWN_FRAME);
|
|
|
|
sv_project->color(FL_BACKGROUND2_COLOR);
|
|
|
|
sv_project->selection_color(FL_SELECTION_COLOR);
|
|
|
|
sv_project->labeltype(FL_NORMAL_LABEL);
|
|
|
|
sv_project->labelfont(0);
|
|
|
|
sv_project->labelsize(14);
|
|
|
|
sv_project->labelcolor(FL_FOREGROUND_COLOR);
|
|
|
|
sv_project->textfont(4);
|
|
|
|
sv_project->textsize(11);
|
|
|
|
sv_project->align(Fl_Align(FL_ALIGN_TOP));
|
|
|
|
sv_project->when(FL_WHEN_RELEASE);
|
|
|
|
Fl_Group::current()->resizable(sv_project);
|
2022-11-10 01:12:55 +03:00
|
|
|
o->linenumber_width(60);
|
|
|
|
o->linenumber_size(o->Fl_Text_Display::textsize());
|
2022-11-23 17:17:54 +03:00
|
|
|
} // TextViewer* sv_project
|
2022-11-10 01:12:55 +03:00
|
|
|
o->end();
|
|
|
|
} // Fl_Group* o
|
2006-09-17 22:31:35 +04:00
|
|
|
sv_tab->end();
|
|
|
|
Fl_Group::current()->resizable(sv_tab);
|
|
|
|
} // Fl_Tabs* sv_tab
|
2005-11-04 01:16:52 +03:00
|
|
|
{ Fl_Group* o = new Fl_Group(10, 460, 500, 20);
|
|
|
|
{ Fl_Button* o = new Fl_Button(10, 460, 61, 20, "Refresh");
|
2005-11-03 23:43:19 +03:00
|
|
|
o->labelsize(11);
|
|
|
|
o->callback((Fl_Callback*)update_sourceview_cb);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Button* o
|
2005-11-04 01:16:52 +03:00
|
|
|
{ Fl_Light_Button* o = sv_autorefresh = new Fl_Light_Button(76, 460, 91, 20, "Auto-Refresh");
|
2006-09-17 22:31:35 +04:00
|
|
|
sv_autorefresh->labelsize(11);
|
2005-11-03 23:43:19 +03:00
|
|
|
o->callback((Fl_Callback*)update_sourceview_cb);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Light_Button* sv_autorefresh
|
|
|
|
{ sv_autoposition = new Fl_Light_Button(172, 460, 89, 20, "Auto-Position");
|
|
|
|
sv_autoposition->labelsize(11);
|
|
|
|
} // Fl_Light_Button* sv_autoposition
|
2005-11-04 01:16:52 +03:00
|
|
|
{ Fl_Button* o = new Fl_Button(460, 460, 50, 20, "Close");
|
2005-11-03 23:43:19 +03:00
|
|
|
o->labelsize(11);
|
|
|
|
o->callback((Fl_Callback*)toggle_sourceview_b_cb);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Button* o
|
2005-11-04 01:16:52 +03:00
|
|
|
{ Fl_Box* o = new Fl_Box(265, 460, 190, 20);
|
2005-11-03 23:43:19 +03:00
|
|
|
Fl_Group::current()->resizable(o);
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Box* o
|
2005-11-03 23:43:19 +03:00
|
|
|
o->end();
|
2006-09-17 22:31:35 +04:00
|
|
|
} // Fl_Group* o
|
|
|
|
sourceview_panel->size_range(384, 120);
|
|
|
|
sourceview_panel->end();
|
|
|
|
} // Fl_Double_Window* sourceview_panel
|
|
|
|
return sourceview_panel;
|
2005-11-03 23:43:19 +03:00
|
|
|
}
|
|
|
|
|
2005-03-19 07:09:32 +03:00
|
|
|
//
|