2001-09-30 02:59:45 +04:00
|
|
|
// generated by Fast Light User Interface Designer (fluid) version 1.0100
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1998-12-06 18:09:22 +03:00
|
|
|
#include "alignment_panel.h"
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Window *alignment_window=(Fl_Window *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *horizontal_input=(Fl_Input *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *vertical_input=(Fl_Input *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *snap_input=(Fl_Input *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
static void cb_Close(Fl_Button*, void*) {
|
1998-10-06 22:21:25 +04:00
|
|
|
alignment_window->hide();
|
|
|
|
}
|
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *header_file_input=(Fl_Input *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Input *code_file_input=(Fl_Input *)0;
|
1998-10-06 22:21:25 +04:00
|
|
|
|
1999-01-27 00:59:41 +03:00
|
|
|
Fl_Light_Button *include_H_from_C_button=(Fl_Light_Button *)0;
|
1998-10-15 18:19:34 +04:00
|
|
|
|
2000-04-24 22:22:50 +04:00
|
|
|
Fl_Choice *i18n_type_chooser=(Fl_Choice *)0;
|
|
|
|
|
|
|
|
Fl_Menu_Item menu_i18n_type_chooser[] = {
|
|
|
|
{"None", 0, 0, 0, 0, 0, 0, 14, 0},
|
|
|
|
{"GNU gettext", 0, 0, 0, 0, 0, 0, 14, 0},
|
|
|
|
{"POSIX catgets", 0, 0, 0, 0, 0, 0, 14, 0},
|
|
|
|
{0}
|
|
|
|
};
|
|
|
|
|
|
|
|
Fl_Input *i18n_include_input=(Fl_Input *)0;
|
|
|
|
|
|
|
|
Fl_Input *i18n_file_input=(Fl_Input *)0;
|
|
|
|
|
|
|
|
Fl_Input *i18n_set_input=(Fl_Input *)0;
|
|
|
|
|
|
|
|
Fl_Input *i18n_function_input=(Fl_Input *)0;
|
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Window* make_alignment_window() {
|
1998-10-15 18:19:34 +04:00
|
|
|
Fl_Window* w;
|
2000-04-24 22:22:50 +04:00
|
|
|
{ Fl_Window* o = alignment_window = new Fl_Window(365, 340, "Preferences");
|
1999-01-27 00:59:41 +03:00
|
|
|
w = o;
|
2001-09-30 02:59:45 +04:00
|
|
|
{ Fl_Box* o = new Fl_Box(10, 25, 130, 130, "Grid:");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->box(FL_ENGRAVED_FRAME);
|
1999-01-27 00:59:41 +03:00
|
|
|
o->labelsize(12);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->align(FL_ALIGN_TOP_LEFT);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2000-04-24 22:22:50 +04:00
|
|
|
{ Fl_Input* o = horizontal_input = new Fl_Input(90, 35, 40, 20, "Horizontal:");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Horizontal grid spacing.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->type(2);
|
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
o->callback((Fl_Callback*)alignment_cb, (void*)(1));
|
|
|
|
o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);
|
|
|
|
}
|
2000-04-24 22:22:50 +04:00
|
|
|
{ Fl_Input* o = vertical_input = new Fl_Input(90, 65, 40, 20, "Vertical:");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Vertical grid spacing.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->type(2);
|
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
o->callback((Fl_Callback*)alignment_cb, (void*)(2));
|
|
|
|
o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);
|
|
|
|
}
|
2000-04-24 22:22:50 +04:00
|
|
|
{ Fl_Input* o = snap_input = new Fl_Input(90, 95, 40, 20, "Snap:");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Snap to grid within this many pixels.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->type(2);
|
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
o->callback((Fl_Callback*)alignment_cb, (void*)(3));
|
|
|
|
o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);
|
|
|
|
}
|
2000-04-24 22:22:50 +04:00
|
|
|
{ Fl_Button* o = new Fl_Button(295, 305, 60, 25, "Close");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Close this dialog.");
|
1999-01-27 00:59:41 +03:00
|
|
|
o->callback((Fl_Callback*)cb_Close);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2000-04-24 22:22:50 +04:00
|
|
|
{ Fl_Box* o = new Fl_Box(10, 175, 345, 120, "Output File Names:");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->box(FL_ENGRAVED_FRAME);
|
1999-01-27 00:59:41 +03:00
|
|
|
o->labelsize(12);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->align(FL_ALIGN_TOP_LEFT);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2000-04-24 22:22:50 +04:00
|
|
|
{ Fl_Box* o = new Fl_Box(20, 185, 325, 15, "Use \"name.ext\" to set name or just \".ext\" to set only extension.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->labelsize(10);
|
1999-08-05 12:01:40 +04:00
|
|
|
o->align(132|FL_ALIGN_INSIDE);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2000-04-24 22:22:50 +04:00
|
|
|
{ Fl_Input* o = header_file_input = new Fl_Input(100, 205, 245, 20, "Header File:");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("The name of the generated header file.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
2000-04-24 22:22:50 +04:00
|
|
|
o->textfont(4);
|
1998-10-06 22:21:25 +04:00
|
|
|
o->callback((Fl_Callback*)header_input_cb, (void*)(1));
|
1999-08-05 12:01:40 +04:00
|
|
|
o->when(FL_WHEN_CHANGED);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2000-04-24 22:22:50 +04:00
|
|
|
{ Fl_Input* o = code_file_input = new Fl_Input(100, 235, 245, 20, "Code File:");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("The name of the generated code file.");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
2000-04-24 22:22:50 +04:00
|
|
|
o->textfont(4);
|
1998-10-06 22:21:25 +04:00
|
|
|
o->callback((Fl_Callback*)code_input_cb, (void*)(1));
|
1999-08-05 12:01:40 +04:00
|
|
|
o->when(FL_WHEN_CHANGED);
|
1998-10-06 22:21:25 +04:00
|
|
|
}
|
2000-04-24 22:22:50 +04:00
|
|
|
{ Fl_Light_Button* o = include_H_from_C_button = new Fl_Light_Button(100, 265, 170, 20, "Include Header from Code");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Include the header file from the code file.");
|
1998-10-15 18:19:34 +04:00
|
|
|
o->value(1);
|
1999-01-27 00:59:41 +03:00
|
|
|
o->labelsize(12);
|
1998-10-15 18:19:34 +04:00
|
|
|
o->callback((Fl_Callback*)include_H_from_C_button_cb);
|
|
|
|
}
|
2000-04-24 22:22:50 +04:00
|
|
|
{ Fl_Box* o = new Fl_Box(150, 25, 205, 130, "Internationalization:");
|
|
|
|
o->box(FL_ENGRAVED_FRAME);
|
|
|
|
o->labelsize(12);
|
|
|
|
o->align(FL_ALIGN_TOP_LEFT);
|
|
|
|
}
|
|
|
|
{ Fl_Choice* o = i18n_type_chooser = new Fl_Choice(220, 35, 125, 20, "Use:");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("Type of internationalization to use.");
|
2000-04-24 22:22:50 +04:00
|
|
|
o->box(FL_THIN_UP_BOX);
|
2001-09-30 02:59:45 +04:00
|
|
|
o->down_box(FL_BORDER_BOX);
|
2000-04-24 22:22:50 +04:00
|
|
|
o->callback((Fl_Callback*)i18n_type_cb);
|
|
|
|
o->menu(menu_i18n_type_chooser);
|
|
|
|
}
|
|
|
|
{ Fl_Input* o = i18n_include_input = new Fl_Input(220, 65, 125, 20, "#include:");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("The include file for internationalization.");
|
2000-04-24 22:22:50 +04:00
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
o->textfont(4);
|
|
|
|
o->callback((Fl_Callback*)i18n_text_cb);
|
|
|
|
o->hide();
|
|
|
|
}
|
|
|
|
{ Fl_Input* o = i18n_file_input = new Fl_Input(220, 95, 125, 20, "File:");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("The name of the message catalog.");
|
2000-04-24 22:22:50 +04:00
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
o->textfont(4);
|
|
|
|
o->callback((Fl_Callback*)i18n_text_cb);
|
|
|
|
o->hide();
|
|
|
|
}
|
|
|
|
{ Fl_Input* o = i18n_set_input = new Fl_Input(220, 125, 125, 20, "Set:");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("The message set number.");
|
2000-04-24 22:22:50 +04:00
|
|
|
o->type(2);
|
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
o->textfont(4);
|
|
|
|
o->callback((Fl_Callback*)i18n_text_cb);
|
|
|
|
o->hide();
|
|
|
|
}
|
|
|
|
{ Fl_Input* o = i18n_function_input = new Fl_Input(220, 95, 125, 20, "Function:");
|
2001-09-30 02:59:45 +04:00
|
|
|
o->tooltip("The function to call to internationalize the labels and tooltips.");
|
2000-04-24 22:22:50 +04:00
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
o->textfont(4);
|
|
|
|
o->callback((Fl_Callback*)i18n_text_cb);
|
|
|
|
o->hide();
|
|
|
|
}
|
1998-10-15 18:19:34 +04:00
|
|
|
o->set_modal();
|
1998-10-06 22:21:25 +04:00
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
return w;
|
|
|
|
}
|
2000-04-24 22:22:50 +04:00
|
|
|
extern void i18n_cb(Fl_Choice *,void *);
|