Hello community, here is the log from the commit of package libyui for openSUSE:Factory checked in at 2020-01-04 19:20:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libyui (Old) and /work/SRC/openSUSE:Factory/.libyui.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libyui" Sat Jan 4 19:20:33 2020 rev:48 rq:757714 version:3.9.1 Changes: -------- --- /work/SRC/openSUSE:Factory/libyui/libyui.changes 2019-12-14 12:04:05.967396518 +0100 +++ /work/SRC/openSUSE:Factory/.libyui.new.6675/libyui.changes 2020-01-04 19:20:35.589117349 +0100 @@ -1,0 +2,6 @@ +Wed Dec 18 11:12:13 CET 2019 - [email protected] + +- added sort key to table cell (bsc#1140018) +- 3.9.1 + +------------------------------------------------------------------- Old: ---- libyui-3.9.0.tar.bz2 New: ---- libyui-3.9.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libyui-doc.spec ++++++ --- /var/tmp/diff_new_pack.iTaKVY/_old 2020-01-04 19:20:35.977117521 +0100 +++ /var/tmp/diff_new_pack.iTaKVY/_new 2020-01-04 19:20:35.977117521 +0100 @@ -20,7 +20,7 @@ %define so_version 11 Name: %{parent}-doc -Version: 3.9.0 +Version: 3.9.1 Release: 0 Source: %{parent}-%{version}.tar.bz2 ++++++ libyui.spec ++++++ --- /var/tmp/diff_new_pack.iTaKVY/_old 2020-01-04 19:20:35.989117527 +0100 +++ /var/tmp/diff_new_pack.iTaKVY/_new 2020-01-04 19:20:35.989117527 +0100 @@ -17,7 +17,7 @@ Name: libyui -Version: 3.9.0 +Version: 3.9.1 Release: 0 Source: %{name}-%{version}.tar.bz2 ++++++ libyui-3.9.0.tar.bz2 -> libyui-3.9.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-3.9.0/VERSION.cmake new/libyui-3.9.1/VERSION.cmake --- old/libyui-3.9.0/VERSION.cmake 2019-12-10 14:22:52.000000000 +0100 +++ new/libyui-3.9.1/VERSION.cmake 2019-12-18 11:31:22.000000000 +0100 @@ -1,6 +1,6 @@ SET( VERSION_MAJOR "3") SET( VERSION_MINOR "9" ) -SET( VERSION_PATCH "0" ) +SET( VERSION_PATCH "1" ) SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${GIT_SHA1_VERSION}" ) ##### This is need for the libyui core, ONLY. @@ -9,6 +9,6 @@ # *and also in **all** other* libyui-*.spec files in the other repositories. # Yes, such a design is suboptimal. SET( SONAME_MAJOR "11" ) -SET( SONAME_MINOR "0" ) +SET( SONAME_MINOR "1" ) SET( SONAME_PATCH "0" ) SET( SONAME "${SONAME_MAJOR}.${SONAME_MINOR}.${SONAME_PATCH}" ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-3.9.0/package/libyui-doc.spec new/libyui-3.9.1/package/libyui-doc.spec --- old/libyui-3.9.0/package/libyui-doc.spec 2019-12-10 14:22:52.000000000 +0100 +++ new/libyui-3.9.1/package/libyui-doc.spec 2019-12-18 11:31:22.000000000 +0100 @@ -20,7 +20,7 @@ %define so_version 11 Name: %{parent}-doc -Version: 3.9.0 +Version: 3.9.1 Release: 0 Source: %{parent}-%{version}.tar.bz2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-3.9.0/package/libyui.changes new/libyui-3.9.1/package/libyui.changes --- old/libyui-3.9.0/package/libyui.changes 2019-12-10 14:22:52.000000000 +0100 +++ new/libyui-3.9.1/package/libyui.changes 2019-12-18 11:31:22.000000000 +0100 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Dec 18 11:12:13 CET 2019 - [email protected] + +- added sort key to table cell (bsc#1140018) +- 3.9.1 + +------------------------------------------------------------------- Fri Nov 29 14:38:54 UTC 2019 - Rodion Iafarov <[email protected]> - Add support to operate on many widgets with rest-api (bsc#1132247) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-3.9.0/package/libyui.spec new/libyui-3.9.1/package/libyui.spec --- old/libyui-3.9.0/package/libyui.spec 2019-12-10 14:22:52.000000000 +0100 +++ new/libyui-3.9.1/package/libyui.spec 2019-12-18 11:31:22.000000000 +0100 @@ -16,7 +16,7 @@ # Name: libyui -Version: 3.9.0 +Version: 3.9.1 Release: 0 Source: %{name}-%{version}.tar.bz2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-3.9.0/src/YTableItem.cc new/libyui-3.9.1/src/YTableItem.cc --- old/libyui-3.9.0/src/YTableItem.cc 2019-12-10 14:22:52.000000000 +0100 +++ new/libyui-3.9.1/src/YTableItem.cc 2019-12-18 11:31:22.000000000 +0100 @@ -114,9 +114,9 @@ void -YTableItem::addCell( const string & label, const string & iconName ) +YTableItem::addCell( const string & label, const string & iconName, const string & sortKey ) { - YTableCell * cell = new YTableCell( label, iconName ); + YTableCell * cell = new YTableCell( label, iconName, sortKey ); YUI_CHECK_NEW( cell ); addCell( cell ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-3.9.0/src/YTableItem.h new/libyui-3.9.1/src/YTableItem.h --- old/libyui-3.9.0/src/YTableItem.h 2019-12-10 14:22:52.000000000 +0100 +++ new/libyui-3.9.1/src/YTableItem.h 2019-12-18 11:31:22.000000000 +0100 @@ -110,10 +110,11 @@ void addCell( YTableCell * cell_disown ); /** - * Create a new cell and add it (even if both 'label' and - * 'iconName' are empty). + * Create a new cell and add it (even if all 'label', + * 'iconName' and 'sortKey' are empty). **/ - void addCell( const std::string & label, const std::string & iconName = std::string() ); + void addCell( const std::string & label, const std::string & iconName = std::string(), + const std::string & sortKey = std::string() ); /** * Delete all cells. @@ -219,13 +220,15 @@ { public: /** - * Constructor with label and optional icon name for cells that don't have - * a parent item yet (that will be added to a parent later with - * setParent()). + * Constructor with label and optional icon name and optional sort + * key for cells that don't have a parent item yet (that will be + * added to a parent later with setParent()). **/ - YTableCell( const std::string & label, const std::string & iconName = "" ) + YTableCell( const std::string & label, const std::string & iconName = "", + const std::string & sortKey = "" ) : _label( label ) , _iconName( iconName ) + , _sortKey( sortKey ) , _parent( 0 ) , _column ( -1 ) {} @@ -237,9 +240,11 @@ YTableCell( YTableItem * parent, int column, const std::string & label, - const std::string & iconName = "" ) + const std::string & iconName = "", + const std::string & sortKey = "" ) : _label( label ) , _iconName( iconName ) + , _sortKey( sortKey ) , _parent( parent ) , _column ( column ) {} @@ -287,6 +292,25 @@ void setIconName( const std::string & newIconName ) { _iconName = newIconName; } /** + * Return this cell's sort key. + **/ + std::string sortKey() const { return _sortKey; } + + /** + * Return 'true' if this cell has a sort key. + **/ + bool hasSortKey() const { return ! _sortKey.empty(); } + + /** + * Set this cell's sort key. + * + * If this is called after the corresponding table item (table row) is + * added to the table widget, call YTable::cellChanged() to notify the + * table widget about the fact. Only then will the display be updated. + **/ + void setSortKey( const std::string & newSortKey ) { _sortKey = newSortKey; } + + /** * Return this cell's parent item or 0 if it doesn't have one yet. **/ YTableItem * parent() const { return _parent; } @@ -316,6 +340,7 @@ std::string _label; std::string _iconName; + std::string _sortKey; YTableItem * _parent; int _column; }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-3.9.0/src/YUISymbols.h new/libyui-3.9.1/src/YUISymbols.h --- old/libyui-3.9.0/src/YUISymbols.h 2019-12-10 14:22:52.000000000 +0100 +++ new/libyui-3.9.1/src/YUISymbols.h 2019-12-18 11:31:22.000000000 +0100 @@ -334,6 +334,7 @@ #define YUISymbol_id "id" #define YUISymbol_opt "opt" #define YUISymbol_icon "icon" +#define YUISymbol_sortKey "sortKey" #define YUISymbol_item "item" #define YUISymbol_cell "cell" #define YUISymbol_menu "menu"
