summaryrefslogtreecommitdiff
path: root/src/print_panel.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-01 18:03:10 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-06 20:28:20 +0200
commitf09e17c3c564e8310125a10c03397cbf473ff643 (patch)
tree8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /src/print_panel.cxx
parentb0e0c355edaa2e23148cb0260ada907aec930f05 (diff)
Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
Diffstat (limited to 'src/print_panel.cxx')
-rw-r--r--src/print_panel.cxx28
1 files changed, 11 insertions, 17 deletions
diff --git a/src/print_panel.cxx b/src/print_panel.cxx
index b5fc1d5aa..617b9938d 100644
--- a/src/print_panel.cxx
+++ b/src/print_panel.cxx
@@ -1,6 +1,4 @@
//
-// "$Id$"
-//
// Print panel for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2017 by Bill Spitzak and others.
@@ -9,11 +7,11 @@
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
-// http://www.fltk.org/COPYING.php
+// https://www.fltk.org/COPYING.php
//
-// Please report all bugs and problems on the following page:
+// Please see the following page on how to report bugs and issues:
//
-// http://www.fltk.org/str.php
+// https://www.fltk.org/bugs.php
//
//
@@ -25,11 +23,11 @@
//
// Todo:
//
-// - Currently preferences can't be saved, and there are options that
-// are not yet used for printing.
-// - This file can only be used as an include file in Fl_PS_Printer.cxx
-// - The use of static variables should be avoided.
-// - Probably much more ...
+// - Currently preferences can't be saved, and there are options that
+// are not yet used for printing.
+// - This file can only be used as an include file in Fl_PS_Printer.cxx
+// - The use of static variables should be avoided.
+// - Probably much more ...
//
#include "print_panel.h"
@@ -56,7 +54,7 @@ static Fl_Int_Input *print_from=(Fl_Int_Input *)0;
static Fl_Int_Input *print_to=(Fl_Int_Input *)0;
static Fl_Spinner *print_copies=(Fl_Spinner *)0;
-static int print_start = 0; // 1 if print_okay has been clicked
+static int print_start = 0; // 1 if print_okay has been clicked
static void cb_print_choice(Fl_Choice*, void*) {
print_update_status();
@@ -529,7 +527,7 @@ printing_style print_load() { // return whether SystemV or BSD printing style is
print_choice->clear();
print_choice->add(Fl_Printer::dialog_print_to_file, 0, 0, 0, FL_MENU_DIVIDER);
print_choice->value(0);
-
+
print_start = 0;
defname[0] = '\0';
@@ -550,7 +548,7 @@ printing_style print_load() { // return whether SystemV or BSD printing style is
}
pclose(lpstat);
}
-
+
if (print_choice->size() == 2 && (lpstat = fopen("/etc/printcap", "r"))) { // try next with BSD printing system
while (fgets(line, sizeof(line),lpstat)) { // get names of all known printers
if (*line == '#' || (p = strchr(line, '|')) == NULL) continue;
@@ -621,7 +619,3 @@ void print_update_status() {
print_prefs.get(name, val, 0);
print_output_mode[val]->setonly();
}
-
-//
-// End of "$Id$".
-//