Mailinglist Archive: yast-commit (953 mails)

< Previous Next >
[yast-commit] r49582 - in /trunk/product-creator: VERSION package/yast2-product-creator.changes src/kiwi_dialogs.ycp
  • From: jsuchome@xxxxxxxxxxxxxxxx
  • Date: Fri, 01 Aug 2008 13:44:07 -0000
  • Message-id: <20080801134407.CDF2427304@xxxxxxxxxxxxxxxx>
Author: jsuchome
Date: Fri Aug 1 15:44:06 2008
New Revision: 49582

URL: http://svn.opensuse.org/viewcvs/yast?rev=49582&view=rev
Log:
- Image Creator: added GUI to configure image compression
- 2.17.5


Modified:
trunk/product-creator/VERSION
trunk/product-creator/package/yast2-product-creator.changes
trunk/product-creator/src/kiwi_dialogs.ycp

Modified: trunk/product-creator/VERSION
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/product-creator/VERSION?rev=49582&r1=49581&r2=49582&view=diff
==============================================================================
--- trunk/product-creator/VERSION (original)
+++ trunk/product-creator/VERSION Fri Aug 1 15:44:06 2008
@@ -1 +1 @@
-2.17.4
+2.17.5

Modified: trunk/product-creator/package/yast2-product-creator.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/product-creator/package/yast2-product-creator.changes?rev=49582&r1=49581&r2=49582&view=diff
==============================================================================
--- trunk/product-creator/package/yast2-product-creator.changes (original)
+++ trunk/product-creator/package/yast2-product-creator.changes Fri Aug 1
15:44:06 2008
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Fri Aug 1 15:36:32 CEST 2008 - jsuchome@xxxxxxx
+
+- Image Creator: added GUI to configure image compression
+- 2.17.5
+
+-------------------------------------------------------------------
Fri Jul 25 13:02:44 CEST 2008 - jsuchome@xxxxxxx

- read the default information for new type from the template

Modified: trunk/product-creator/src/kiwi_dialogs.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/product-creator/src/kiwi_dialogs.ycp?rev=49582&r1=49581&r2=49582&view=diff
==============================================================================
--- trunk/product-creator/src/kiwi_dialogs.ycp (original)
+++ trunk/product-creator/src/kiwi_dialogs.ycp Fri Aug 1 15:44:06 2008
@@ -58,6 +58,54 @@
* widget handlers

****************************************************************************/

+ define void InitCompressionCombo (string id) {
+
+ string current_method = "none";
+ foreach (map typemap, (list<map>)KiwiConfig["preferences",0,"type"]:[], {
+ if (typemap[content_key]:"" == kiwi_task)
+ {
+ current_method = typemap["flags"]:current_method;
+ }
+ });
+ map<string,string> methods = $[
+ "unified" : "unified",
+ "compressed" : "compressed",
+ "unified-cromfs" : "unified-cromfs",
+ "compressed-cromfs" : "compressed-cromfs",
+ // combo box label
+ "none" : _("None")
+ ];
+ list items = maplist (string method, string label, methods, {
+ return `item (`id (method), label, method == current_method);
+ });
+ UI::ChangeWidget (`id (id), `Items, items);
+ }
+
+ define void StoreCompressionCombo (string key, map event) {
+
+ string selected = (string) UI::QueryWidget (`id (key), `Value);
+ KiwiConfig["preferences",0,"type"] = maplist (map typemap,
+ (list<map>)KiwiConfig["preferences",0,"type"]:[],
+ {
+ if (typemap[content_key]:"" == kiwi_task)
+ {
+ if (selected == "none")
+ {
+ if (haskey (typemap, "flags"))
+ typemap = remove (typemap, "flags");
+ }
+ else
+ typemap["flags"] = selected;
+ }
+ return typemap;
+ });
+ }
+
+ define symbol HandleCompressionCombo (string key, map event) {
+ if (event["ID"]:nil == `next) StoreCompressionCombo (key, event);
+ return nil;
+ }
+
/**
* Initialize the widget with ignored packages
*/
@@ -1233,14 +1281,10 @@
`VBox (
`VSpacing (0.2),
`HBox (
- `HWeight (1, "version"),
- `HWeight (1, `HBox ("size", "sizeunit"))
- /*
- `VBox (
- `Label (""), "compressed"
- FIXME compressed vs. unified
- )
- */
+ `HWeight (2, `HBox (
+ "version", "size", "sizeunit"
+ )),
+ `HWeight (1, "compression")
),
`HBox (
`HWeight (2, `VBox (
@@ -1255,7 +1299,7 @@
), `HSpacing(1)),
"widget_names" : [
"version",
- "size", "sizeunit", // "compressed",
+ "size", "sizeunit", "compression",
"sw_selection",
"rt_sw", "configure_sw",
"delete_sw",
@@ -1354,6 +1398,18 @@
"store" : StoreCompressCheckBox,
"handle" : HandleCompressCheckBox,
],
+ "compression" : $[
+ "widget" : `combobox,
+ "opt" : [ `hstretch, `notify ],
+ "items" : [],
+ // textentry label
+ "label" : _("Co&mpression"),
+ // help text
+ "help" :_("<p>Select the value for image <b>Compression</b>.
This will modify the <i>flags</i> value of the image type. Check kiwi manual
for the meaning of the available values.</p>"),
+ "init" : InitCompressionCombo,
+ "store" : StoreCompressionCombo,
+ "handle" : HandleCompressionCombo,
+ ],
"sw_selection" : $[
"widget" : `combobox,
"opt" : [ `hstretch, `notify ],

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

< Previous Next >
This Thread
  • No further messages