Author: gs
Date: Wed May 4 11:25:54 2011
New Revision: 63897
URL: http://svn.opensuse.org/viewcvs/yast?rev=63897&view=rev
Log:
add EditDialog
Modified:
trunk/fcoe-client/src/dialogs.ycp
trunk/fcoe-client/src/wizards.ycp
Modified: trunk/fcoe-client/src/dialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/fcoe-client/src/dialogs.ycp?rev=63897&r1=63896&r2=63897&view=diff
==============================================================================
--- trunk/fcoe-client/src/dialogs.ycp (original)
+++ trunk/fcoe-client/src/dialogs.ycp Wed May 4 11:25:54 2011
@@ -49,11 +49,38 @@
`VSpacing (0.4)
);
-symbol EditDialog() {
+/*symbol EditDialog() {
y2milestone( "Edit dialog ***" );
return `next;
}
+*/
+
+term EditDialogContents()
+{
+ return `VBox(
+ `VStretch(),
+ `HBox(
+ `HStretch(),
+ `HSpacing (1),
+ `VBox(
+ `ComboBox( `id(`fcoe), _("FCoE Enabled"),
+ [`item(`id("yes"), "yes" ),
+ `item(`id("no"), "no", true ) ]
+ ),
+ `VSpacing (2),
+ `ComboBox( `id(`dcb), _("DCB Required"),
+ [`item(`id("yes"), "yes" ),
+ `item(`id("no"), "no", true ) ]
+ ),
+ `VSpacing (2)
+ ),
+ `HSpacing (1),
+ `HStretch()
+ ),
+ `VStretch()
+ );
+}
/**
* Services dialog
Modified: trunk/fcoe-client/src/wizards.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/fcoe-client/src/wizards.ycp?rev=63897&r1=63896&r2=63897&view=diff
==============================================================================
--- trunk/fcoe-client/src/wizards.ycp (original)
+++ trunk/fcoe-client/src/wizards.ycp Wed May 4 11:25:54 2011
@@ -125,7 +125,7 @@
Wizard::SetContentsButtons (
caption,
contents,
- "",
+ "", //help
Label::BackButton (),
Label::FinishButton()
);
@@ -136,6 +136,36 @@
return CWM::Run (w, $[`abort : ReallyAbort]);
}
+any EditDialog() {
+ string caption = _("Change FCoE Settings");
+
+ map widgets =
+ $[
+ "edit" : $[
+ "widget": `custom,
+ "custom_widget": EditDialogContents(),
+ "help" : HELPS["change"]:""
+ ]
+ ];
+
+ term contents = `VBox("edit");
+
+ list