Author: ug
Date: Tue Aug 19 11:40:28 2008
New Revision: 50195
URL: http://svn.opensuse.org/viewcvs/yast?rev=50195&view=rev
Log:
UI redesign (fate#303552)
Modified:
trunk/autoinstallation/package/autoyast2.changes
trunk/autoinstallation/src/include/conftree.ycp
trunk/autoinstallation/src/include/wizards.ycp
Modified: trunk/autoinstallation/package/autoyast2.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/package/autoyast2.changes?rev=50195&r1=50194&r2=50195&view=diff
==============================================================================
--- trunk/autoinstallation/package/autoyast2.changes (original)
+++ trunk/autoinstallation/package/autoyast2.changes Tue Aug 19 11:40:28 2008
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Tue Aug 19 11:38:52 CEST 2008 - sschober@suse.de
+
+- UI redesign (fate#303552)
+
+-------------------------------------------------------------------
Fri Aug 15 11:54:23 CEST 2008 - ug@suse.de
- autoyast start script fixed
Modified: trunk/autoinstallation/src/include/conftree.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/src/include/conftree.ycp?rev=50195&r1=50194&r2=50195&view=diff
==============================================================================
--- trunk/autoinstallation/src/include/conftree.ycp (original)
+++ trunk/autoinstallation/src/include/conftree.ycp Tue Aug 19 11:40:28 2008
@@ -22,7 +22,9 @@
import "Stage";
import "AutoinstSoftware";
- list<map> Tree = [];
+ /* Stores the item list for popuplating the group selection box */
+ list<term> Groups = [];
+ map 0 ) {
currentFile = substring( currentFile, findlastof(currentFile,"/")+1 );
label = label + " - " + currentFile;
}
- Wizard::SetContents(label,
+ SetContents(label,
contents, AutoinstConfig::MainHelp(), true , true);
Wizard::SetTitleIcon(Icons[group]:tolower(group));
}
else if (modulename!="")
{
- module_contents(modulename);
+ string group = groupName(QueryTreeItem());
+ any configret = configureModule(modulename);
+ y2debug("configureModule ret : %1", configret);
+ SetContents(_("Available modules"),
+ modules(group, modulename), AutoinstConfig::MainHelp(), true , true);
}
}
else if (ret == "menu_tree") // source -> tree
{
y2debug("change to tree");
- tree_item = Wizard::QueryTreeItem();
+ tree_item = QueryTreeItem();
if (tree_item == "")
tree_item = "group@System";
y2debug("tree_item: %1", tree_item );
@@ -452,16 +505,11 @@
if (group!="" )
{
- contents = modules(group);
- Wizard::SetContents(_("Available modules"),
+ contents = modules(group, modulename);
+ SetContents(_("Available modules"),
contents, AutoinstConfig::MainHelp(), true , true);
Wizard::SetTitleIcon(Icons["group"]:tolower(group));
}
- else if (modulename!="")
- {
- module_contents(modulename);
- }
-
}
else if (ret == "menu_open") // OPEN
{
@@ -513,7 +561,7 @@
}
else
{
- tree_item = Wizard::QueryTreeItem();
+ tree_item = QueryTreeItem();
string group=groupName(tree_item);
string modulename=moduleName(tree_item);
@@ -521,21 +569,17 @@
if (group!="" )
{
- contents = modules(group);
+ contents = modules(group, modulename);
string caption = _("Available modules");
string currentFile = AutoinstConfig::currentFile;
currentFile = substring( currentFile, findlastof(currentFile,"/")+1 );
if( size(currentFile) > 0 ) {
caption = caption + " - " + currentFile;
}
- Wizard::SetContents(caption,
+ SetContents(caption,
contents, AutoinstConfig::MainHelp(), true , true);
Wizard::SetTitleIcon(Icons[group]:tolower(group));
}
- else if (modulename!="")
- {
- module_contents(modulename);
- }
}
ret = `menu_open;
}
@@ -590,9 +634,10 @@
if (UI::WidgetExists(`id(`class_source))) {
ShowSource();
}
- tree_item = Wizard::QueryTreeItem();
- string modulename=moduleName(tree_item);
- module_contents(modulename);
+ tree_item = QueryTreeItem();
+ string group=groupName(tree_item);
+ SetContents(_("Available Modules"),
+ modules(group, ""), AutoinstConfig::MainHelp(), true , true);
ret = `menu_new;
}
else if (ret == "change_encryption" ) {
Modified: trunk/autoinstallation/src/include/wizards.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/src/include/wizards.ycp?rev=50195&r1=50194&r2=50195&view=diff
==============================================================================
--- trunk/autoinstallation/src/include/wizards.ycp (original)
+++ trunk/autoinstallation/src/include/wizards.ycp Tue Aug 19 11:40:28 2008
@@ -84,7 +84,7 @@
// Translators: dialog caption
string caption = _("Autoinstall Configuration");
term contents = `Label (_("Initializing ..."));
- Wizard::CreateTreeDialog();
+ Wizard::CreateDialog();
string tree_item = "System";
Wizard::SetContentsButtons ( caption,
contents,
@@ -92,7 +92,7 @@
Label::BackButton (),
Label::NextButton ());
- CreateTreeWidget( tree_item);
+ CreateDialog( tree_item);
menus();
symbol ret = Sequencer::Run(dialogs, sequence);
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org