Author: tgoettlicher
Date: Tue Feb 8 12:21:32 2011
New Revision: 63370
URL: http://svn.opensuse.org/viewcvs/yast?rev=63370&view=rev
Log:
- Added support for currentItem to tree widget
Modified:
trunk/ycp-ui-bindings/VERSION
trunk/ycp-ui-bindings/package/yast2-ycp-ui-bindings.changes
trunk/ycp-ui-bindings/src/YCPPropertyHandler.cc
trunk/ycp-ui-bindings/src/YCPPropertyHandler.h
trunk/ycp-ui-bindings/yast2-ycp-ui-bindings.spec.in
Modified: trunk/ycp-ui-bindings/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ycp-ui-bindings/VERSION?rev=63370&r1=63369&r2=63370&view=diff
==============================================================================
--- trunk/ycp-ui-bindings/VERSION (original)
+++ trunk/ycp-ui-bindings/VERSION Tue Feb 8 12:21:32 2011
@@ -1 +1 @@
-2.20.1
+2.20.2
Modified: trunk/ycp-ui-bindings/package/yast2-ycp-ui-bindings.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ycp-ui-bindings/package/yast2-ycp-ui-bindings.changes?rev=63370&r1=63369&r2=63370&view=diff
==============================================================================
--- trunk/ycp-ui-bindings/package/yast2-ycp-ui-bindings.changes (original)
+++ trunk/ycp-ui-bindings/package/yast2-ycp-ui-bindings.changes Tue Feb 8 12:21:32 2011
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Tue Feb 8 12:17:41 CET 2011 - tgoettlicher@suse.de
+
+- Added support for currentItem to tree widget
+- V 2.20.2
+
+-------------------------------------------------------------------
Sun Feb 6 10:00:59 UTC 2011 - coolo@novell.com
- fix syntax error
Modified: trunk/ycp-ui-bindings/src/YCPPropertyHandler.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ycp-ui-bindings/src/YCPPropertyHandler.cc?rev=63370&r1=63369&r2=63370&view=diff
==============================================================================
--- trunk/ycp-ui-bindings/src/YCPPropertyHandler.cc (original)
+++ trunk/ycp-ui-bindings/src/YCPPropertyHandler.cc Tue Feb 8 12:21:32 2011
@@ -192,7 +192,7 @@
else if ( propertyName == YUIProperty_CurrentItem )
{
val = tryGetSelectionBoxValue ( widget ); if ( ! val.isNull() ) return val;
- val = tryGetTreeValue ( widget ); if ( ! val.isNull() ) return val;
+ val = tryGetTreeCurrentItem ( widget ); if ( ! val.isNull() ) return val;
val = tryGetTableValue ( widget ); if ( ! val.isNull() ) return val;
val = tryGetComboBoxValue ( widget ); if ( ! val.isNull() ) return val;
val = tryGetDumbTabValue ( widget ); if ( ! val.isNull() ) return val;
@@ -1259,6 +1259,31 @@
return YCPTableItemWriter::itemList( table->itemsBegin(), table->itemsEnd() );
}
+YCPValue
+YCPPropertyHandler::tryGetTreeCurrentItem( YWidget * widget )
+{
+ YTree * tree = dynamic_cast