96 lines
1.9 KiB
Plaintext
96 lines
1.9 KiB
Plaintext
|
/**
|
||
|
* File: include/novell-casa/dialogs.ycp
|
||
|
* Package: Configuration of novell-casa
|
||
|
* Summary: Dialogs definitions
|
||
|
* Authors: casa <casa@novell.com>
|
||
|
*
|
||
|
* $Id: dialogs.ycp,v 1.6 2004/02/05 11:29:30 msvec Exp $
|
||
|
*/
|
||
|
|
||
|
{
|
||
|
|
||
|
textdomain "novell-casa";
|
||
|
|
||
|
import "Label";
|
||
|
import "Wizard";
|
||
|
import "NovellCasa";
|
||
|
|
||
|
include "novell-casa/helps.ycp";
|
||
|
|
||
|
/**
|
||
|
* Configure1 dialog
|
||
|
* @return dialog result
|
||
|
*/
|
||
|
any Configure1Dialog () {
|
||
|
|
||
|
/* NovellCasa configure1 dialog caption */
|
||
|
string caption = _("Novell CASA Configuration");
|
||
|
|
||
|
/* NovellCasa configure1 dialog contents */
|
||
|
term contents = `Label (_("First part of configuration of novell-casa"));
|
||
|
|
||
|
Wizard::SetContentsButtons(caption, contents, HELPS["c1"]:"",
|
||
|
Label::BackButton(), Label::NextButton());
|
||
|
|
||
|
any ret = nil;
|
||
|
while(true) {
|
||
|
|
||
|
ret = UI::UserInput();
|
||
|
|
||
|
/* abort? */
|
||
|
if(ret == `abort || ret == `cancel) {
|
||
|
if(ReallyAbort()) break;
|
||
|
else continue;
|
||
|
}
|
||
|
else if(ret == `next || ret == `back) {
|
||
|
break;
|
||
|
}
|
||
|
else {
|
||
|
y2error("unexpected retcode: %1", ret);
|
||
|
continue;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return ret;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Configure2 dialog
|
||
|
* @return dialog result
|
||
|
*/
|
||
|
any Configure2Dialog () {
|
||
|
|
||
|
/* NovellCasa configure2 dialog caption */
|
||
|
string caption = _("Novell CASA Configuration");
|
||
|
|
||
|
/* NovellCasa configure2 dialog contents */
|
||
|
term contents = `Label (_("Second part of configuration of novell-casa"));
|
||
|
|
||
|
Wizard::SetContentsButtons(caption, contents, HELPS["c2"]:"",
|
||
|
Label::BackButton(), Label::NextButton());
|
||
|
|
||
|
any ret = nil;
|
||
|
while(true) {
|
||
|
|
||
|
ret = UI::UserInput();
|
||
|
|
||
|
/* abort? */
|
||
|
if(ret == `abort || ret == `cancel) {
|
||
|
if(ReallyAbort()) break;
|
||
|
else continue;
|
||
|
}
|
||
|
else if(ret == `next || ret == `back) {
|
||
|
break;
|
||
|
}
|
||
|
else {
|
||
|
y2error("unexpected retcode: %1", ret);
|
||
|
continue;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return ret;
|
||
|
}
|
||
|
|
||
|
/* EOF */
|
||
|
}
|