Hello community,

here is the log from the commit of package libyui-qt-rest-api for 
openSUSE:Factory checked in at 2020-12-01 14:21:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libyui-qt-rest-api (Old)
 and      /work/SRC/openSUSE:Factory/.libyui-qt-rest-api.new.5913 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libyui-qt-rest-api"

Tue Dec  1 14:21:33 2020 rev:8 rq:851782 version:0.2.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/libyui-qt-rest-api/libyui-qt-rest-api.changes    
2020-11-30 09:53:01.973731705 +0100
+++ 
/work/SRC/openSUSE:Factory/.libyui-qt-rest-api.new.5913/libyui-qt-rest-api.changes
  2020-12-01 14:21:34.577514757 +0100
@@ -1,0 +2,7 @@
+Thu Nov 26 13:43:21 UTC 2020 - Rodion Iafarov <[email protected]>
+
+- Add activation for YTable (bsc#1139747)
+- Create structure to move handlers to separate classes
+- 0.2.4
+
+-------------------------------------------------------------------

Old:
----
  libyui-qt-rest-api-0.2.3.tar.bz2

New:
----
  libyui-qt-rest-api-0.2.4.tar.bz2

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

Other differences:
------------------
++++++ libyui-qt-rest-api.spec ++++++
--- /var/tmp/diff_new_pack.ODDYi1/_old  2020-12-01 14:21:35.057515276 +0100
+++ /var/tmp/diff_new_pack.ODDYi1/_new  2020-12-01 14:21:35.061515280 +0100
@@ -21,7 +21,7 @@
 %define libyui_devel_version libyui-devel >= 3.10.1
 
 Name:           libyui-qt-rest-api
-Version:        0.2.3
+Version:        0.2.4
 Release:        0
 Summary:        Libyui - The REST API plugin for the Qt frontend
 License:        LGPL-2.1-only OR LGPL-3.0-only

++++++ libyui-qt-rest-api-0.2.3.tar.bz2 -> libyui-qt-rest-api-0.2.4.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-rest-api-0.2.3/SOURCECONF.cmake 
new/libyui-qt-rest-api-0.2.4/SOURCECONF.cmake
--- old/libyui-qt-rest-api-0.2.3/SOURCECONF.cmake       2020-11-24 
18:34:56.000000000 +0100
+++ new/libyui-qt-rest-api-0.2.4/SOURCECONF.cmake       2020-11-30 
09:55:22.000000000 +0100
@@ -1,9 +1,13 @@
 SET( ${TARGETLIB}_SOURCES
  YQHttpUI.cc
  YQHttpWidgetsActionHandler.cc
+ YQTableActionHandler.cc
+ YQWidgetActionHandler.cc
 )
 
 SET( ${TARGETLIB}_HEADERS
  YQHttpUI.h
  YQHttpWidgetsActionHandler.h
+ YQTableActionHandler.h
+ YQWidgetActionHandler.h
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-rest-api-0.2.3/VERSION.cmake 
new/libyui-qt-rest-api-0.2.4/VERSION.cmake
--- old/libyui-qt-rest-api-0.2.3/VERSION.cmake  2020-11-24 18:34:56.000000000 
+0100
+++ new/libyui-qt-rest-api-0.2.4/VERSION.cmake  2020-11-30 09:55:22.000000000 
+0100
@@ -1,6 +1,6 @@
 SET( VERSION_MAJOR "0")
 SET( VERSION_MINOR "2" )
-SET( VERSION_PATCH "3" )
+SET( VERSION_PATCH "4" )
 SET( VERSION 
"${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${GIT_SHA1_VERSION}" )
 
 ##### This is need for the libyui core ONLY.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libyui-qt-rest-api-0.2.3/package/libyui-qt-rest-api.changes 
new/libyui-qt-rest-api-0.2.4/package/libyui-qt-rest-api.changes
--- old/libyui-qt-rest-api-0.2.3/package/libyui-qt-rest-api.changes     
2020-11-24 18:34:56.000000000 +0100
+++ new/libyui-qt-rest-api-0.2.4/package/libyui-qt-rest-api.changes     
2020-11-30 09:55:22.000000000 +0100
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Thu Nov 26 13:43:21 UTC 2020 - Rodion Iafarov <[email protected]>
+
+- Add activation for YTable (bsc#1139747)
+- Create structure to move handlers to separate classes
+- 0.2.4
+
+-------------------------------------------------------------------
 Tue Nov 24 11:23:40 UTC 2020 - Rodion Iafarov <[email protected]>
 
 - Add activation for Radiobutton (bsc#1139747)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libyui-qt-rest-api-0.2.3/package/libyui-qt-rest-api.spec 
new/libyui-qt-rest-api-0.2.4/package/libyui-qt-rest-api.spec
--- old/libyui-qt-rest-api-0.2.3/package/libyui-qt-rest-api.spec        
2020-11-24 18:34:56.000000000 +0100
+++ new/libyui-qt-rest-api-0.2.4/package/libyui-qt-rest-api.spec        
2020-11-30 09:55:22.000000000 +0100
@@ -21,7 +21,7 @@
 %define libyui_devel_version libyui-devel >= 3.10.1
 
 Name:           libyui-qt-rest-api
-Version:        0.2.3
+Version:        0.2.4
 Release:        0
 Summary:        Libyui - The REST API plugin for the Qt frontend
 License:        LGPL-2.1-only OR LGPL-3.0-only
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libyui-qt-rest-api-0.2.3/src/YQHttpWidgetsActionHandler.cc 
new/libyui-qt-rest-api-0.2.4/src/YQHttpWidgetsActionHandler.cc
--- old/libyui-qt-rest-api-0.2.3/src/YQHttpWidgetsActionHandler.cc      
2020-11-24 18:34:56.000000000 +0100
+++ new/libyui-qt-rest-api-0.2.4/src/YQHttpWidgetsActionHandler.cc      
2020-11-30 09:55:22.000000000 +0100
@@ -20,46 +20,17 @@
 
 #include "YUILog.h"
 
-#include "YQHttpUI.h"
 #include "YQHttpWidgetsActionHandler.h"
 
-void YQHttpWidgetsActionHandler::activate_widget( YCheckBoxFrame * widget )
-{
-    widget->handleChildrenEnablement( widget->value() );
-    activate_qt_widget( widget );
+YWidgetActionHandler* YQHttpWidgetsActionHandler::get_widget_handler() {
+    if( !widget_action_handler ){
+        widget_action_handler = new YQWidgetActionHandler();
+    }
+    return widget_action_handler;
 }
 
-void YQHttpWidgetsActionHandler::activate_widget( YComboBox * widget )
-{
-    activate_qt_widget( widget );
-}
-
-void YQHttpWidgetsActionHandler::activate_widget( YDateField * widget )
-{
-    activate_qt_widget( widget );
-}
-
-void YQHttpWidgetsActionHandler::activate_widget( YInputField * widget )
-{
-    activate_qt_widget( widget );
-}
-
-void YQHttpWidgetsActionHandler::activate_widget( YRadioButton * widget )
-{
-    activate_qt_widget( widget );
-}
-
-void YQHttpWidgetsActionHandler::activate_widget( YSelectionBox * widget )
-{
-    activate_qt_widget( widget );
-}
-
-void YQHttpWidgetsActionHandler::activate_widget( YTimeField * widget )
-{
-    activate_qt_widget( widget );
-}
-
-void YQHttpWidgetsActionHandler::activate_widget ( YMultiSelectionBox * 
widget, YItem * item )
-{
-    activate_qt_widget( widget, item );
+YTableActionHandler* YQHttpWidgetsActionHandler::get_table_handler() {
+    if( !table_action_handler )
+        table_action_handler = new YQTableActionHandler();
+    return table_action_handler;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libyui-qt-rest-api-0.2.3/src/YQHttpWidgetsActionHandler.h 
new/libyui-qt-rest-api-0.2.4/src/YQHttpWidgetsActionHandler.h
--- old/libyui-qt-rest-api-0.2.3/src/YQHttpWidgetsActionHandler.h       
2020-11-24 18:34:56.000000000 +0100
+++ new/libyui-qt-rest-api-0.2.4/src/YQHttpWidgetsActionHandler.h       
2020-11-30 09:55:22.000000000 +0100
@@ -17,48 +17,20 @@
 #ifndef YQHttpWidgetsActionHandler_h
 #define YQHttpWidgetsActionHandler_h
 
-#include <iostream>
-#include <functional>
-#include <microhttpd.h>
-#include <yui/YEvent.h>
-
 #include "YHttpWidgetsActionHandler.h"
-#include "YQHttpUI.h"
+
+#include "YQWidgetActionHandler.h"
+#include "YQTableActionHandler.h"
 
 class YQHttpWidgetsActionHandler : public YHttpWidgetsActionHandler
 {
 public:
-
-    YQHttpWidgetsActionHandler() {}
-    virtual ~YQHttpWidgetsActionHandler() {}
-
+    YQHttpWidgetsActionHandler() {};
+    virtual ~YQHttpWidgetsActionHandler() {};
 
 protected:
-
-    virtual void activate_widget( YCheckBoxFrame * widget );
-    virtual void activate_widget( YComboBox * widget );
-    virtual void activate_widget( YDateField * widget );
-    virtual void activate_widget( YInputField * widget );
-    virtual void activate_widget( YRadioButton * widget );
-    virtual void activate_widget( YSelectionBox * widget );
-    virtual void activate_widget( YTimeField * widget );
-
-    virtual void activate_widget ( YMultiSelectionBox * widget, YItem * item );
-
-private:
-    template<typename T>
-    void activate_qt_widget( T * widget ) {
-        if( widget->notify() )
-            YQHttpUI::ui()->sendEvent( new YWidgetEvent( widget, 
YEvent::ValueChanged ) );
-    }
-
-    template<typename T, typename I>
-    void activate_qt_widget( T * widget , I * item) {
-        if( widget->notify() )
-        {
-            YQHttpUI::ui()->sendEvent( new YMenuEvent( item ) );
-        }
-    }
+    virtual YWidgetActionHandler* get_widget_handler();
+    virtual YTableActionHandler* get_table_handler();
 };
 
 #endif // YQHttpWidgetsActionHandler_h
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-rest-api-0.2.3/src/YQTableActionHandler.cc 
new/libyui-qt-rest-api-0.2.4/src/YQTableActionHandler.cc
--- old/libyui-qt-rest-api-0.2.3/src/YQTableActionHandler.cc    1970-01-01 
01:00:00.000000000 +0100
+++ new/libyui-qt-rest-api-0.2.4/src/YQTableActionHandler.cc    2020-11-30 
09:55:22.000000000 +0100
@@ -0,0 +1,25 @@
+/*
+  Copyright (C) 2020 SUSE LLC
+
+  This library is free software; you can redistribute it and/or modify
+  it under the terms of the GNU Lesser General Public License as
+  published by the Free Software Foundation; either version 2.1 of the
+  License, or (at your option) version 3.0 of the License. This library
+  is distributed in the hope that it will be useful, but WITHOUT ANY
+  WARRANTY; without even the implied warranty of MERCHANTABILITY or
+  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+  License for more details. You should have received a copy of the GNU
+  Lesser General Public License along with this library; if not, write
+  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+  Floor, Boston, MA 02110-1301 USA
+*/
+
+#include "YQTableActionHandler.h"
+
+#include <yui/YEvent.h>
+
+void YQTableActionHandler::activate_widget( YTable * widget, YItem * item )
+{
+    YQHttpUI::ui()->sendEvent( new YMenuEvent( item ) );
+    YQHttpUI::ui()->sendEvent( new YWidgetEvent( widget, 
YEvent::SelectionChanged ) );
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-rest-api-0.2.3/src/YQTableActionHandler.h 
new/libyui-qt-rest-api-0.2.4/src/YQTableActionHandler.h
--- old/libyui-qt-rest-api-0.2.3/src/YQTableActionHandler.h     1970-01-01 
01:00:00.000000000 +0100
+++ new/libyui-qt-rest-api-0.2.4/src/YQTableActionHandler.h     2020-11-30 
09:55:22.000000000 +0100
@@ -0,0 +1,36 @@
+/*
+  Copyright (C) 2020 SUSE LLC
+
+  This library is free software; you can redistribute it and/or modify
+  it under the terms of the GNU Lesser General Public License as
+  published by the Free Software Foundation; either version 2.1 of the
+  License, or (at your option) version 3.0 of the License. This library
+  is distributed in the hope that it will be useful, but WITHOUT ANY
+  WARRANTY; without even the implied warranty of MERCHANTABILITY or
+  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+  License for more details. You should have received a copy of the GNU
+  Lesser General Public License along with this library; if not, write
+  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+  Floor, Boston, MA 02110-1301 USA
+*/
+
+#ifndef YQTableActionHandler_h
+#define YQTableActionHandler_h
+
+#include <iostream>
+#include <functional>
+#include <microhttpd.h>
+#include <sstream>
+
+#include "YQHttpUI.h"
+#include "YTableActionHandler.h"
+
+#include <boost/algorithm/string.hpp>
+
+class YQTableActionHandler : public YTableActionHandler
+{
+protected:
+    virtual void activate_widget( YTable * widget, YItem * item );
+};
+
+#endif //YQTableActionHandler_h
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libyui-qt-rest-api-0.2.3/src/YQWidgetActionHandler.cc 
new/libyui-qt-rest-api-0.2.4/src/YQWidgetActionHandler.cc
--- old/libyui-qt-rest-api-0.2.3/src/YQWidgetActionHandler.cc   1970-01-01 
01:00:00.000000000 +0100
+++ new/libyui-qt-rest-api-0.2.4/src/YQWidgetActionHandler.cc   2020-11-30 
09:55:22.000000000 +0100
@@ -0,0 +1,58 @@
+/*
+  Copyright (C) 2020 SUSE LLC
+
+  This library is free software; you can redistribute it and/or modify
+  it under the terms of the GNU Lesser General Public License as
+  published by the Free Software Foundation; either version 2.1 of the
+  License, or (at your option) version 3.0 of the License. This library
+  is distributed in the hope that it will be useful, but WITHOUT ANY
+  WARRANTY; without even the implied warranty of MERCHANTABILITY or
+  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+  License for more details. You should have received a copy of the GNU
+  Lesser General Public License along with this library; if not, write
+  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+  Floor, Boston, MA 02110-1301 USA
+*/
+
+#include "YQWidgetActionHandler.h"
+
+void YQWidgetActionHandler::activate_widget( YCheckBoxFrame * widget )
+{
+    widget->handleChildrenEnablement( widget->value() );
+    activate_qt_widget( widget );
+}
+
+void YQWidgetActionHandler::activate_widget( YComboBox * widget )
+{
+    activate_qt_widget( widget );
+}
+
+void YQWidgetActionHandler::activate_widget( YDateField * widget )
+{
+    activate_qt_widget( widget );
+}
+
+void YQWidgetActionHandler::activate_widget( YInputField * widget )
+{
+    activate_qt_widget( widget );
+}
+
+void YQWidgetActionHandler::activate_widget( YRadioButton * widget )
+{
+    activate_qt_widget( widget );
+}
+
+void YQWidgetActionHandler::activate_widget( YSelectionBox * widget )
+{
+    activate_qt_widget( widget );
+}
+
+void YQWidgetActionHandler::activate_widget( YTimeField * widget )
+{
+    activate_qt_widget( widget );
+}
+
+void YQWidgetActionHandler::activate_widget ( YMultiSelectionBox * widget, 
YItem * item )
+{
+    activate_qt_widget( widget, item );
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-qt-rest-api-0.2.3/src/YQWidgetActionHandler.h 
new/libyui-qt-rest-api-0.2.4/src/YQWidgetActionHandler.h
--- old/libyui-qt-rest-api-0.2.3/src/YQWidgetActionHandler.h    1970-01-01 
01:00:00.000000000 +0100
+++ new/libyui-qt-rest-api-0.2.4/src/YQWidgetActionHandler.h    2020-11-30 
09:55:22.000000000 +0100
@@ -0,0 +1,61 @@
+/*
+  Copyright (C) 2020 SUSE LLC
+
+  This library is free software; you can redistribute it and/or modify
+  it under the terms of the GNU Lesser General Public License as
+  published by the Free Software Foundation; either version 2.1 of the
+  License, or (at your option) version 3.0 of the License. This library
+  is distributed in the hope that it will be useful, but WITHOUT ANY
+  WARRANTY; without even the implied warranty of MERCHANTABILITY or
+  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+  License for more details. You should have received a copy of the GNU
+  Lesser General Public License along with this library; if not, write
+  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+  Floor, Boston, MA 02110-1301 USA
+*/
+
+#ifndef YQWidgetActionHandler_h
+#define YQWidgetActionHandler_h
+
+#include <iostream>
+#include <functional>
+#include <microhttpd.h>
+#include <sstream>
+#include <yui/YEvent.h>
+
+#include "YQHttpUI.h"
+#include "YWidgetActionHandler.h"
+
+#include <boost/algorithm/string.hpp>
+
+class YQWidgetActionHandler : public YWidgetActionHandler
+{
+
+public:
+    virtual void activate_widget( YCheckBoxFrame * widget );
+    virtual void activate_widget( YComboBox * widget );
+    virtual void activate_widget( YDateField * widget );
+    virtual void activate_widget( YInputField * widget );
+    virtual void activate_widget( YRadioButton * widget );
+    virtual void activate_widget( YSelectionBox * widget );
+    virtual void activate_widget( YTimeField * widget );
+
+    virtual void activate_widget( YMultiSelectionBox * widget, YItem * item );
+
+private:
+    template<typename T>
+    void activate_qt_widget( T * widget ) {
+        if( widget->notify() )
+            YQHttpUI::ui()->sendEvent( new YWidgetEvent( widget, 
YEvent::ValueChanged ) );
+    }
+
+    template<typename T, typename I>
+    void activate_qt_widget( T * widget , I * item) {
+        if( widget->notify() )
+        {
+            YQHttpUI::ui()->sendEvent( new YMenuEvent( item ) );
+        }
+    }
+};
+
+#endif //YQWidgetActionHandler_h
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to