Hello community,

here is the log from the commit of package libyui-ncurses for openSUSE:Factory 
checked in at 2013-06-05 12:53:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libyui-ncurses (Old)
 and      /work/SRC/openSUSE:Factory/.libyui-ncurses.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libyui-ncurses"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libyui-ncurses/libyui-ncurses.changes    
2013-05-13 20:22:56.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libyui-ncurses.new/libyui-ncurses.changes       
2013-06-05 12:53:37.000000000 +0200
@@ -1,0 +2,6 @@
+Tue May 28 13:40:41 CEST 2013 - [email protected]
+
+- NCTable in multi selection mode:  return ValueChanged event if 
+  selection has changed (if options `notify and `immendiate set)
+ 
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
libyui-ncurses.spec: same change
++++++ libyui-ncurses-2.43.9.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-ncurses-2.43.9/ChangeLog 
new/libyui-ncurses-2.43.9/ChangeLog
--- old/libyui-ncurses-2.43.9/ChangeLog 2013-05-10 15:34:33.000000000 +0200
+++ new/libyui-ncurses-2.43.9/ChangeLog 2013-05-28 13:48:20.000000000 +0200
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Tue May 28 13:40:41 CEST 2013 - [email protected]
+
+- NCTable in multi selection mode:  return ValueChanged event if 
+  selection has changed (if options `notify and `immendiate set)
+ 
+-------------------------------------------------------------------
 Fri May 10 10:40:00 UTC 2013 - [email protected]
 
 - use a common toplevel CMakeLists.txt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-ncurses-2.43.9/src/NCTable.cc 
new/libyui-ncurses-2.43.9/src/NCTable.cc
--- old/libyui-ncurses-2.43.9/src/NCTable.cc    2013-05-10 15:34:33.000000000 
+0200
+++ new/libyui-ncurses-2.43.9/src/NCTable.cc    2013-05-28 13:48:20.000000000 
+0200
@@ -31,6 +31,20 @@
 
 using std::endl;
 
+/*
+ * Some remarks about single/multi selection:
+ * A table in single selection mode has only one line/item selected which is 
equal to the
+ * current item (means the highlighted line). Asking for `CurrentItem in YCP 
looks for
+ * selectedItem() (see YCPPropertyHandler::tryGetSelectionWidgetValue).
+ * In multi selection mode there can be several items selected (here is means 
checked/marked
+ * with [x]) and the value is also got from selectedItem() when asking for 
`SelectedItems
+ * (see YCPPropertyHandler::tryGetSelectionWidgetValue).
+ * This means for multi selection mode: at the moment there isn't a 
possibility to get the
+ * `CurrentItem. To get the current item (which line of the list is currently 
highlighted),
+ * a virtual function currentItem() like available for the MultiSelectionBox 
has to be
+ * provided to allow NCTable to specify the line number itself 
(getCurrentItem).
+ * 
+ */
 NCTable::NCTable( YWidget * parent, YTableHeader *tableHeader, bool 
multiSelection )
     : YTable( parent, tableHeader, multiSelection )
     , NCPadWidget( parent )
@@ -529,6 +543,10 @@
                else
                {
                    toggleCurrentItem();
+                    if ( notify() && immediateMode() )
+                    {
+                        return NCursesEvent::ValueChanged;
+                    }
                }
                break;
 

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to