Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54999 - in /trunk/yast2: VERSION library/wizard/src/Wizard.ycp
  • From: mzugec@xxxxxxxxxxxxxxxx
  • Date: Mon, 26 Jan 2009 12:54:48 -0000
  • Message-id: <E1LRQzI-0000MO-Ru@xxxxxxxxxxxxxxxx>
Author: mzugec
Date: Mon Jan 26 13:54:48 2009
New Revision: 54999

URL: http://svn.opensuse.org/viewcvs/yast?rev=54999&view=rev
Log:
- new function Wizard::OpenCancelOKDialog()
http://en.opensuse.org/YaST/Style_Guide#
Single_Configuration.2FOverview.2FEdit_Dialog


Modified:
trunk/yast2/VERSION
trunk/yast2/library/wizard/src/Wizard.ycp

Modified: trunk/yast2/VERSION
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/yast2/VERSION?rev=54999&r1=54998&r2=54999&view=diff
==============================================================================
--- trunk/yast2/VERSION (original)
+++ trunk/yast2/VERSION Mon Jan 26 13:54:48 2009
@@ -1 +1 @@
-2.18.1
+2.18.2

Modified: trunk/yast2/library/wizard/src/Wizard.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/wizard/src/Wizard.ycp?rev=54999&r1=54998&r2=54999&view=diff
==============================================================================
--- trunk/yast2/library/wizard/src/Wizard.ycp (original)
+++ trunk/yast2/library/wizard/src/Wizard.ycp Mon Jan 26 13:54:48 2009
@@ -365,7 +365,6 @@
}
}

-
/**
* Open a dialog with "Accept", "Cancel"
* and set the keyboard focus to "Accept".
@@ -897,6 +896,30 @@
}
}

+ /**
+ * Overview Dialog
+ *
http://en.opensuse.org/YaST/Style_Guide#Single_Configuration.2FOverview.2FEdit_Dialog
+ * dialog with Cancel and OK buttons (cancel has function as abort)
+ **/
+ global void OpenCancelOKDialog()
+ {
+ if ( haveFancyUI() )
+ {
+ UI::OpenDialog(`opt(`wizardDialog ),
+ `Wizard(`back, Label::BackButton(),
+ `abort, Label::CancelButton(),
+ `next, Label::OKButton() ) );
+ HideBackButton();
+ UI::WizardCommand(`SetDialogIcon( default_icon ) );
+ }
+ else
+ {
+ Wizard::OpenDialog( NextBackDialog() );
+ UI::SetFocus(`id(`next) );
+ }
+ }
+
+

/**
* Hide the Wizard's "Abort" button.

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages