[yast-commit] r52707 - /trunk/storage/storage/src/include/custom_part_dialogs.ycp

Author: aschnell Date: Wed Oct 29 18:20:23 2008 New Revision: 52707 URL: http://svn.opensuse.org/viewcvs/yast?rev=52707&view=rev Log: - removed obsolete code Modified: trunk/storage/storage/src/include/custom_part_dialogs.ycp Modified: trunk/storage/storage/src/include/custom_part_dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/custo... ============================================================================== --- trunk/storage/storage/src/include/custom_part_dialogs.ycp (original) +++ trunk/storage/storage/src/include/custom_part_dialogs.ycp Wed Oct 29 18:20:23 2008 @@ -31,10 +31,6 @@ import "Label"; import "Popup"; - ////////////////////////////////////////////////////////////////////////////// - // Dialog Password for Crypted FS - ////////////////////////////////////////////////////////////////////////////// - include "partitioning/partition_defines.ycp"; include "partitioning/custom_part_helptexts.ycp"; @@ -1085,80 +1081,6 @@ } - -define term RaidOptionsDlg( map new_val, boolean edit_raid_type ) - ``{ - integer chunk_size = new_val["chunk_size"]:0; - string parity_algorithm = new_val["parity_algorithm"]:"left_asymmetric"; - string raid_type = new_val["raid_type"]:"raid1"; - term editRaid = `VSpacing(1); - - // 4KB .. 4096KB - list chunk_list = []; - integer i = 4; - while( i <= 4096 ) - { - integer chunk_item = i; - chunk_list = add( chunk_list, - `item(`id(chunk_item), tostring(chunk_item), - chunk_size==chunk_item )); - i = i*2; - } - - if( edit_raid_type ) - { - editRaid = `VBox( - `VSpacing(), - `Left (`ComboBox( `id(`raid_combo), - `opt(`notify, `hstretch ), - // button text - _("RAID T&ype"), - [ `item(`id("raid0"), "raid0", - "raid0"==raid_type ), - `item(`id("raid1"), "raid1", - "raid1"==raid_type ), - `item(`id("raid5"), "raid5", - "raid5"==raid_type ), - `item(`id("multipath"), "multipath", - "multipath"==raid_type ) - ])), - `VSpacing() - ); - } - - return `VSquash( - `VBox( - editRaid, - // Raid combobox description (don't translate to much ..) - `Left (`ComboBox ( `id(`chunk_size),`opt(`hstretch ), _("Chunk s&ize in KB"), chunk_list )), - `VSpacing (), - // Raid combobox description (don't translate to much ..) - `Left (`ComboBox ( `id(`parity),`opt(`hstretch ), _("Parity &algorithm (only for RAID 5)"), - [ `item(`id("left_asymmetric"), "left-asymmetric", "left_asymmetric" == parity_algorithm ), - `item(`id("left_symmetric"), "left-symmetric", "left_symmetric" == parity_algorithm ), - `item(`id("right_asymmetric"), "right-asymmetric", "right_asymmetric" == parity_algorithm ), - `item(`id("right_symmetric"), "right-symmetric", "right_symmetric" == parity_algorithm ) - ])), - `VSpacing () - )); - - } - -define term LoopOptionsDlg( string pb, string cb, string sb ) - ``{ - term widget = - `VSquash( - `VBox( - `VSpacing(), - `Left( `TextEntry( `id(`loop_path), `opt(`notify), pb )), - `VSpacing(1), - `Left( `CheckBox( `id(`loop_create), `opt(`notify), cb )), - `Left( `TextEntry( `id(`loop_size), `opt(`notify), sb )), - `VSpacing() - )); - return widget; - } - /** * Change the state of all symbol from the list symbols * @parm symbols all symbols @@ -1174,24 +1096,6 @@ /** - * Return a map with the filesystem definitions for the map new_val - * @parm new_val map that contains a partition - * @parm file_systems filesystem definitions - * @return map - */ -define map GetFirstFilesystemDefinition( integer fsid, map<symbol,map> file_systems ) - ``{ - map<symbol,map> define_map = filter( symbol key, map val, file_systems, - ``(fsid == val[`fsid]:Partitions::fsid_native )); - list<map> define_list = maplist( symbol k, map v , define_map, ``( v )); - if( size( define_list ) == 0) - return $[]; - else - return define_list[0]:$[]; - } - - - /** * Dialogpart: Mount part * @parm new_val map that contains a partition * @parm file_systems filesystem definitions -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org