Author: jsuchome Date: Wed Sep 5 13:00:40 2007 New Revision: 40760 URL: http://svn.opensuse.org/viewcvs/yast?rev=40760&view=rev Log: - enable deleting of pattern keys (#297195) - 2.13.25 Modified: branches/SuSE-SLE-10-SP1-Branch/add-on-creator/VERSION branches/SuSE-SLE-10-SP1-Branch/add-on-creator/package/yast2-add-on-creator.changes branches/SuSE-SLE-10-SP1-Branch/add-on-creator/src/patterns.ycp Modified: branches/SuSE-SLE-10-SP1-Branch/add-on-creator/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP1-Branch/add-on-creator/VERSION?rev=40760&r1=40759&r2=40760&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP1-Branch/add-on-creator/VERSION (original) +++ branches/SuSE-SLE-10-SP1-Branch/add-on-creator/VERSION Wed Sep 5 13:00:40 2007 @@ -1 +1 @@ -2.13.24 +2.13.25 Modified: branches/SuSE-SLE-10-SP1-Branch/add-on-creator/package/yast2-add-on-creator.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP1-Branch/add-on-creator/package/yast2-add-on-creator.changes?rev=40760&r1=40759&r2=40760&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP1-Branch/add-on-creator/package/yast2-add-on-creator.changes (original) +++ branches/SuSE-SLE-10-SP1-Branch/add-on-creator/package/yast2-add-on-creator.changes Wed Sep 5 13:00:40 2007 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Sep 5 12:53:26 CEST 2007 - jsuchome@suse.cz + +- enable deleting of pattern keys (#297195) +- 2.13.25 + +------------------------------------------------------------------- Thu Aug 23 14:19:10 CEST 2007 - jsuchome@suse.cz - copy packages with different architectures to correct Modified: branches/SuSE-SLE-10-SP1-Branch/add-on-creator/src/patterns.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP1-Branch/add-on-creator/src/patterns.ycp?rev=40760&r1=40759&r2=40760&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP1-Branch/add-on-creator/src/patterns.ycp (original) +++ branches/SuSE-SLE-10-SP1-Branch/add-on-creator/src/patterns.ycp Wed Sep 5 13:00:40 2007 @@ -238,6 +238,7 @@ `HBox ( `PushButton (`id(`add), `opt(`key_F6), Label::AddButton ()), `PushButton (`id(`edit), `opt(`key_F7), Label::EditButton ()), + `PushButton (`id(`delete), `opt(`key_F8), Label::DeleteButton ()), `HStretch () ), `VSpacing (0.5) @@ -334,6 +335,13 @@ } UI::SetFocus (`id(`pattern)); } + else if (ret == `delete) { + string key = (string)UI::QueryWidget (`id(`pattern),`CurrentItem); + patterns[sel] = remove (patterns[sel]:$[], key); + UI::ChangeWidget (`id(`pattern), `Items, + get_pattern_items (patterns[sel]:$[])); + UI::SetFocus (`id(`pattern)); + } else if (ret == `edit || ret == `pattern) { string key = (string)UI::QueryWidget (`id(`pattern),`CurrentItem); map pat = pattern_descr[key]:$[]; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org