diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-21 19:59:45 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-21 19:59:45 +0000 |
| commit | f0c00448b01eecd86d438f46ede20e8ab100a3f5 (patch) | |
| tree | 671f8db0b07c7c6da8a200f65cbda61ebf0a4ada | |
| parent | 4afcc1762c71b63499200943e3a00a13ddd1a3ee (diff) | |
Add "Use" button to printer properties (uses settings for that job only)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4162 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | fluid/print_panel.cxx | 7 | ||||
| -rw-r--r-- | fluid/print_panel.fl | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/fluid/print_panel.cxx b/fluid/print_panel.cxx index fc3f281cf..18f8d970c 100644 --- a/fluid/print_panel.cxx +++ b/fluid/print_panel.cxx @@ -239,6 +239,10 @@ static void cb_Cancel1(Fl_Button*, void*) { print_update_status(); } +static void cb_Use(Fl_Button*, void*) { + print_properties_panel->hide(); +} + Fl_Double_Window* make_print_panel() { Fl_Double_Window* w; { Fl_Double_Window* o = print_panel = new Fl_Double_Window(465, 235, "Print"); @@ -497,6 +501,9 @@ Fl_Double_Window* make_print_panel() { { Fl_Button* o = new Fl_Button(212, 95, 68, 25, "Cancel"); o->callback((Fl_Callback*)cb_Cancel1); } + { Fl_Button* o = new Fl_Button(60, 95, 53, 25, "Use"); + o->callback((Fl_Callback*)cb_Use); + } o->set_modal(); o->end(); } diff --git a/fluid/print_panel.fl b/fluid/print_panel.fl index 7ce6b4856..07aeb1cc0 100644 --- a/fluid/print_panel.fl +++ b/fluid/print_panel.fl @@ -238,7 +238,7 @@ print_update_status();} open label {Output Mode:} open xywh {110 45 170 40} labelfont 1 align 4 } { - Fl_Button {print_output_mode[0]} {selected + Fl_Button {print_output_mode[0]} { image {pixmaps/print_color.xpm} xywh {110 45 30 40} type Radio box BORDER_BOX down_box BORDER_BOX value 1 color 7 selection_color 0 } Fl_Button {print_output_mode[1]} { @@ -275,6 +275,11 @@ fluid_prefs.set(name, val);} print_update_status();} xywh {212 95 68 25} } + Fl_Button {} { + label Use + callback {print_properties_panel->hide();} selected + xywh {60 95 53 25} + } } } |
