fltk  1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X.
  Fossies Dox: fltk-1.3.5-source.tar.bz2  ("inofficial" and yet experimental doxygen-generated source code documentation)  

print_panel.cxx
Go to the documentation of this file.
1 //
2 // "$Id$"
3 //
4 // FLUID print panel for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2017 by Bill Spitzak and others.
7 //
8 // This library is free software. Distribution and use rights are outlined in
9 // the file "COPYING" which should have been included with this file. If this
10 // file is missing or damaged, see the license at:
11 //
12 // http://www.fltk.org/COPYING.php
13 //
14 // Please report all bugs and problems on the following page:
15 //
16 // http://www.fltk.org/str.php
17 //
18 
19 // generated by Fast Light User Interface Designer (fluid) version 1.0305
20 
21 #include "print_panel.h"
22 #include <stdio.h>
23 #include <stdlib.h>
24 #include "../src/flstring.h"
25 #include <FL/Fl_Preferences.H>
27 
29 
31 
33 
34 static void cb_print_choice(Fl_Choice*, void*) {
36 }
37 
39 
40 static void cb_print_properties(Fl_Button*, void*) {
42 }
43 
45 
47 
48 static void cb_print_all(Fl_Round_Button*, void*) {
51 }
52 
54 
55 static void cb_print_pages(Fl_Round_Button*, void*) {
58 }
59 
61 
62 static void cb_print_selection(Fl_Round_Button*, void*) {
65 }
66 
68 
70 
72 
73 static void cb_print_copies(Fl_Spinner*, void*) {
74  if (print_copies->value() == 1) {
78 } else {
82 };
83 }
84 
86 
88  int i = print_collate_button->value() != 0;
90 print_collate_group[1 - i]->hide();
91 }
92 
94 
95 static void cb_Cancel(Fl_Button*, void*) {
96  print_panel->hide();
97 }
98 
100 
102 
106 }
107 
109 
111  {"Letter", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
112  {"A4", 0, 0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
113  {0,0,0,0,0,0,0,0,0}
114 };
115 
116 #include <FL/Fl_Pixmap.H>
117 static const char *idata_print_color[] = {
118 "24 24 17 1",
119 " \tc None",
120 ".\tc #FFFF00",
121 "+\tc #C8FF00",
122 "@\tc #00FF00",
123 "#\tc #FFC800",
124 "$\tc #FF0000",
125 "%\tc #00FFFF",
126 "&\tc #000000",
127 "*\tc #FF00FF",
128 "=\tc #00FFC8",
129 "-\tc #FF00C8",
130 ";\tc #00C800",
131 ">\tc #C80000",
132 ",\tc #0000C8",
133 "\'\tc #0000FF",
134 ")\tc #00C8FF",
135 "!\tc #C800FF",
136 " ...... ",
137 " .......... ",
138 " ............ ",
139 " .............. ",
140 " .............. ",
141 " ................ ",
142 " ................ ",
143 " ................ ",
144 " +@@@@@@+#$$$$$$# ",
145 " %@@@@@@@&&$$$$$$$* ",
146 " %%@@@@@@&&&&$$$$$$** ",
147 " %%%=@@@@&&&&&&$$$$-*** ",
148 " %%%%@@@;&&&&&&>$$$**** ",
149 "%%%%%%@@&&&&&&&&$$******",
150 "%%%%%%%@&&&&&&&&$*******",
151 "%%%%%%%%,&&&&&&,********",
152 "%%%%%%%%\'\'\'\'\'\'\'\'********",
153 "%%%%%%%%\'\'\'\'\'\'\'\'********",
154 "%%%%%%%%\'\'\'\'\'\'\'\'********",
155 " %%%%%%%)\'\'\'\'\'\'!******* ",
156 " %%%%%%%%\'\'\'\'\'\'******** ",
157 " %%%%%%%%\'\'\'\'******** ",
158 " %%%%%%%%\'\'******** ",
159 " %%%%%% ****** "
160 };
162  static Fl_Image *image = new Fl_Pixmap(idata_print_color);
163  return image;
164 }
165 
166 static const char *idata_print_gray[] = {
167 "24 24 17 1",
168 " \tc None",
169 ".\tc #E3E3E3",
170 "+\tc #D2D2D2",
171 "@\tc #969696",
172 "#\tc #C2C2C2",
173 "$\tc #4C4C4C",
174 "%\tc #B2B2B2",
175 "&\tc #000000",
176 "*\tc #696969",
177 "=\tc #ACACAC",
178 "-\tc #626262",
179 ";\tc #767676",
180 ">\tc #3C3C3C",
181 ",\tc #161616",
182 "\'\tc #1C1C1C",
183 ")\tc #929292",
184 "!\tc #585858",
185 " ...... ",
186 " .......... ",
187 " ............ ",
188 " .............. ",
189 " .............. ",
190 " ................ ",
191 " ................ ",
192 " ................ ",
193 " +@@@@@@+#$$$$$$# ",
194 " %@@@@@@@&&$$$$$$$* ",
195 " %%@@@@@@&&&&$$$$$$** ",
196 " %%%=@@@@&&&&&&$$$$-*** ",
197 " %%%%@@@;&&&&&&>$$$**** ",
198 "%%%%%%@@&&&&&&&&$$******",
199 "%%%%%%%@&&&&&&&&$*******",
200 "%%%%%%%%,&&&&&&,********",
201 "%%%%%%%%\'\'\'\'\'\'\'\'********",
202 "%%%%%%%%\'\'\'\'\'\'\'\'********",
203 "%%%%%%%%\'\'\'\'\'\'\'\'********",
204 " %%%%%%%)\'\'\'\'\'\'!******* ",
205 " %%%%%%%%\'\'\'\'\'\'******** ",
206 " %%%%%%%%\'\'\'\'******** ",
207 " %%%%%%%%\'\'******** ",
208 " %%%%%% ****** "
209 };
211  static Fl_Image *image = new Fl_Pixmap(idata_print_gray);
212  return image;
213 }
214 
216 
217 static void cb_Save(Fl_Return_Button*, void*) {
219 
220 char name[1024];
221 int val;
222 const char *printer = (const char *)print_choice->menu()[print_choice->value()].user_data();
223 
224 snprintf(name, sizeof(name), "%s/page_size", printer);
226 
227 snprintf(name, sizeof(name), "%s/output_mode", printer);
228 for (val = 0; val < 4; val ++) {
229  if (print_output_mode[val]->value()) break;
230 }
231 fluid_prefs.set(name, val);
232 }
233 
234 static void cb_Cancel1(Fl_Button*, void*) {
237 }
238 
239 static void cb_Use(Fl_Button*, void*) {
241 }
242 
244  { print_panel = new Fl_Double_Window(465, 235, "Print");
245  { print_panel_controls = new Fl_Group(10, 10, 447, 216);
246  { print_choice = new Fl_Choice(113, 10, 181, 25, "Printer:");
251  } // Fl_Choice* print_choice
252  { print_properties = new Fl_Button(294, 10, 105, 25, "Properties...");
254  } // Fl_Button* print_properties
255  { print_status = new Fl_Box(111, 41, 288, 17, "printer/job status");
257  } // Fl_Box* print_status
258  { Fl_Group* o = new Fl_Group(10, 86, 227, 105, "Print Range");
259  o->box(FL_THIN_DOWN_BOX);
260  o->labelfont(1);
262  { print_all = new Fl_Round_Button(20, 96, 38, 25, "All");
263  print_all->type(102);
265  print_all->value(1);
267  } // Fl_Round_Button* print_all
268  { print_pages = new Fl_Round_Button(20, 126, 64, 25, "Pages");
269  print_pages->type(102);
272  } // Fl_Round_Button* print_pages
273  { print_selection = new Fl_Round_Button(20, 156, 82, 25, "Selection");
274  print_selection->type(102);
277  } // Fl_Round_Button* print_selection
278  { print_from = new Fl_Int_Input(136, 126, 28, 25, "From:");
279  print_from->type(2);
280  print_from->textfont(4);
282  } // Fl_Int_Input* print_from
283  { print_to = new Fl_Int_Input(199, 126, 28, 25, "To:");
284  print_to->type(2);
285  print_to->textfont(4);
286  print_to->deactivate();
287  } // Fl_Int_Input* print_to
288  o->end();
289  } // Fl_Group* o
290  { Fl_Group* o = new Fl_Group(247, 86, 210, 105, "Copies");
291  o->box(FL_THIN_DOWN_BOX);
292  o->labelfont(1);
294  { print_copies = new Fl_Spinner(321, 96, 45, 25, "# Copies:");
297  } // Fl_Spinner* print_copies
298  { print_collate_button = new Fl_Check_Button(376, 96, 64, 25, "Collate");
303  } // Fl_Check_Button* print_collate_button
304  { print_collate_group[0] = new Fl_Group(257, 131, 191, 50);
306  { Fl_Box* o = new Fl_Box(287, 141, 30, 40, "1");
307  o->box(FL_BORDER_BOX);
309  o->labelsize(11);
311  o->deactivate();
312  } // Fl_Box* o
313  { Fl_Box* o = new Fl_Box(272, 136, 30, 40, "1");
314  o->box(FL_BORDER_BOX);
316  o->labelsize(11);
318  o->deactivate();
319  } // Fl_Box* o
320  { Fl_Box* o = new Fl_Box(257, 131, 30, 40, "1");
321  o->box(FL_BORDER_BOX);
323  o->labelsize(11);
325  o->deactivate();
326  } // Fl_Box* o
327  { Fl_Box* o = new Fl_Box(352, 141, 30, 40, "2");
328  o->box(FL_BORDER_BOX);
330  o->labelsize(11);
332  o->deactivate();
333  } // Fl_Box* o
334  { Fl_Box* o = new Fl_Box(337, 136, 30, 40, "2");
335  o->box(FL_BORDER_BOX);
337  o->labelsize(11);
339  o->deactivate();
340  } // Fl_Box* o
341  { Fl_Box* o = new Fl_Box(322, 131, 30, 40, "2");
342  o->box(FL_BORDER_BOX);
344  o->labelsize(11);
346  o->deactivate();
347  } // Fl_Box* o
348  { Fl_Box* o = new Fl_Box(417, 141, 30, 40, "3");
349  o->box(FL_BORDER_BOX);
351  o->labelsize(11);
353  o->deactivate();
354  } // Fl_Box* o
355  { Fl_Box* o = new Fl_Box(402, 136, 30, 40, "3");
356  o->box(FL_BORDER_BOX);
358  o->labelsize(11);
360  o->deactivate();
361  } // Fl_Box* o
362  { Fl_Box* o = new Fl_Box(387, 131, 30, 40, "3");
363  o->box(FL_BORDER_BOX);
365  o->labelsize(11);
367  o->deactivate();
368  } // Fl_Box* o
369  print_collate_group[0]->end();
370  } // Fl_Group* print_collate_group[0]
371  { print_collate_group[1] = new Fl_Group(257, 131, 191, 50);
374  { Fl_Box* o = new Fl_Box(287, 141, 30, 40, "3");
375  o->box(FL_BORDER_BOX);
377  o->labelsize(11);
379  } // Fl_Box* o
380  { Fl_Box* o = new Fl_Box(272, 136, 30, 40, "2");
381  o->box(FL_BORDER_BOX);
383  o->labelsize(11);
385  } // Fl_Box* o
386  { Fl_Box* o = new Fl_Box(257, 131, 30, 40, "1");
387  o->box(FL_BORDER_BOX);
389  o->labelsize(11);
391  } // Fl_Box* o
392  { Fl_Box* o = new Fl_Box(352, 141, 30, 40, "3");
393  o->box(FL_BORDER_BOX);
395  o->labelsize(11);
397  } // Fl_Box* o
398  { Fl_Box* o = new Fl_Box(337, 136, 30, 40, "2");
399  o->box(FL_BORDER_BOX);
401  o->labelsize(11);
403  } // Fl_Box* o
404  { Fl_Box* o = new Fl_Box(322, 131, 30, 40, "1");
405  o->box(FL_BORDER_BOX);
407  o->labelsize(11);
409  } // Fl_Box* o
410  { Fl_Box* o = new Fl_Box(417, 141, 30, 40, "3");
411  o->box(FL_BORDER_BOX);
413  o->labelsize(11);
415  } // Fl_Box* o
416  { Fl_Box* o = new Fl_Box(402, 136, 30, 40, "2");
417  o->box(FL_BORDER_BOX);
419  o->labelsize(11);
421  } // Fl_Box* o
422  { Fl_Box* o = new Fl_Box(387, 131, 30, 40, "1");
423  o->box(FL_BORDER_BOX);
425  o->labelsize(11);
427  } // Fl_Box* o
428  print_collate_group[1]->end();
429  } // Fl_Group* print_collate_group[1]
430  o->end();
431  } // Fl_Group* o
432  { Fl_Return_Button* o = new Fl_Return_Button(309, 201, 70, 25, "Print");
434  } // Fl_Return_Button* o
435  { Fl_Button* o = new Fl_Button(389, 201, 68, 25, "Cancel");
437  } // Fl_Button* o
439  } // Fl_Group* print_panel_controls
440  { print_progress = new Fl_Progress(10, 203, 289, 21);
442  print_progress->hide();
443  } // Fl_Progress* print_progress
445  print_panel->end();
446  } // Fl_Double_Window* print_panel
447  { print_properties_panel = new Fl_Double_Window(290, 130, "Printer Properties");
449  { print_page_size = new Fl_Choice(110, 10, 80, 25, "Page Size:");
454  } // Fl_Choice* print_page_size
455  { Fl_Group* o = new Fl_Group(110, 45, 170, 40, "Output Mode:");
456  o->labelfont(1);
457  o->labelsize(12);
459  { print_output_mode[0] = new Fl_Button(110, 45, 30, 40);
460  print_output_mode[0]->type(102);
463  print_output_mode[0]->value(1);
467  } // Fl_Button* print_output_mode[0]
468  { print_output_mode[1] = new Fl_Button(150, 50, 40, 30);
469  print_output_mode[1]->type(102);
475  } // Fl_Button* print_output_mode[1]
476  { print_output_mode[2] = new Fl_Button(200, 45, 30, 40);
477  print_output_mode[2]->type(102);
483  } // Fl_Button* print_output_mode[2]
484  { print_output_mode[3] = new Fl_Button(240, 50, 40, 30);
485  print_output_mode[3]->type(102);
491  } // Fl_Button* print_output_mode[3]
492  o->end();
493  } // Fl_Group* o
494  { Fl_Return_Button* o = new Fl_Return_Button(123, 95, 79, 25, "Save");
496  } // Fl_Return_Button* o
497  { Fl_Button* o = new Fl_Button(212, 95, 68, 25, "Cancel");
499  } // Fl_Button* o
500  { Fl_Button* o = new Fl_Button(60, 95, 53, 25, "Use");
502  } // Fl_Button* o
505  } // Fl_Double_Window* print_properties_panel
506  return print_properties_panel;
507 }
508 void print_cb(Fl_Return_Button *, void *);
509 
510 void print_load() {
511  FILE *lpstat;
512  char line[1024], name[1024], *nptr, qname[2048], *qptr, defname[1024];
513  int i;
514 
515  if (print_choice->size() > 1) {
516  for (i = 1; print_choice->text(i); i ++) {
517  free(print_choice->menu()[i].user_data());
518  }
519  }
520 
521  print_choice->clear();
522  print_choice->add("Print To File", 0, 0, 0, FL_MENU_DIVIDER);
523  print_choice->value(0);
524 
525  defname[0] = '\0';
526 
527  if ((lpstat = popen("LC_MESSAGES=C LANG=C lpstat -p -d", "r")) != NULL) {
528  while (fgets(line, sizeof(line), lpstat)) {
529  if (!strncmp(line, "printer ", 8) &&
530  sscanf(line + 8, "%s", name) == 1) {
531  for (nptr = name, qptr = qname; *nptr; *qptr++ = *nptr++) {
532  if (*nptr == '/') *qptr++ = '\\';
533  }
534  *qptr = '\0';
535 
536  print_choice->add(qname, 0, 0, (void *)strdup(name), 0);
537  } else if (!strncmp(line, "system default destination: ", 28)) {
538  if (sscanf(line + 28, "%s", defname) != 1) defname[0] = '\0';
539  }
540  }
541  pclose(lpstat);
542  }
543 
544  if (defname[0]) {
545  for (i = 1; print_choice->text(i); i ++) {
546  if (!strcmp((char *)print_choice->menu()[i].user_data(), defname)) {
547  print_choice->value(i);
548  break;
549  }
550  }
551  } else if (print_choice->size() > 2) print_choice->value(1);
552 
553 
555 }
556 
558  FILE *lpstat;
559  char command[1024];
560  static char status[1024];
561  const char *printer = (const char *)print_choice->menu()[print_choice->value()].user_data();
562 
563  if (print_choice->value()) {
564  snprintf(command, sizeof(command), "lpstat -p '%s'", printer);
565  if ((lpstat = popen(command, "r")) != NULL) {
566  if (fgets(status, sizeof(status), lpstat)==0) { /* ignore */ }
567  pclose(lpstat);
568  } else strcpy(status, "printer status unavailable");
569  } else status[0] = '\0';
570 
571  print_status->label(status);
572 
573  char name[1024];
574  int val;
575 
576  snprintf(name, sizeof(name), "%s/page_size", printer);
577  fluid_prefs.get(name, val, 0);
578  print_page_size->value(val);
579 
580  snprintf(name, sizeof(name), "%s/output_mode", printer);
581  fluid_prefs.get(name, val, 0);
582  print_output_mode[val]->setonly();
583 }
584 
585 //
586 // End of "$Id$".
587 //
cb_print_all
static void cb_print_all(Fl_Round_Button *, void *)
Definition: print_panel.cxx:48
Fl_Pixmap.H
FL_ALIGN_LEFT
const Fl_Align FL_ALIGN_LEFT
Definition: Enumerations.H:839
Fl_Choice
A button that is used to pop up a menu.
Definition: Fl_Choice.H:83
print_copies
Fl_Spinner * print_copies
Definition: print_panel.cxx:71
Fl_Widget::activate
void activate()
Definition: Fl_Widget.cxx:241
menu_print_page_size
Fl_Menu_Item menu_print_page_size[]
Definition: print_panel.cxx:110
cb_print_copies
static void cb_print_copies(Fl_Spinner *, void *)
Definition: print_panel.cxx:73
Fl_Widget::align
Fl_Align align() const
Definition: Fl_Widget.H:348
cb_Cancel
static void cb_Cancel(Fl_Button *, void *)
Definition: print_panel.cxx:95
Fl_Button::value
int value(int v)
Definition: Fl_Button.cxx:41
Fl_Round_Button
Definition: Fl_Round_Button.H:36
Fl_Color
unsigned int Fl_Color
Definition: Enumerations.H:934
print_load
void print_load()
Definition: print_panel.cxx:510
Fl_Button::setonly
void setonly()
Definition: Fl_Button.cxx:59
Fl_Group::end
void end()
Definition: Fl_Group.cxx:75
Fl_Menu_::menu
const Fl_Menu_Item * menu() const
Definition: Fl_Menu_.H:110
print_cb
void print_cb(Fl_Return_Button *, void *)
Definition: print_panel.cxx:511
Fl_Button::down_box
Fl_Boxtype down_box() const
Definition: Fl_Button.H:152
Fl_Widget::show
virtual void show()
Definition: Fl_Widget.cxx:271
Fl_Image
Base class for image caching and drawing.
Definition: Fl_Image.H:55
Fl_Int_Input
Definition: Fl_Int_Input.H:31
Fl_Menu_::add
int add(const char *, int shortcut, Fl_Callback *, void *=0, int=0)
Definition: Fl_Menu_add.cxx:332
Fl_Button
Buttons generate callbacks when they are clicked by the user.
Definition: Fl_Button.H:79
print_progress
Fl_Progress * print_progress
Definition: print_panel.cxx:99
Fl_Widget::labelfont
Fl_Font labelfont() const
Definition: Fl_Widget.H:487
FL_ROUND_DOWN_BOX
#define FL_ROUND_DOWN_BOX
Definition: Enumerations.H:665
free
void free()
print_update_status
void print_update_status()
Definition: print_panel.cxx:557
NULL
#define NULL
Definition: forms.H:34
cb_print_properties
static void cb_print_properties(Fl_Button *, void *)
Definition: print_panel.cxx:40
Fl_Progress
Definition: Fl_Progress.H:38
print_selection
Fl_Round_Button * print_selection
Definition: print_panel.cxx:60
idata_print_color
static const char * idata_print_color[]
Definition: print_panel.cxx:117
print_panel
Fl_Double_Window * print_panel
Definition: print_panel.cxx:28
Fl_Widget::when
Fl_When when() const
Definition: Fl_Widget.H:621
Fl_Callback
void() Fl_Callback(Fl_Widget *, void *)
Definition: Fl_Widget.H:49
snprintf
#define snprintf
Definition: flstring.h:64
print_properties_panel
Fl_Double_Window * print_properties_panel
Definition: print_panel.cxx:101
fluid_prefs
Fl_Preferences fluid_prefs
FL_FOREGROUND_COLOR
const Fl_Color FL_FOREGROUND_COLOR
the default foreground color (0) used for labels and text
Definition: Enumerations.H:937
FL_ALIGN_INSIDE
const Fl_Align FL_ALIGN_INSIDE
Definition: Enumerations.H:843
Fl_Widget::color
Fl_Color color() const
Definition: Fl_Widget.H:378
FL_WHEN_CHANGED
Do the callback only when the widget value changes.
Definition: Enumerations.H:441
Fl_Menu_Item::user_data
void * user_data() const
Definition: Fl_Menu_Item.H:251
print_all
Fl_Round_Button * print_all
Definition: print_panel.cxx:46
Fl_Widget::selection_color
Fl_Color selection_color() const
Definition: Fl_Widget.H:396
cb_Use
static void cb_Use(Fl_Button *, void *)
Definition: print_panel.cxx:239
make_print_panel
Fl_Double_Window * make_print_panel()
Definition: print_panel.cxx:243
print_from
Fl_Int_Input * print_from
Definition: print_panel.cxx:67
command
static unsigned int command(const char *cmd)
Definition: Fl_Help_View.cxx:3018
FL_ALIGN_TOP_LEFT
const Fl_Align FL_ALIGN_TOP_LEFT
Definition: Enumerations.H:858
Fl_Pixmap
Definition: Fl_Pixmap.H:41
FL_DOWN_BOX
see figure 1
Definition: Enumerations.H:608
Fl_Spinner::value
double value() const
Definition: Fl_Spinner.H:230
Fl_Window::set_modal
void set_modal()
Definition: Fl_Window.H:289
cb_print_properties_panel
static void cb_print_properties_panel(Fl_Double_Window *, void *)
Definition: print_panel.cxx:103
Fl_Preferences::get
char get(const char *entry, int &value, int defaultValue)
Definition: Fl_Preferences.cxx:509
cb_print_selection
static void cb_print_selection(Fl_Round_Button *, void *)
Definition: print_panel.cxx:62
Fl_Preferences::set
char set(const char *entry, int value)
Definition: Fl_Preferences.cxx:525
image_print_gray
static Fl_Image * image_print_gray()
Definition: print_panel.cxx:210
Fl_Choice::value
int value() const
Definition: Fl_Choice.H:95
cb_Save
static void cb_Save(Fl_Return_Button *, void *)
Definition: print_panel.cxx:217
Fl_Return_Button
Definition: Fl_Return_Button.H:33
Fl_Double_Window::hide
void hide()
Definition: Fl_Double_Window.cxx:505
Fl_Widget::hide
virtual void hide()
Definition: Fl_Widget.cxx:283
FL_BORDER_BOX
see figure 1
Definition: Enumerations.H:619
Fl_Menu_::down_box
Fl_Boxtype down_box() const
Definition: Fl_Menu_.H:173
Fl_Widget::deactivate
void deactivate()
Definition: Fl_Widget.cxx:253
print_properties
Fl_Button * print_properties
Definition: print_panel.cxx:38
Fl_Group
Definition: Fl_Group.H:41
Fl_Widget::box
Fl_Boxtype box() const
Definition: Fl_Widget.H:363
Fl_Input_::textfont
Fl_Font textfont() const
Definition: Fl_Input_.H:386
print_panel_controls
Fl_Group * print_panel_controls
Definition: print_panel.cxx:30
print_panel.h
Fl_Widget::label
const char * label() const
Definition: Fl_Widget.H:421
Fl_Menu_::text
const char * text() const
Definition: Fl_Menu_.H:150
print_to
Fl_Int_Input * print_to
Definition: print_panel.cxx:69
print_output_mode
Fl_Button * print_output_mode[4]
Definition: print_panel.cxx:215
FL_MENU_DIVIDER
Creates divider line below this item. Also ends a group of radio buttons.
Definition: Fl_Menu_Item.H:40
Fl_Box
Definition: Fl_Box.H:34
print_choice
Fl_Choice * print_choice
Definition: print_panel.cxx:32
Fl_Widget::callback
Fl_Callback_p callback() const
Definition: Fl_Widget.H:561
FL_BACKGROUND2_COLOR
const Fl_Color FL_BACKGROUND2_COLOR
the default background color for text, list, and valuator widgets
Definition: Enumerations.H:938
cb_print_choice
static void cb_print_choice(Fl_Choice *, void *)
Definition: print_panel.cxx:34
Fl_Double_Window
Definition: Fl_Double_Window.H:40
Fl_Menu_Item
Definition: Fl_Menu_Item.H:112
print_page_size
Fl_Choice * print_page_size
Definition: print_panel.cxx:108
FL_NORMAL_LABEL
draws the text (0)
Definition: Enumerations.H:764
Fl_Preferences
Fl_Preferences provides methods to store user settings between application starts.
Definition: Fl_Preferences.H:60
cb_print_collate_button
static void cb_print_collate_button(Fl_Check_Button *, void *)
Definition: print_panel.cxx:87
Fl_Widget::type
uchar type() const
Definition: Fl_Widget.H:274
idata_print_gray
static const char * idata_print_gray[]
Definition: print_panel.cxx:166
print_status
Fl_Box * print_status
Definition: print_panel.cxx:44
Fl_Double_Window::show
void show()
Definition: Fl_Double_Window.cxx:79
Fl_Preferences.H
image_print_color
static Fl_Image * image_print_color()
Definition: print_panel.cxx:161
Fl_Widget::labelsize
Fl_Fontsize labelsize() const
Definition: Fl_Widget.H:502
Fl_Align
unsigned Fl_Align
Definition: Enumerations.H:828
cb_Cancel1
static void cb_Cancel1(Fl_Button *, void *)
Definition: print_panel.cxx:234
print_collate_group
Fl_Group * print_collate_group[2]
Definition: print_panel.cxx:93
uchar
unsigned char uchar
Definition: fl_types.h:30
Fl_Menu_::clear
void clear()
Definition: Fl_Menu_.cxx:457
print_collate_button
Fl_Check_Button * print_collate_button
Definition: print_panel.cxx:85
name
static const char * name
Definition: Fl_arg.cxx:53
print_pages
Fl_Round_Button * print_pages
Definition: print_panel.cxx:53
Fl_Check_Button
A button with a "checkmark" to show its status.
Definition: Fl_Check_Button.H:30
cb_print_pages
static void cb_print_pages(Fl_Round_Button *, void *)
Definition: print_panel.cxx:55
Fl_Widget::image
Fl_Image * image()
Definition: Fl_Widget.H:514
Fl_Spinner
Definition: Fl_Spinner.H:45
Fl_Menu_::size
int size() const
Definition: Fl_Menu_.cxx:407
FL_ALIGN_BOTTOM_RIGHT
const Fl_Align FL_ALIGN_BOTTOM_RIGHT
Definition: Enumerations.H:861
FL_THIN_DOWN_BOX
see figure 1
Definition: Enumerations.H:612