Author: manolo
Date: 2010-03-12 10:11:35 -0800 (Fri, 12 Mar 2010)
New Revision: 7247
Log:
Copy # option activated/collate option deactivated because unsupported yet.

Modified:
   branches/branch-1.3-Fl_Printer/src/Fl_PS_Printer.cxx
   branches/branch-1.3-Fl_Printer/src/print_panel.cxx

Modified: branches/branch-1.3-Fl_Printer/src/Fl_PS_Printer.cxx
===================================================================
--- branches/branch-1.3-Fl_Printer/src/Fl_PS_Printer.cxx        2010-03-12 
13:23:54 UTC (rev 7246)
+++ branches/branch-1.3-Fl_Printer/src/Fl_PS_Printer.cxx        2010-03-12 
18:11:35 UTC (rev 7247)
@@ -1243,7 +1243,6 @@
   print_all->do_callback();
   print_from->value("1");
   { char tmp[10]; snprintf(tmp, sizeof(tmp), "%d", pages); 
print_to->value(tmp); }
-  print_copies->parent()->deactivate(); // TODO: manage copy # and collate 
options
   print_panel->show(); // this is modal
   while (print_panel->shown()) Fl::wait();
   
@@ -1284,8 +1283,8 @@
   // Print: pipe the output into the lp command...
 
   char command[1024];
-  snprintf(command, sizeof(command), "lp -s -d %s -n %.0f -t '%s' -o media=%s",
-             printer, print_collate_button->value() ? 1.0 : 
print_copies->value(),
+  snprintf(command, sizeof(command), "lp -s -d %s -n %d -t '%s' -o media=%s",
+             printer, print_collate_button->value() ? 1 : 
(int)(print_copies->value() + 0.5),
             "FLTK", media);
 
   output = popen(command, "w");

Modified: branches/branch-1.3-Fl_Printer/src/print_panel.cxx
===================================================================
--- branches/branch-1.3-Fl_Printer/src/print_panel.cxx  2010-03-12 13:23:54 UTC 
(rev 7246)
+++ branches/branch-1.3-Fl_Printer/src/print_panel.cxx  2010-03-12 18:11:35 UTC 
(rev 7247)
@@ -99,9 +99,9 @@
     print_collate_group[0]->deactivate();
     print_collate_group[1]->deactivate();
   } else {
-    print_collate_button->activate();
+/*    print_collate_button->activate(); // TODO: manage collate options
     print_collate_group[0]->activate();
-    print_collate_group[1]->activate();
+    print_collate_group[1]->activate(); */
   };
 }
 

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to