Hello community,
here is the log from the commit of package yast2-printer
checked in at Tue Apr 1 12:54:04 CEST 2008.
--------
--- yast2-printer/yast2-printer.changes 2008-03-11 19:04:42.000000000 +0100
+++ /mounts/work_src_done/STABLE/yast2-printer/yast2-printer.changes 2008-03-31 13:43:41.000000000 +0200
@@ -1,0 +2,12 @@
+Fri Mar 28 22:19:11 CET 2008 - mzugec@suse.de
+
+- ComboBox to switch between Local and Remote printers (FaTE#302133)
+- Print test page in overview dialog
+- 2.16.10
+
+-------------------------------------------------------------------
+Mon Mar 17 12:43:32 CET 2008 - jsrain@suse.cz
+
+- added 'StartupNotify=true' to the desktop file (bnc #304964)
+
+-------------------------------------------------------------------
Old:
----
yast2-printer-2.16.9.tar.bz2
New:
----
yast2-printer-2.16.10.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-printer.spec ++++++
--- /var/tmp/diff_new_pack.Z25771/_old 2008-04-01 12:53:40.000000000 +0200
+++ /var/tmp/diff_new_pack.Z25771/_new 2008-04-01 12:53:40.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-printer (Version 2.16.9)
+# spec file for package yast2-printer (Version 2.16.10)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -13,12 +13,12 @@
Url: http://en.opensuse.org/YaST/Modules/Printer
Name: yast2-printer
-Version: 2.16.9
+Version: 2.16.10
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-printer-2.16.9.tar.bz2
+Source0: yast2-printer-2.16.10.tar.bz2
Prefix: /usr
BuildRequires: blocxx-devel cups-devel cups-drivers cups-drivers-stp docbook-xsl-stylesheets doxygen gcc-c++ libxcrypt-devel libxslt openssl-devel perl-XML-Writer popt-devel sgml-skel update-desktop-files yast2 yast2-core-devel yast2-devtools yast2-testsuite zlib-devel
Requires: zlib blocxx
@@ -33,6 +33,7 @@
Summary: YaST2 - Printer Configuration
%package devel-doc
+License: GPL v2 or later
Group: Documentation/SUSE
BuildRequires: cups-devel yast2-core-devel zlib-devel
Summary: YaST2 - Developer documentation for yast2-printer
@@ -57,7 +58,7 @@
Michal Zugec
%prep
-%setup -n yast2-printer-2.16.9
+%setup -n yast2-printer-2.16.10
%build
%{prefix}/bin/y2tool y2autoconf
@@ -138,6 +139,12 @@
%exclude %{prefix}/share/doc/packages/yast2-printer/COPYING
%exclude %{prefix}/share/doc/packages/yast2-printer/README
%changelog
+* Fri Mar 28 2008 mzugec@suse.de
+- ComboBox to switch between Local and Remote printers (FaTE#302133)
+- Print test page in overview dialog
+- 2.16.10
+* Mon Mar 17 2008 jsrain@suse.cz
+- added 'StartupNotify=true' to the desktop file (bnc #304964)
* Mon Mar 10 2008 mzugec@suse.de
- adapt parport agent to new cut (bnc#359893)
- 2.16.9
++++++ yast2-printer-2.16.9.tar.bz2 -> yast2-printer-2.16.10.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-printer-2.16.9/configure new/yast2-printer-2.16.10/configure
--- old/yast2-printer-2.16.9/configure 2008-03-10 18:50:35.000000000 +0100
+++ new/yast2-printer-2.16.10/configure 2008-03-28 22:15:04.000000000 +0100
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.61 for yast2-printer 2.16.8.
+# Generated by GNU Autoconf 2.61 for yast2-printer 2.16.9.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -728,8 +728,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-printer'
PACKAGE_TARNAME='yast2-printer'
-PACKAGE_VERSION='2.16.8'
-PACKAGE_STRING='yast2-printer 2.16.8'
+PACKAGE_VERSION='2.16.9'
+PACKAGE_STRING='yast2-printer 2.16.9'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -1451,7 +1451,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures yast2-printer 2.16.8 to adapt to many kinds of systems.
+\`configure' configures yast2-printer 2.16.9 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1522,7 +1522,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-printer 2.16.8:";;
+ short | recursive ) echo "Configuration of yast2-printer 2.16.9:";;
esac
cat <<\_ACEOF
@@ -1628,7 +1628,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-yast2-printer configure 2.16.8
+yast2-printer configure 2.16.9
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1642,7 +1642,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by yast2-printer $as_me 2.16.8, which was
+It was created by yast2-printer $as_me 2.16.9, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
@@ -2463,7 +2463,7 @@
# Define the identity of the package.
PACKAGE='yast2-printer'
- VERSION='2.16.8'
+ VERSION='2.16.9'
cat >>confdefs.h <<_ACEOF
@@ -2691,7 +2691,7 @@
-VERSION="2.16.8"
+VERSION="2.16.9"
RPMNAME="yast2-printer"
MAINTAINER="Michal Zugec "
@@ -22979,7 +22979,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by yast2-printer $as_me 2.16.8, which was
+This file was extended by yast2-printer $as_me 2.16.9, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -23032,7 +23032,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-printer config.status 2.16.8
+yast2-printer config.status 2.16.9
configured by $0, generated by GNU Autoconf 2.61,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-printer-2.16.9/configure.in new/yast2-printer-2.16.10/configure.in
--- old/yast2-printer-2.16.9/configure.in 2008-03-10 18:50:03.000000000 +0100
+++ new/yast2-printer-2.16.10/configure.in 2008-03-28 22:14:44.000000000 +0100
@@ -1,9 +1,9 @@
dnl configure.in for yast2-printer
dnl
-dnl -- This file is generated by y2autoconf 2.16.3 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.16.7 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-printer, 2.16.8, http://bugs.opensuse.org/, yast2-printer)
+AC_INIT(yast2-printer, 2.16.9, http://bugs.opensuse.org/, yast2-printer)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -18,7 +18,7 @@
AM_INIT_AUTOMAKE(tar-ustar -Wno-portability)
dnl Important YaST2 variables
-VERSION="2.16.8"
+VERSION="2.16.9"
RPMNAME="yast2-printer"
MAINTAINER="Michal Zugec "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-printer-2.16.9/src/common/dialogs.ycp new/yast2-printer-2.16.10/src/common/dialogs.ycp
--- old/yast2-printer-2.16.9/src/common/dialogs.ycp 2008-03-10 11:55:19.000000000 +0100
+++ new/yast2-printer-2.16.10/src/common/dialogs.ycp 2008-03-28 22:31:26.000000000 +0100
@@ -8,7 +8,7 @@
* Authors:
* Petr Blahos
*
- * $Id: dialogs.ycp 45113 2008-02-29 09:39:26Z mzugec $
+ * $Id: dialogs.ycp 45881 2008-03-31 11:33:49Z mzugec $
* Main dialogs.
*/
{
@@ -265,12 +265,12 @@
return ret;
}
- /**
- * Run dialog
- * @return symbol `back, `next, `abort
- */
- define symbol runDownloadPpdFile () ``{
- term contents = `HBox (`HStretch (),
+/**
+ * Run dialog
+ * @return symbol `back, `next, `abort
+ */
+ define symbol runDownloadPpdFile () ``{
+ term contents = `HBox (`HStretch (),
`VBox (
`VStretch (),
// text entry label
@@ -547,9 +547,7 @@
all_ppds
// push button
? `PushButton (`id (`select_model), _("Select &Model"))
- : `HSpacing (0),
- // pushbutton
- `HWeight (1, `PushButton (`id (`test), `opt (`key_F6), _("&Test Printing")))
+ : `HSpacing (0)
),
`VSpacing (1)
),
@@ -631,28 +629,6 @@
{
ret = reallyAbort () ? `abort : nil;
}
- if (`test == ret)
- {
- map tmpPrinter = Printer::printer;
- file = (string)
- UI::QueryWidget (`id (`selection), `CurrentItem);
- // Why this? The new selected configuration cannot be tested
- // before saving:
- boolean new_file_created = false;
- if (orig_file != file)
- {
- tmpPrinter["options"] = $[];
- tmpPrinter = adjustPaperSize (tmpPrinter);
- string filename = (string)SCR::Read (.ppd.file.open,
- [file, SCR::Read (.target.tmpdir)]);
- tmpPrinter["ppd"] = filename;
- tmpPrinter["ppd_info"] = Printerdb::PpdInfo (filename);
- new_file_created = true;
- }
- PrinterTest::testPrinter (tmpPrinter, `ask);
- if (new_file_created)
- SCR::Execute (.target.remove, tmpPrinter["ppd"]:"");
- }
ret = UI::UserInput ();
if (ret == `cancel)
ret = `abort;
@@ -758,19 +734,13 @@
raw_insert,
ff_insert,
`VSpacing (allow_auto ? 0.5 : 0)
-// aa_insert,
-// `VSpacing (0.5)
);
contents = `HBox (`HSpacing (4),
`VBox (
// frame label
`Frame (_("Queue Name and Spooler Settings"), contents),
`VSpacing (is_class ? 0 : 1),
- is_class
- ? `VSpacing (0)
- : `PushButton (`id (`test), `opt (`key_F6),
- // push button
- _("&Test Printing"))
+ `VSpacing (0)
), `HSpacing (4));
// dialog box label
@@ -786,7 +756,7 @@
Wizard::RestoreAbortButton ();
UI::ChangeWidget (`id (`name), `ValidChars, "-_0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
// disable test printing when local filtering (#186597)
- UI::ChangeWidget(`test, `Enabled, raw);
+// UI::ChangeWidget(`test, `Enabled, raw);
if (name == "")
{
@@ -821,7 +791,7 @@
raw = ! (boolean)UI::QueryWidget (`id (`raw), `Value);
UI::ChangeWidget (`id (`raw), `Enabled, false);
UI::ChangeWidget (`id (`raw), `Value, true);
- UI::ChangeWidget (`id (`test), `Enabled, false);
+// UI::ChangeWidget (`id (`test), `Enabled, false);
}
if (Spooler::Get () != "cups")
{
@@ -840,7 +810,7 @@
{
UI::ChangeWidget (`id (`raw), `Enabled, true);
UI::ChangeWidget (`id (`raw), `Value, ! raw);
- UI::ChangeWidget (`id (`test), `Enabled, true);
+// UI::ChangeWidget (`id (`test), `Enabled, true);
}
if (Spooler::Get () != "cups")
{
@@ -849,21 +819,6 @@
}
}
break;
- case `test :
- // error report
-/*
- Report::Error (_("Queues that do local filtering cannot be tested
-here. Proceed to the next dialog to select the printer model
-and test the queue after the printer model is selected."));
-*/
- map p = Printer::printer;
- if (Spooler::Get () != "cups")
- p["ff"] = UI::QueryWidget (`id (`ff), `Value);
- p["name"] = UI::QueryWidget (`id (`name), `Value);
- p["raw"] = true;
- PrinterTest::testPrinter (p, `ask);
- ret = nil;
- break;
case `next:
if (! is_class)
raw = ! (boolean)UI::QueryWidget (`id (`raw), `Value);
@@ -889,7 +844,7 @@
break;
// disable test printing when local filtering (#186597)
case `raw :
- UI::ChangeWidget(`test, `Enabled, !(boolean)UI::QueryWidget(`raw, `Value));
+// UI::ChangeWidget(`test, `Enabled, !(boolean)UI::QueryWidget(`raw, `Value));
break;
}
} until (`abort == ret || ret == `back || ret == `next);
@@ -1098,15 +1053,10 @@
any vals = nil;
- term test_button =`HWeight (1, `PushButton (`id (`test), `opt (`key_F6),
- // pushbutton
- _("&Test")));
-
// dialog caption
Wizard::SetContentsButtons (_("Configuration Options"), `VBox (
`VWeight (1, `ReplacePoint (`id (`upper), `VSpacing (1))),
- `VWeight (1, `ReplacePoint (`id (`lower), `VSpacing (1))),
- `HBox (`HStretch (), test_button, `HStretch ())
+ `VWeight (1, `ReplacePoint (`id (`lower), `VSpacing (1)))
), getFilterHelp (), Label::BackButton (),Label::NextButton ());
Wizard::RestoreBackButton ();
Wizard::RestoreAbortButton ();
@@ -1175,14 +1125,7 @@
while (`next != ret && `back != ret && `abort != ret)
{
- if (`test == ret)
- {
- map tmp_printer = Printer::printer;
- tmp_printer["options"] = selected;
- tmp_printer["ppd_options"] = ppd_selected;
- PrinterTest::testPrinter (tmp_printer, `ask);
- }
- else if (`opts == ret)
+ if (`opts == ret)
{
option = (string)UI::QueryWidget (`id (`opts), `CurrentItem);
string ppd_default = "";
@@ -1341,19 +1284,6 @@
Printer::printer["options"] = selected;
Printer::printer["ppd_options"] = ppd_selected;
-/*
- // fixed #164851 - check for conflict choices in PPD
- string src_ppd = Printer::printer["ppd"]:"";
- string dst_ppd = (string)SCR::Read (.target.tmpdir) + "/patched_ppd_" + Printer::printer["name"]:"";
- SCR::Write (.ppd.file.modify,[src_ppd, dst_ppd, Printer::printer["ppd_options"]:$[]]);
- string warning = parseWarn( ((map)SCR::Execute(.target.bash_output,
- "cupstestppd $PPD", $["PPD":dst_ppd]))["stdout"]:"");
- SCR::Execute(.target.remove, dst_ppd);
- if (size(warning)>0){
- Popup::Error(warning);
- }
-*/
-//saveOptions();
}
return (symbol)ret;
@@ -1464,10 +1394,7 @@
_("Current Values")), items),
`HBox (
// push button
- `PushButton (`id (`edit), `opt (`key_F4), Label::EditButton ()),
- `HStretch (),
- // push button
- "class" == uri_type ? `HSpacing (0.1) : `PushButton (`id (`test), `opt (`key_F6), _("&Test"))
+ `PushButton (`id (`edit), `opt (`key_F4), Label::EditButton ())
)
),
`HSpacing (1)
@@ -1491,33 +1418,24 @@
createEditDialog ();
if (Printer::printer["type"]:"yast2" == "yast2")
{
- UI::ChangeWidget (`id (`test), `Enabled, true);
+// UI::ChangeWidget (`id (`test), `Enabled, true);
UI::ChangeWidget (`id (`edit), `Enabled, true);
}
else
{
- UI::ChangeWidget (`id (`test), `Enabled, false);
+// UI::ChangeWidget (`id (`test), `Enabled, false);
UI::ChangeWidget (`id (`edit), `Enabled, false);
}
- UI::ChangeWidget(`test, `Enabled, Printer::printer["raw"]:false);
+// UI::ChangeWidget(`test, `Enabled, Printer::printer["raw"]:false);
while (nil == ret)
{
UI::SetFocus (`id (`options));
ret = UI::UserInput ();
- if (ret == `options)
- {
- ret = `edit;
- }
- if (`edit == ret)
+ if (ret == `options || ret == `edit)
{
ret = UI::QueryWidget (`id (`options), `CurrentItem);
}
- if (`test == ret)
- {
- ret = nil;
- PrinterTest::testPrinter (Printer::printer, `ask);
- }
else if (`abort == ret || `cancel == ret)
{
ret = reallyAbort () ? `abort : nil;
@@ -1560,7 +1478,7 @@
}
}
}
- else if (`connection == ret)
+ if (`connection == ret)
{
string uri = Printer::printer["uri"]:"";
string uri_type = URL::Parse(uri)["scheme"]:"";
@@ -1633,262 +1551,6 @@
return (symbol)ret;
}
- /**
- * Start dialog with advanced spooler settings
- * @return symbol for wizzard seq
- */
-/*
- define symbol runAdvancedDialog () ``{
- string new_spooler = Spooler::Get ();
- if (new_spooler == "cups"
- && CUPS::InstallationType () == `client)
- {
- new_spooler = "cups-client";
- }
-
- // this avoids problem with unread CUPS settings in the proposal
- // see bug #46822
- if (CUPS::cups_server_settings == nil
- || CUPS::cups_server_permissions == nil)
- {
- CUPS::ReadCupsSettings ();
- }
-
- term contents = `VBox (
- `VSpacing (1),
- `HBox (
- `HSpacing (1),
- `VBox (
- `VStretch (),
- `HBox (
- `HStretch (),
- // frame
- `Frame (_("Spooler"),
- Spooler::getSpoolerItems (new_spooler, false)
- ),
- `HStretch ()
- ),
- `VStretch (),
- // checkbox
- `CheckBox (`id (`save), _("&Force Saving Everything"),
- Printer::save_all),
- `VStretch (),
- `HBox (`HWeight (999, `HStretch ()), `VBox (
- `PushButton (`id (`reinstall), `opt (`hstretch),
- // pushbutton
- _("Re&install Printing Packages")),
- `VStretch (),
- `PushButton (`id (`scratch), `opt (`hstretch),
- // pushbutton
- _("Cl&ear Current Configuration")),
- Spooler::Get () == "cups" && `server == CUPS::InstallationType () ? `VStretch () :`VSpacing (0),
- // pushbutton
- Spooler::Get () == "cups" && `server == CUPS::InstallationType () ? `PushButton (`id (`cupsd), `opt (`hstretch), _("CUPS Server Se&ttings")) : `VSpacing (0),
- Spooler::Get () == "cups" && `server == CUPS::InstallationType () ? `VStretch () :`VSpacing (0),
- // pushbutton
- Spooler::Get () == "cups" && `server == CUPS::InstallationType () ? `PushButton (`id (`cupsusb), `opt (`hstretch), _("CUPS &USB Device Settings")) : `VSpacing (0),
- `VStretch ()
- ), `HWeight (999, `HStretch ()))
- ),
- `HSpacing (1)
- ),
- `VSpacing (1)
- );
-
- // dialog caption
- Wizard::SetContentsButtons (_("Configuration"), contents,
- getAdvancedHelp (Spooler::Get () == "cups"
- && `server == CUPS::InstallationType ()),
- Label::BackButton (), Label::AcceptButton ());
- Wizard::RestoreBackButton ();
- Wizard::RestoreAbortButton ();
- symbol ret = nil;
- while (nil == ret)
- {
- ret = (symbol)UI::UserInput ();
- if (ret == `cancel)
- ret = `abort;
- if (ret == `scratch || ret == `reinstall || ret == `cupsusb
- || ret == `cupsd)
- {
- if (Mode::config ())
- {
- Printerlib::DisplayUnavailableAIPopup ();
- ret = nil;
- }
- }
- if (`scratch == ret)
- {
- if (! Popup::AnyQuestion (Label::WarningMsg(),
- // popup
- _("Really discard your configuration?"),
- Label::YesButton(), Label::NoButton (), `focus_no))
- {
- ret = nil;
- continue;
- }
- CleanAndUnmountAgents ();
- Printer::Reset ();
- ret = `next;
- break;
- }
- else if (`reinstall == ret)
- {
- if (Stage::cont ())
- {
- Printerlib::DisplayUnavailableAIPopup ();
- continue;
- }
- // popup
- if (! Popup::AnyQuestion(Label::WarningMsg(),
- // popup question
- _("All your changes will be lost.
-Really reinstall your printing system?
-"),
- // pushbutton
- _("&Reinstall"), Label::CancelButton (), `focus_no))
- {
- ret = nil;
- continue;
- }
- boolean success = reinstallAll ();
- break;
- }
- else if (`cups_server == ret
- || `cups_client == ret || `lprng == ret)
- {
- symbol spooler = (symbol)
- UI::QueryWidget (`id (`spooler), `CurrentButton);
- string spoolerstring = spooler == `cups_client
- ? "cups-client"
- : "cups";
- }
- else if (`back == ret)
- break;
- else if (`next == ret)
- break;
- else if (`abort == ret)
- {
- if (reallyAbort ())
- break;
- }
- else if (`cupsd == ret)
- break;
- else if (`cupsusb == ret)
- {
- break;
- }
- ret = nil;
-
- }
- if (`next == ret)
- {
- Printer::save_all = (boolean)UI::QueryWidget (`id (`save), `Value);
- symbol spooler = (symbol)
- UI::QueryWidget (`id (`spooler), `CurrentButton);
- if (`cups_server == spooler)
- {
- CUPS::server_hostname = "";
- if (Spooler::getSpoolSystem () != 2)
- {
- CUPS::SaveServerHostName ();
- ret = `switch;
- CUPS::cups_installation = nil;
- Spooler::RestartIfNeeded (true);
- }
- if (Printer::read_done == false)
- {
- if (!Printer::queuesRead ())
- {
- // error message
- Popup::Error (_("Unable to read
-the current configuration."));
- }
- }
- CUPS::cups_installation = `server;
- CUPS::SaveServerHostName ();
- Spooler::RestartIfNeeded (true);
- ret = `cups;
- new_spooler = "cups";
- }
- else if (`cups_client == spooler)
- {
- CUPS::cups_installation = `client;
- ret = `cups;
- new_spooler = "cups";
- }
- else
- {
- new_spooler = Spooler::Get ();
- }
- if (Spooler::Get () != new_spooler || (new_spooler == "cups"
- && ((spooler == `cups_client
- && `server == CUPS::InstallationType ())
- || (spooler == `cups_server
- && `client == CUPS::InstallationType ()))))
- {
- Spooler::switchTo (new_spooler);
- return `switch;
- }
- }
- return ret;
- }
-*/
-
- /**
- * Dialog for choosing what kind of devices to use
- * @return wizard sequencer symbol
- */
-/*
- define symbol runCupsUsbDeviceTypeDialog () ``{
- term contents = `HBox (`HStretch (), `VBox (
- `VStretch (),
- `RadioButtonGroup (`id (`devtype),
- // frame
- `Frame (_("CUPS-Like USB Device Names"),`HBox (
- `HSpacing (3),
- `VBox (
- `VSpacing (3),
- // radiobutton
- `Left (`RadioButton (`id (`always), _("&Always"))),
- `Left (`RadioButton (`id (`serial),
- // radiobutton
- _("If &Serial Number is Known"))),
- // radiobutton
- `Left (`RadioButton (`id (`never), _("&Never"))),
- `VSpacing (3)
- ),
- `HSpacing (3)
- )
- )),
- `VStretch ()
- ), `HStretch ());
- // dialog caption
- Wizard::SetContentsButtons (_("CUPS USB Device Name Type"), contents,
- getCupsUsbDeviceTypeHelp (), Label::BackButton (), Label::OKButton ());
-
- UI::ChangeWidget (`id (`devtype), `CurrentButton,
- CUPS::usb_dev_names);
- symbol ret = nil;
- while (ret == nil)
- {
- ret = (symbol)UI::UserInput ();
- if (ret == `cancel)
- ret = `abort;
- if (ret == `abort)
- {
- if (! reallyAbort ())
- ret = nil;
- }
- else if (ret == `next)
- {
- CUPS::usb_dev_names
- = (symbol)UI::QueryWidget (`id (`devtype), `CurrentButton);
- }
- }
- return ret;
- }
-*/
/**
* Decide how to configure autodetected printer
@@ -2052,23 +1714,6 @@
break;
}
}
- else if (`test == ret)
- {
- string i = (string)UI::QueryWidget (`id (`table), `CurrentItem);
- if (i == nil || i == "")
- {
- // message popup
- Popup::Message (_("Select a queue."));
- }
- else
- {
- foreach (map e, queues, ``{
- if (e["name"]:"" == i)
- PrinterTest::testPrinter (e, `ask);
- });
- }
- ret = nil;
- }
else
{
break;
@@ -2148,52 +1793,6 @@
return `next;
}
- /**
- * Run dialog for expert settings
- * @return symbol ret (`change_ipp_listen, `cupsd, `cupsusb)
- */
-/*
- define symbol runCupsExpertDialog() ``{
-
-
- term contents = `HBox (`HStretch (), `VBox (
- `VStretch (),
- `RadioButtonGroup (`id (`rb),
- // frame
- `Frame (_("Configure CUPS"),`HBox (
- `HSpacing (3),
- `VBox (
- `VSpacing (3),
- // radiobutton
- `Left(`RadioButton( `id(0), _("Change IPP Listen"))),
- `Left(`RadioButton( `id(1), _("CUPS Server Se&ttings"))),
- `Left(`RadioButton( `id(2), _("CUPS &USB Device Settings"))),
- // radiobutton
- `VSpacing (3)
- ),
- `HSpacing (3)
- )
- )),
- `VStretch ()
- ), `HStretch ());
-
- Wizard::SetContentsButtons (_("Expert CUPS Settings"), contents, getHelpCupsExperts() ,
- Label::BackButton (), Label::NextButton () );
-
- UI::ChangeWidget (`id (`rb), `CurrentButton,0);
-
- any ret = UI::UserInput();
- if (ret == `next){
- integer option = tointeger(UI::QueryWidget(`id(`rb), `CurrentButton));
- switch (option){
- case 0 : return `change_ipp_listen;
- case 1 : return `cupsd;
- case 2 : return `cupsusb;
- };
- }
- return (symbol) ret;
- }
-*/
void initServerType (string key) {
CUPS::ReadCupsSettings ();
@@ -2344,95 +1943,108 @@
*/
list