1998-10-22 02:00:10 +04:00
|
|
|
// generated by Fast Light User Interface Designer (fluid) version 1.00
|
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
|
|
|
|
|
|
|
Fl_Window *alignment_window;
|
|
|
|
|
|
|
|
Fl_Input *horizontal_input;
|
|
|
|
|
|
|
|
Fl_Input *vertical_input;
|
|
|
|
|
|
|
|
Fl_Input *snap_input;
|
|
|
|
|
|
|
|
static void cb_close(Fl_Button*, void*) {
|
|
|
|
alignment_window->hide();
|
|
|
|
}
|
|
|
|
|
|
|
|
Fl_Input *header_file_input;
|
|
|
|
|
|
|
|
Fl_Input *code_file_input;
|
|
|
|
|
1998-10-15 18:19:34 +04:00
|
|
|
Fl_Light_Button *include_H_from_C_button;
|
|
|
|
|
1998-10-06 22:21:25 +04:00
|
|
|
Fl_Window* make_alignment_window() {
|
1998-10-15 18:19:34 +04:00
|
|
|
Fl_Window* w;
|
1998-10-20 01:00:26 +04:00
|
|
|
{ Fl_Window* o = alignment_window = w = new Fl_Window(210, 310, "fluid Preferences");
|
1998-10-06 22:21:25 +04:00
|
|
|
{ Fl_Box* o = new Fl_Box(10, 20, 190, 100, "ALIGNMENT:");
|
|
|
|
o->box(FL_ENGRAVED_FRAME);
|
|
|
|
o->labelsize(10);
|
|
|
|
o->align(5);
|
|
|
|
}
|
|
|
|
{ Fl_Input* o = horizontal_input = new Fl_Input(90, 30, 100, 20, "horizontal:");
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
{ Fl_Input* o = vertical_input = new Fl_Input(90, 60, 100, 20, "vertical:");
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
{ Fl_Input* o = snap_input = new Fl_Input(90, 90, 100, 20, "snap:");
|
|
|
|
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);
|
|
|
|
}
|
1998-10-15 18:19:34 +04:00
|
|
|
{ Fl_Button* o = new Fl_Button(10, 280, 190, 20, "close");
|
1998-10-06 22:21:25 +04:00
|
|
|
o->callback((Fl_Callback*)cb_close);
|
|
|
|
}
|
|
|
|
{ Fl_Box* o = new Fl_Box(10, 140, 190, 100, "OUTPUT FILE NAMES:");
|
|
|
|
o->box(FL_ENGRAVED_FRAME);
|
|
|
|
o->labelsize(10);
|
|
|
|
o->align(5);
|
|
|
|
}
|
|
|
|
{ Fl_Box* o = new Fl_Box(10, 140, 190, 40, "Use \"name.ext\" to set name, use just \".ext\" to set only extension.");
|
|
|
|
o->labelsize(10);
|
|
|
|
o->align(128);
|
|
|
|
}
|
|
|
|
{ Fl_Input* o = header_file_input = new Fl_Input(90, 180, 100, 20, "header file:");
|
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
o->callback((Fl_Callback*)header_input_cb, (void*)(1));
|
|
|
|
o->when(1);
|
|
|
|
}
|
|
|
|
{ Fl_Input* o = code_file_input = new Fl_Input(90, 210, 100, 20, "code file:");
|
|
|
|
o->box(FL_THIN_DOWN_BOX);
|
|
|
|
o->callback((Fl_Callback*)code_input_cb, (void*)(1));
|
|
|
|
o->when(1);
|
|
|
|
}
|
1998-12-06 17:59:14 +03:00
|
|
|
{ Fl_Light_Button* o = include_H_from_C_button = new Fl_Light_Button(60, 250, 140, 20, "Include .h from .cxx");
|
1998-10-15 18:19:34 +04:00
|
|
|
o->value(1);
|
|
|
|
o->callback((Fl_Callback*)include_H_from_C_button_cb);
|
|
|
|
}
|
|
|
|
o->set_modal();
|
1998-10-06 22:21:25 +04:00
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
return w;
|
|
|
|
}
|