Author: juhliarik
Date: Tue Mar 17 10:43:07 2009
New Revision: 56165
URL: http://svn.opensuse.org/viewcvs/yast?rev=56165&view=rev
Log:
added comments
Modified:
branches/tmp/juhliarik/bootloader-UIrefactor/src/elilo/elilo_options.ycp
branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/common_options.ycp
Modified: branches/tmp/juhliarik/bootloader-UIrefactor/src/elilo/elilo_options.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/juhliarik/bootloader-UIrefactor/src/elilo/elilo_options.ycp?rev=56165&r1=56164&r2=56165&view=diff
==============================================================================
--- branches/tmp/juhliarik/bootloader-UIrefactor/src/elilo/elilo_options.ycp (original)
+++ branches/tmp/juhliarik/bootloader-UIrefactor/src/elilo/elilo_options.ycp Tue Mar 17 10:43:07 2009
@@ -10,7 +10,7 @@
*
* Authors:
* Jozef Uhliarik
- *
+ * Josef Reidinger
*/
{
@@ -22,6 +22,10 @@
include "bootloader/elilo/helps.ycp";
+/**
+ * Common widgets of global settings for ELILO
+ * @return map > CWS widgets
+ */
map > EliloOptions()
{
map > elilo_specific = $[
Modified: branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/common_options.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/common_options.ycp?rev=56165&r1=56164&r2=56165&view=diff
==============================================================================
--- branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/common_options.ycp (original)
+++ branches/tmp/juhliarik/bootloader-UIrefactor/src/routines/common_options.ycp Tue Mar 17 10:43:07 2009
@@ -10,7 +10,7 @@
*
* Authors:
* Josef Reidinger
- *
+ * Jozef Uhliarik
* $Id: $
*
*/
@@ -77,6 +77,12 @@
BootCommon::globals[widget] = tostring(value);
}
+/**
+ * Handle function of a widget (IntField + browse button)
+ * @param widget any widget key
+ * @param event map event description of event that occured
+ * @return symbol nil
+ */
symbol HandleGlobalBrowse (string widget, map event) {
string current = (string)UI::QueryWidget (`id (widget), `Value);
// file open popup caption
@@ -88,7 +94,14 @@
-
+/**
+ * Generic widget of a checkbox
+ * There is not defined valid function
+ * if it is necessary create own definition of widget
+ * @param string lable of widget
+ * @param string help text for widget
+ * @return map CWS widget
+ */
map CommonCheckboxWidget(string label, string help){
return $[
"widget" : `checkbox,
@@ -99,7 +112,14 @@
];
}
-
+/**
+ * Generic widget of a inputfield/textentry (widget)
+ * There is not defined valid function
+ * if it is necessary create own definition of widget
+ * @param string lable of widget
+ * @param string help text for widget
+ * @return map CWS widget
+ */
map CommonInputFieldWidget(string label, string help){
return $[
"widget" : `textentry,
@@ -110,7 +130,15 @@
];
}
-
+/**
+ * Generic widget of a inputfield + browse button
+ * There is not defined valid function
+ * if it is necessary create own definition of widget
+ * @param string lable of widget
+ * @param string help text for widget
+ * @param string id of widget
+ * @return map CWS widget
+ */
map CommonInputFieldBrowseWidget(string label, string help, string id){
string browse = "browse" + id;
return $[
@@ -130,6 +158,16 @@
];
}
+/**
+ * Generic widget of a intfield (widget)
+ * There is not defined valid function
+ * if it is necessary create own definition of widget
+ * @param string lable of widget
+ * @param string help text for widget
+ * @param integer minimal value
+ * @param integer maximal value
+ * @return map CWS widget
+ */
map CommonIntFieldWidget(string label, string help, integer min, integer max){
return $[
"widget" : `intfield,
@@ -142,17 +180,10 @@
];
}
-
-/*
-void InitGlobalInt(string widget){
- integer value = tointeger(BootCommon::globals[widget]:"0");
- UI::ChangeWidget (`id (widget), `Value, value);
-}
-void StoreGlobalInt(string widget, map event){
- integer value = (integer)UI::QueryWidget (`id (widget), `Value);
- BootCommon::globals[widget] = tostring(value);
-}
-*/
+/**
+ * Common widget of a Timeout
+ * @return map CWS widget
+ */
map TimeoutWidget () {
return $[
"widget" : `intfield,
@@ -164,7 +195,10 @@
"help" : grub_help_messages["timeout"]:""
];
}
-
+/**
+ * Init function for console
+ * @param string widget
+ */
void InitConsole( string widget){
boolean enable = BootCommon::globals["terminal"]:"" == "serial";
UI::ChangeWidget(`id(`console_frame),`Value, enable);
@@ -172,6 +206,11 @@
UI::ChangeWidget(`id(`console_args),`Value, args);
}
+/**
+ * Store function of a console
+ * @param widget any widget key
+ * @param event map event description of event that occured
+ */
void StoreConsole(string widget, map event){
boolean use_serial = (boolean) UI::QueryWidget(`id(`console_frame),`Value);
if (use_serial)
@@ -191,12 +230,22 @@
BootCommon::HandleConsole();
}
+/**
+ * Handle function of a console
+ * @param widget any widget key
+ * @param event map event description of event that occured
+ * @return symbol nil
+ */
symbol HandleConsole(string widget, map event){
boolean enable = (boolean) UI::QueryWidget(`id(`enable_console),`Value);
UI::ChangeWidget(`id(`console_args),`Enabled, enable);
return nil;
}
+/**
+ * Common widget of a console
+ * @return map CWS widget
+ */
map ConsoleWidget() {
return $[
"widget" : `custom,
@@ -213,6 +262,10 @@
];
}
+/**
+ * Common widgets of global settings
+ * @return map > CWS widgets
+ */
map > CommonOptions(){
return $[
"timeout" : TimeoutWidget(),
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org