Author: mzugec
Date: Tue Nov 6 16:45:59 2007
New Revision: 41826
URL: http://svn.opensuse.org/viewcvs/yast?rev=41826&view=rev
Log:
tabbed UI done (without help)
Modified:
trunk/printer/VERSION
trunk/printer/package/yast2-printer.changes
trunk/printer/src/common/dialogs-connection.ycp
trunk/printer/src/common/dialogs.ycp
trunk/printer/src/common/wizards.ycp
trunk/printer/src/cups/dialogs-cups.ycp
Modified: trunk/printer/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/VERSION?rev=41826&r1=41825&r2=41826&view=diff
==============================================================================
--- trunk/printer/VERSION (original)
+++ trunk/printer/VERSION Tue Nov 6 16:45:59 2007
@@ -1 +1 @@
-2.16.3
+2.16.4
Modified: trunk/printer/package/yast2-printer.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/package/yast2-printer.changes?rev=41826&r1=41825&r2=41826&view=diff
==============================================================================
--- trunk/printer/package/yast2-printer.changes (original)
+++ trunk/printer/package/yast2-printer.changes Tue Nov 6 16:45:59 2007
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Tue Nov 6 16:44:36 CET 2007 - mzugec@suse.cz
+
+- tabbed UI done (without help)
+- 2.16.4
+
+-------------------------------------------------------------------
Fri Nov 2 12:54:13 CET 2007 - mzugec@suse.cz
- show network printers - fixed (problem when password contains
Modified: trunk/printer/src/common/dialogs-connection.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/src/common/dialogs-connection.ycp?rev=41826&r1=41825&r2=41826&view=diff
==============================================================================
--- trunk/printer/src/common/dialogs-connection.ycp (original)
+++ trunk/printer/src/common/dialogs-connection.ycp Tue Nov 6 16:45:59 2007
@@ -440,10 +440,10 @@
if (local == false)
{
items = add (items,
- `Frame(_("Network Printers"),
+ `Frame(_("Network Printers"),
`VBox(
// radio button
- `Left (`RadioButton (`id (`cups),_("Print via &CUPS Network Server"),selected == `cups)),
+ `Left (`RadioButton (`id (`ipp),_("Remote &IPP Queue (only for special cases)"),selected == `ipp)),
// radio button
`Left (`RadioButton (`id (`lpd),_("Print via &LPD-Style Network Server"),selected == `lpd)),
// radio button
@@ -526,6 +526,7 @@
* Dialog asking about connection type for connection to remote CUPS server
* @return symbol wizard sequencer symbol
*/
+/*
define symbol runCupsConnectionDialog () ``{
symbol selected = `cups_client;
string uri_type = Printerlib::getUriType (Printer::printer["uri"]:"");
@@ -565,6 +566,7 @@
_("Type of Connection to the CUPS Server"),
getCupsConnectionsHelp (), `connection_cups);
}
+*/
/**
* Dialog asking about connection type for small print servers
Modified: trunk/printer/src/common/dialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/src/common/dialogs.ycp?rev=41826&r1=41825&r2=41826&view=diff
==============================================================================
--- trunk/printer/src/common/dialogs.ycp (original)
+++ trunk/printer/src/common/dialogs.ycp Tue Nov 6 16:45:59 2007
@@ -34,6 +34,7 @@
include "printer/helps.ycp";
include "printer/misc.ycp";
+ string initial_tab = "overview";
/**
* Read settings dialog
* @return `abort if aborted and `next otherwise
@@ -1634,6 +1635,7 @@
* Start dialog with advanced spooler settings
* @return symbol for wizzard seq
*/
+/*
define symbol runAdvancedDialog () ``{
string new_spooler = Spooler::Get ();
if (new_spooler == "cups"
@@ -1829,11 +1831,13 @@
}
return ret;
}
+*/
/**
* Dialog for choosing what kind of devices to use
* @return wizard sequencer symbol
*/
+/*
define symbol runCupsUsbDeviceTypeDialog () ``{
term contents = `HBox (`HStretch (), `VBox (
`VStretch (),
@@ -1882,6 +1886,7 @@
}
return ret;
}
+*/
/**
* Decide how to configure autodetected printer
@@ -2145,6 +2150,7 @@
* Run dialog for expert settings
* @return symbol ret (`change_ipp_listen, `cupsd, `cupsusb)
*/
+/*
define symbol runCupsExpertDialog() ``{
@@ -2185,6 +2191,7 @@
}
return (symbol) ret;
}
+*/
void initServerType (string key) {
CUPS::ReadCupsSettings ();
@@ -2300,6 +2307,20 @@
return nil;
}
+boolean validateServerType(string key, map event){
+ if (! (UI::QueryWidget(`id(`server_type), `CurrentButton) == `local)){
+ if (size((string)UI::QueryWidget (`id (`server_name), `Value))==0){
+ Popup::Warning (_("Enter a valid server name."));
+ return false;
+ }
+ if (!(boolean)UI::QueryWidget(`use_default, `Value) && size((string)UI::QueryWidget(`queues, `Value))==0){
+ Popup::Warning (sformat("%1 \"%2\".", _("Select default queue or check"), _("Use Server's Default Queue")));
+ return false;
+ }
+ }
+ return true;
+}
+
void storeServerType(string key, map event){
boolean local = (UI::QueryWidget(`id(`server_type), `CurrentButton) == `local);
if (local){
@@ -2321,7 +2342,7 @@
*/
list