summaryrefslogtreecommitdiff
path: root/fluid/alignment_panel.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>1999-08-05 08:01:40 +0000
committerBill Spitzak <spitzak@gmail.com>1999-08-05 08:01:40 +0000
commit16a999efd0f14f0a99fb01c4e8484ace744fd416 (patch)
treeb8fc60dab27eeb0e74bbfd075f971cb93d61334a /fluid/alignment_panel.cxx
parent243525a9036b6221408bcf7ba234d6385d3a9c60 (diff)
Fixed so that a public declaration like #include "Foo" is written to the
header file in the correct order, before anything written by an later object in the fl file. It used to write the extern callback definitions first, this would fail if they used a type that was in the header file. This also simplified the (still messy) code by getting rid of the write_declare() virtual function. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@637 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/alignment_panel.cxx')
-rw-r--r--fluid/alignment_panel.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/fluid/alignment_panel.cxx b/fluid/alignment_panel.cxx
index 0726959e4..efe89cc09 100644
--- a/fluid/alignment_panel.cxx
+++ b/fluid/alignment_panel.cxx
@@ -27,7 +27,7 @@ Fl_Window* make_alignment_window() {
{ Fl_Box* o = new Fl_Box(10, 20, 190, 100, "Alignment:");
o->box(FL_ENGRAVED_FRAME);
o->labelsize(12);
- o->align(5);
+ o->align(FL_ALIGN_TOP_LEFT);
}
{ Fl_Input* o = horizontal_input = new Fl_Input(90, 30, 100, 20, "Horizontal:");
o->type(2);
@@ -53,21 +53,21 @@ Fl_Window* make_alignment_window() {
{ Fl_Box* o = new Fl_Box(10, 140, 190, 130, "Output File Names:");
o->box(FL_ENGRAVED_FRAME);
o->labelsize(12);
- o->align(5);
+ o->align(FL_ALIGN_TOP_LEFT);
}
{ Fl_Box* o = new Fl_Box(20, 150, 170, 30, "Use \"name.ext\" to set name or just \".ext\" to set only extension.");
o->labelsize(10);
- o->align(148);
+ o->align(132|FL_ALIGN_INSIDE);
}
{ Fl_Input* o = header_file_input = new Fl_Input(100, 180, 90, 20, "Header File:");
o->box(FL_THIN_DOWN_BOX);
o->callback((Fl_Callback*)header_input_cb, (void*)(1));
- o->when(1);
+ o->when(FL_WHEN_CHANGED);
}
{ Fl_Input* o = code_file_input = new Fl_Input(100, 210, 90, 20, "Code File:");
o->box(FL_THIN_DOWN_BOX);
o->callback((Fl_Callback*)code_input_cb, (void*)(1));
- o->when(1);
+ o->when(FL_WHEN_CHANGED);
}
{ Fl_Light_Button* o = include_H_from_C_button = new Fl_Light_Button(20, 240, 170, 20, "Include Header from Code");
o->value(1);