Author: locilka
Date: Mon Jul 14 14:08:08 2008
New Revision: 49043
URL: http://svn.opensuse.org/viewcvs/yast?rev=49043&view=rev
Log:
- InputFields instead of TextEntries.
- [OK] instead of [Finish] in Single Step Dialogs.
- [Cancel] instead of [Abort].
Modified:
trunk/dns-server/package/yast2-dns-server.changes
trunk/dns-server/src/dialog-installwizard.ycp
trunk/dns-server/src/dialog-main.ycp
trunk/dns-server/src/dialog-masterzone.ycp
trunk/dns-server/src/dialogs.ycp
trunk/dns-server/src/options.ycp
trunk/dns-server/src/widgets.ycp
Modified: trunk/dns-server/package/yast2-dns-server.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/dns-server/package/yast2-dns-server.changes?rev=49043&r1=49042&r2=49043&view=diff
==============================================================================
--- trunk/dns-server/package/yast2-dns-server.changes (original)
+++ trunk/dns-server/package/yast2-dns-server.changes Mon Jul 14 14:08:08 2008
@@ -2,6 +2,9 @@
Mon Jul 14 13:42:44 CEST 2008 - locilka@suse.cz
- Removed unneeded dependency on DNS module (yast2-network).
+- InputFields instead of TextEntries.
+- [OK] instead of [Finish] in Single Step Dialogs.
+- [Cancel] instead of [Abort].
-------------------------------------------------------------------
Mon Jun 9 17:03:19 CEST 2008 - mzugec@suse.cz
Modified: trunk/dns-server/src/dialog-installwizard.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/dns-server/src/dialog-installwizard.ycp?rev=49043&r1=49042&r2=49043&view=diff
==============================================================================
--- trunk/dns-server/src/dialog-installwizard.ycp (original)
+++ trunk/dns-server/src/dialog-installwizard.ycp Mon Jul 14 14:08:08 2008
@@ -36,7 +36,7 @@
);
SetDNSSErverIcon();
Wizard::SetAbortButton ( `abort, Label::CancelButton() );
- Wizard::HideBackButton ();
+ Wizard::DisableBackButton ();
InitExpertForwardersPage ("forwarders");
map event = $[];
Modified: trunk/dns-server/src/dialog-main.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/dns-server/src/dialog-main.ycp?rev=49043&r1=49042&r2=49043&view=diff
==============================================================================
--- trunk/dns-server/src/dialog-main.ycp (original)
+++ trunk/dns-server/src/dialog-main.ycp Mon Jul 14 14:08:08 2008
@@ -224,7 +224,7 @@
`HBox (
`HWeight ( 9,
// Textentry for DNS-Forwarders adding IP
- `TextEntry ( `id ( "forwarders_new_ip_address" ), `opt ( `hstretch ), _("IP A&ddress"), "" )
+ `InputField ( `id ( "forwarders_new_ip_address" ), `opt ( `hstretch ), _("IP A&ddress"), "" )
),
`HWeight ( 2,
`Bottom ( `PushButton ( `id ( "forwarders_add_ip_address" ), `opt ( `hstretch ), Label::AddButton() ) )
@@ -614,7 +614,7 @@
),
`HWeight ( 5,
// Textentry for setting the basic-option value
- `TextEntry ( `id ( "basic_option_value" ), _("&Value"), "" )
+ `InputField ( `id ( "basic_option_value" ), `opt (`hstretch), _("&Value"), "" )
)
)
)
@@ -924,7 +924,7 @@
`VBox (
`VWeight ( 25,
`HBox (
- `TextEntry ( `id ( "logfile_path" ), Label::FileName() ),
+ `InputField ( `id ( "logfile_path" ), `opt (`hstretch), Label::FileName() ),
`VBox (
`VStretch (),
// Pushbutton - browse filesystem for logfile
@@ -1091,11 +1091,11 @@
`HBox (
`HWeight ( 3,
// Textentry - adding ACL-optiopn - name
- `TextEntry ( `id ( "new_acl_name" ), `opt ( `hstretch ), _("&Name") )
+ `InputField ( `id ( "new_acl_name" ), `opt ( `hstretch ), _("&Name") )
),
`HWeight ( 5,
// Textentry - adding ACL-optiopn - value
- `TextEntry ( `id ( "new_acl_value" ), `opt ( `hstretch ), _("&Value") )
+ `InputField ( `id ( "new_acl_value" ), `opt ( `hstretch ), _("&Value") )
)
)
)
@@ -1338,7 +1338,7 @@
//`VSpacing ( 0.5 ),
`HBox (
// Textentry - DNS adding zone - Name
- `TextEntry ( `id ( "new_zone_name" ), `opt ( `hstretch ), _("Name"), "example.com" ),
+ `InputField ( `id ( "new_zone_name" ), `opt ( `hstretch ), _("Name"), "example.com" ),
// Combobox - DNS adding zone - Type
`ComboBox ( `id ( "new_zone_type" ), _("Type") , [
// Combobox - DNS adding zone - Type Master
Modified: trunk/dns-server/src/dialog-masterzone.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/dns-server/src/dialog-masterzone.ycp?rev=49043&r1=49042&r2=49043&view=diff
==============================================================================
--- trunk/dns-server/src/dialog-masterzone.ycp (original)
+++ trunk/dns-server/src/dialog-masterzone.ycp Mon Jul 14 14:08:08 2008
@@ -337,7 +337,7 @@
`HBox (
`HWeight ( 7,
// Textentry - adding nameserver
- `TextEntry ( `id ( "add_name_server" ), _("&Name Server to Add") )
+ `InputField ( `id ( "add_name_server" ), `opt (`hstretch), _("&Name Server to Add") )
),
`HWeight ( 2,
`VBox (
@@ -508,7 +508,7 @@
`HWeight ( 7,
`HBox (
// Textentry - addind mail server - Name
- `TextEntry ( `id ( "add_mail_server" ), _("&Address") ),
+ `InputField ( `id ( "add_mail_server" ), `opt (`hstretch), _("&Address") ),
// IntField - adding mail server - Priority
`IntField ( `id ( "add_priority" ), _("&Priority"), 0, 65535, 0 )
)
@@ -727,7 +727,7 @@
`HWeight ( 50,
`VBox (
// Textentry - setting Serial for zone
- `TextEntry ( `id ( "zone_settings_serial" ), `opt ( `hstretch ), _("Seri&al"), "" ),
+ `InputField ( `id ( "zone_settings_serial" ), `opt ( `hstretch ), _("Seri&al"), "" ),
`VSpacing ( 1 ),
`HBox (
// Textentry - setting TTL for zone
@@ -938,11 +938,11 @@
`HWeight ( 9,
`HBox (
// Textentry - zone settings - Record Name
- `TextEntry ( `id ( "add_record_name" ), _("&Record Key") ),
+ `InputField ( `id ( "add_record_name" ), `opt (`hstretch), _("&Record Key") ),
// Combobox - zone settings - Record Type
`ComboBox ( `id ( "add_record_type" ), _("T&ype"), add_records ),
// Textentry - zone settings - Record Value
- `TextEntry ( `id ( "add_record_val" ), _("Val&ue") )
+ `InputField ( `id ( "add_record_val" ), `opt (`hstretch), _("Val&ue") )
)
),
`HWeight ( 2,
@@ -1545,7 +1545,7 @@
`HBox (
// Label - connected with Textentry which shows current edited zone
`HSquash ( `Label ( _("Settings for Zone") ) ),
- `HSquash ( `TextEntry ( `id ( "current_zone" ), `opt ( `disabled ), "",
+ `HSquash ( `InputField ( `id ( "current_zone" ), `opt ( `disabled, `hstretch ), "",
Punycode::DecodeDomainName(zone_name)
) ),
`HStretch ()
@@ -1575,7 +1575,9 @@
// FIXME: Only one help is used for all tabs. Maybe would be better to change the help for every single tab.
Wizard::SetContentsButtons ( caption, contents, HELPS[ help_identificators[current_tab]:"" ]:"",
- Label::CancelButton (), Label::OKButton () );
+ Label::BackButton (), Label::OKButton () );
+ Wizard::DisableBackButton();
+ Wizard::SetAbortButton (`go_back, Label::CancelButton());
InitMasterZoneTab ( current_tab );
map event = nil;
@@ -1591,11 +1593,13 @@
else
continue;
}
- if (ret == `back)
+ if (ret == `go_back)
{
+ ret = `back;
break;
}
- else if ( ret == `cancel || ret == `abort) {
+ // close the whole dialog
+ else if ( ret == `cancel) {
if ( ReallyAbort() )
return `abort;
else
@@ -1681,14 +1685,14 @@
`HBox (
// Label - connected with Textentry which shows current edited zone
`HSquash ( `Label ( _("Settings for Zone") ) ),
- `HSquash ( `TextEntry ( `id ( "current_zone" ), `opt ( `disabled ), "",
+ `HSquash ( `InputField ( `id ( "current_zone" ), `opt ( `disabled, `hstretch ), "",
Punycode::DecodeDomainName(zone_name)
) ),
`HStretch ()
),
`VSpacing ( 1 ),
// TRANSLATORS: Text entry
- `Left (`TextEntry (`id ("master"), _("&Master DNS Server IP"))),
+ `Left (`InputField (`id ("master"), `opt (`hstretch), _("&Master DNS Server IP"))),
`VSpacing (2),
`Left (`CheckBox (`id ("enable_zone_transport"), `opt (`notify),
// check box
@@ -1853,7 +1857,7 @@
`HBox (
// Label - connected with Textentry which shows current edited zone
`HSquash ( `Label ( _("Settings for Zone") ) ),
- `HSquash ( `TextEntry ( `id ( "current_zone" ), `opt ( `disabled ), "",
+ `HSquash ( `InputField ( `id ( "current_zone" ), `opt ( `disabled, `hstretch ), "",
Punycode::DecodeDomainName(zone_name)
) ),
`HStretch ()
@@ -1863,7 +1867,7 @@
`HBox (
`HWeight (7,
// Textentry - adding forwarder
- `TextEntry ( `id("new_forwarder"), _("New &Forwarder IP Address"))
+ `InputField ( `id("new_forwarder"), `opt (`hstretch), _("New &Forwarder IP Address"))
),
`HWeight (2,
`VBox (
Modified: trunk/dns-server/src/dialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/dns-server/src/dialogs.ycp?rev=49043&r1=49042&r2=49043&view=diff
==============================================================================
--- trunk/dns-server/src/dialogs.ycp (original)
+++ trunk/dns-server/src/dialogs.ycp Mon Jul 14 14:08:08 2008
@@ -80,240 +80,6 @@
return ret ? `next : `abort;
}
-/**
- * Run main dialog
- * @return symbol for wizard sequencer
- */
-/** global define symbol runMainDialog () ``{
- y2milestone ("Running main dialog");
-
- list