Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package qpwgraph for openSUSE:Factory checked in at 2022-08-20 20:29:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/qpwgraph (Old) and /work/SRC/openSUSE:Factory/.qpwgraph.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "qpwgraph" Sat Aug 20 20:29:21 2022 rev:9 rq:998360 version:0.3.5 Changes: -------- --- /work/SRC/openSUSE:Factory/qpwgraph/qpwgraph.changes 2022-07-07 12:57:40.623351213 +0200 +++ /work/SRC/openSUSE:Factory/.qpwgraph.new.2083/qpwgraph.changes 2022-08-20 20:29:39.393518001 +0200 @@ -1,0 +2,16 @@ +Sat Aug 20 13:45:52 UTC 2022 - Alexei Sorokin <[email protected]> + +- Update to version 0.3.5: + * Patchbay/Scan menu command removed as redundant. + * Added Patchbay/Auto Pin connections option. + * Add current system user-name to the singleton/unique + application instance identifier. + +------------------------------------------------------------------- +Sat Jul 9 14:23:21 UTC 2022 - Alexei Sorokin <[email protected]> + +- Update to version 0.3.4: + * Fix repainting of pinned/unpinned connections when switching + patchbay profiles and Patchbay/Edit mode is on. + +------------------------------------------------------------------- Old: ---- qpwgraph-v0.3.3.tar.bz2 New: ---- qpwgraph-v0.3.5.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ qpwgraph.spec ++++++ --- /var/tmp/diff_new_pack.NH2jOI/_old 2022-08-20 20:29:39.845519254 +0200 +++ /var/tmp/diff_new_pack.NH2jOI/_new 2022-08-20 20:29:39.849519265 +0200 @@ -17,7 +17,7 @@ Name: qpwgraph -Version: 0.3.3 +Version: 0.3.5 Release: 0 Summary: PipeWire Graph Qt GUI Interface License: GPL-2.0-or-later ++++++ qpwgraph-v0.3.3.tar.bz2 -> qpwgraph-v0.3.5.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.3/CMakeLists.txt new/qpwgraph-v0.3.5/CMakeLists.txt --- old/qpwgraph-v0.3.3/CMakeLists.txt 2022-07-06 19:31:36.000000000 +0200 +++ new/qpwgraph-v0.3.5/CMakeLists.txt 2022-08-20 14:16:49.000000000 +0200 @@ -1,7 +1,7 @@ cmake_minimum_required (VERSION 3.15) project(qpwgraph - VERSION 0.3.3 + VERSION 0.3.5 DESCRIPTION "A PipeWire Graph Qt GUI Interface" HOMEPAGE_URL "https://gitlab.freedesktop.org/rncbc/qpwgraph" LANGUAGES C CXX) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.3/ChangeLog new/qpwgraph-v0.3.5/ChangeLog --- old/qpwgraph-v0.3.3/ChangeLog 2022-07-06 19:31:36.000000000 +0200 +++ new/qpwgraph-v0.3.5/ChangeLog 2022-08-20 14:16:49.000000000 +0200 @@ -2,10 +2,24 @@ -------------------------------------------- +0.3.5 2022-08-20 A thirteenth beta release. + +- Patchbay/Scan menu command removed as redundand. +- Added Patchbay/Auto Pin connections option (issue #56). +- Add current system user-name to the singleton/unique application + instance identifier. + + +0.3.4 2022-07-08 A twelfth beta release. + +- Fixed repainting of pinned/unpinned connections when switching + patchbay profiles and Patchbay/Edit mode is on. + + 0.3.3 2022-07-06 An eleventh beta release. - Patchbay/Edit mode introduced: pinning and unpinning connections - to and from current patchbay is now implemented. (EXPERIMENTAL) + to and from current patchbay is now implemented. - Original Graph/Connect and Disconnect keyboard shortcuts, [Ins] and [Del], are now added to the existing ones, respectively. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.3/README.md new/qpwgraph-v0.3.5/README.md --- old/qpwgraph-v0.3.3/README.md 2022-07-06 19:31:36.000000000 +0200 +++ new/qpwgraph-v0.3.5/README.md 2022-08-20 14:16:49.000000000 +0200 @@ -28,8 +28,8 @@ On the source distribution top directory: - cmake [-DCMAKE_INSTALL_PREFIX=/usr/local] -B build - cmake --build build [--parallel] + cmake [-DCMAKE_INSTALL_PREFIX=<prefix>] -B build + cmake --build build [--parallel <Njobs>] After successful build you may test run it immedialy as follows: @@ -37,7 +37,9 @@ If you may install it permanently, then run, optionally as root: - sudo cmake --install build + [sudo] cmake --install build + + Note that the default installation path (\<_prefix_\>) is `/usr/local` . Enjoy. @@ -51,4 +53,4 @@ ## Copyright - Copyright (C) 2021-2022, rncbc aka Rui Nuno Capela. All rights reserved. \ No newline at end of file + Copyright (C) 2021-2022, rncbc aka Rui Nuno Capela. All rights reserved. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.3/src/appdata/org.rncbc.qpwgraph.metainfo.xml new/qpwgraph-v0.3.5/src/appdata/org.rncbc.qpwgraph.metainfo.xml --- old/qpwgraph-v0.3.3/src/appdata/org.rncbc.qpwgraph.metainfo.xml 2022-07-06 19:31:36.000000000 +0200 +++ new/qpwgraph-v0.3.5/src/appdata/org.rncbc.qpwgraph.metainfo.xml 2022-08-20 14:16:49.000000000 +0200 @@ -37,7 +37,7 @@ <developer_name>rncbc aka. Rui Nuno Capela</developer_name> <update_contact>[email protected]</update_contact> <releases> - <release version="0.3.3" date="2022-07-06" urgency="low" /> + <release version="0.3.5" date="2022-08-20" urgency="low" /> </releases> <content_rating type="oars-1.0"/> </component> Binary files old/qpwgraph-v0.3.3/src/images/editRename.png and new/qpwgraph-v0.3.5/src/images/editRename.png differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.3/src/qpwgraph.cpp new/qpwgraph-v0.3.5/src/qpwgraph.cpp --- old/qpwgraph-v0.3.3/src/qpwgraph.cpp 2022-07-06 19:31:36.000000000 +0200 +++ new/qpwgraph-v0.3.5/src/qpwgraph.cpp 2022-08-20 14:16:49.000000000 +0200 @@ -134,6 +134,13 @@ bool qpwgraph_application::setup (void) { m_unique = QCoreApplication::applicationName(); + QString uname = QString::fromUtf8(::getenv("USER")); + if (uname.isEmpty()) + uname = QString::fromUtf8(::getenv("USERNAME")); + if (!uname.isEmpty()) { + m_unique += ':'; + m_unique += uname; + } m_unique += '@'; m_unique += QHostInfo::localHostName(); #if defined(Q_OS_UNIX) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.3/src/qpwgraph.qrc new/qpwgraph-v0.3.5/src/qpwgraph.qrc --- old/qpwgraph-v0.3.3/src/qpwgraph.qrc 2022-07-06 19:31:36.000000000 +0200 +++ new/qpwgraph-v0.3.5/src/qpwgraph.qrc 2022-08-20 14:16:49.000000000 +0200 @@ -17,7 +17,6 @@ <file>images/fileSave.png</file> <file>images/editUndo.png</file> <file>images/editRedo.png</file> - <file>images/editRename.png</file> <file>images/viewCenter.png</file> <file>images/viewColors.png</file> <file>images/viewZoomIn.png</file> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.3/src/qpwgraph_canvas.cpp new/qpwgraph-v0.3.5/src/qpwgraph_canvas.cpp --- old/qpwgraph-v0.3.3/src/qpwgraph_canvas.cpp 2022-07-06 19:31:36.000000000 +0200 +++ new/qpwgraph-v0.3.5/src/qpwgraph_canvas.cpp 2022-08-20 14:16:49.000000000 +0200 @@ -65,8 +65,8 @@ : QGraphicsView(parent), m_state(DragNone), m_item(nullptr), m_connect(nullptr), m_rubberband(nullptr), m_zoom(1.0), m_zoomrange(false), - m_commands(nullptr), m_settings(nullptr), - m_patchbay(nullptr), m_patchbay_edit(false), + m_commands(nullptr), m_settings(nullptr), m_patchbay(nullptr), + m_patchbay_edit(false), m_patchbay_autopin(true), m_selected_nodes(0), m_edit_item(nullptr), m_editor(nullptr), m_edited(0) { @@ -144,7 +144,20 @@ } -// Patchbay edit methods. +// Patchbay auto-pin accessors. +void qpwgraph_canvas::setPatchbayAutoPin ( bool on ) +{ + m_patchbay_autopin = on; +} + + +bool qpwgraph_canvas::isPatchbayAutoPin (void) const +{ + return m_patchbay_autopin; +} + + +// Patchbay edit-mode accessors. void qpwgraph_canvas::setPatchbayEdit ( bool on ) { if (m_patchbay == nullptr) @@ -154,15 +167,9 @@ ( on && m_patchbay_edit)) return; - foreach (QGraphicsItem *item, m_scene->items()) { - if (item->type() == qpwgraph_connect::Type) { - qpwgraph_connect *connect = static_cast<qpwgraph_connect *> (item); - if (connect) - connect->setDimmed(on && !m_patchbay->findConnect(connect)); - } - } - m_patchbay_edit = on; + + patchbayEdit(); } @@ -172,6 +179,20 @@ } +void qpwgraph_canvas::patchbayEdit (void) +{ + foreach (QGraphicsItem *item, m_scene->items()) { + if (item->type() == qpwgraph_connect::Type) { + qpwgraph_connect *connect = static_cast<qpwgraph_connect *> (item); + if (connect) { + connect->setDimmed( + m_patchbay_edit && !m_patchbay->findConnect(connect)); + } + } + } +} + + bool qpwgraph_canvas::canPatchbayPin (void) const { if (m_patchbay == nullptr || !m_patchbay_edit) @@ -494,7 +515,7 @@ void qpwgraph_canvas::emitConnectPorts ( qpwgraph_port *port1, qpwgraph_port *port2, bool is_connect ) { - if (m_patchbay) + if (m_patchbay && (m_patchbay_autopin || !is_connect)) m_patchbay->connectPorts(port1, port2, is_connect); if (is_connect) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.3/src/qpwgraph_canvas.h new/qpwgraph-v0.3.5/src/qpwgraph_canvas.h --- old/qpwgraph-v0.3.3/src/qpwgraph_canvas.h 2022-07-06 19:31:36.000000000 +0200 +++ new/qpwgraph-v0.3.5/src/qpwgraph_canvas.h 2022-08-20 14:16:49.000000000 +0200 @@ -70,10 +70,16 @@ qpwgraph_patchbay *patchbay() const; - // Patchbay edit methods. + // Patchbay auto-pin accessors. + void setPatchbayAutoPin(bool on); + bool isPatchbayAutoPin() const; + + // Patchbay edit-mode accessors. void setPatchbayEdit(bool on); bool isPatchbayEdit() const; + void patchbayEdit(); + bool canPatchbayPin() const; bool canPatchbayUnpin() const; @@ -246,6 +252,7 @@ qpwgraph_patchbay *m_patchbay; bool m_patchbay_edit; + bool m_patchbay_autopin; QList<QGraphicsItem *> m_selected; int m_selected_nodes; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.3/src/qpwgraph_config.cpp new/qpwgraph-v0.3.5/src/qpwgraph_config.cpp --- old/qpwgraph-v0.3.3/src/qpwgraph_config.cpp 2022-07-06 19:31:36.000000000 +0200 +++ new/qpwgraph-v0.3.5/src/qpwgraph_config.cpp 2022-08-20 14:16:49.000000000 +0200 @@ -47,6 +47,7 @@ static const char *PatchbayPathKey = "/Path"; static const char *PatchbayActivatedKey = "/Activated"; static const char *PatchbayExclusiveKey = "/Exclusive"; +static const char *PatchbayAutoPinKey = "/AutoPin"; static const char *PatchbayRecentFilesKey = "/RecentFiles"; static const char *PatchbayToolbarKey = "/Toolbar"; @@ -68,7 +69,8 @@ m_patchbay_toolbar(false), m_patchbay_activated(false), m_patchbay_exclusive(false), - m_systray_enabled(false) + m_patchbay_autopin(true), + m_systray_enabled(true) { } @@ -218,7 +220,7 @@ m_patchbay_activated = activated; } -int qpwgraph_config::isPatchbayActivated (void) const +bool qpwgraph_config::isPatchbayActivated (void) const { return m_patchbay_activated; } @@ -229,12 +231,23 @@ m_patchbay_exclusive = exclusive; } -int qpwgraph_config::isPatchbayExclusive (void) const +bool qpwgraph_config::isPatchbayExclusive (void) const { return m_patchbay_exclusive; } +void qpwgraph_config::setPatchbayAutoPin ( bool autopin ) +{ + m_patchbay_autopin = autopin; +} + +bool qpwgraph_config::isPatchbayAutoPin (void) const +{ + return m_patchbay_autopin; +} + + void qpwgraph_config::patchbayRecentFiles ( const QString& path ) { // Remove from list if already there (avoid duplicates) @@ -285,8 +298,9 @@ m_patchbay_toolbar = m_settings->value(PatchbayToolbarKey).toBool(); m_patchbay_dir = m_settings->value(PatchbayDirKey).toString(); m_patchbay_path = m_settings->value(PatchbayPathKey).toString(); - m_patchbay_activated = m_settings->value(PatchbayActivatedKey).toBool(); - m_patchbay_exclusive = m_settings->value(PatchbayExclusiveKey).toBool(); + m_patchbay_activated = m_settings->value(PatchbayActivatedKey, false).toBool(); + m_patchbay_exclusive = m_settings->value(PatchbayExclusiveKey, false).toBool(); + m_patchbay_autopin = m_settings->value(PatchbayAutoPinKey, true).toBool(); m_patchbay_recentfiles = m_settings->value(PatchbayRecentFilesKey).toStringList(); m_settings->endGroup(); @@ -347,6 +361,7 @@ m_settings->setValue(PatchbayPathKey, m_patchbay_path); m_settings->setValue(PatchbayActivatedKey, m_patchbay_activated); m_settings->setValue(PatchbayExclusiveKey, m_patchbay_exclusive); + m_settings->setValue(PatchbayAutoPinKey, m_patchbay_autopin); m_settings->setValue(PatchbayRecentFilesKey, m_patchbay_recentfiles); m_settings->endGroup(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.3/src/qpwgraph_config.h new/qpwgraph-v0.3.5/src/qpwgraph_config.h --- old/qpwgraph-v0.3.3/src/qpwgraph_config.h 2022-07-06 19:31:36.000000000 +0200 +++ new/qpwgraph-v0.3.5/src/qpwgraph_config.h 2022-08-20 14:16:49.000000000 +0200 @@ -81,10 +81,13 @@ const QString& patchbayPath() const; void setPatchbayActivated(bool activated); - int isPatchbayActivated() const; + bool isPatchbayActivated() const; void setPatchbayExclusive(bool exclusive); - int isPatchbayExclusive() const; + bool isPatchbayExclusive() const; + + void setPatchbayAutoPin(bool exclusive); + bool isPatchbayAutoPin() const; void patchbayRecentFiles(const QString& path); const QStringList& patchbayRecentFiles() const; @@ -115,6 +118,7 @@ QString m_patchbay_path; bool m_patchbay_activated; bool m_patchbay_exclusive; + bool m_patchbay_autopin; QStringList m_patchbay_recentfiles; bool m_systray_enabled; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.3/src/qpwgraph_form.cpp new/qpwgraph-v0.3.5/src/qpwgraph_form.cpp --- old/qpwgraph-v0.3.3/src/qpwgraph_form.cpp 2022-07-06 19:31:36.000000000 +0200 +++ new/qpwgraph-v0.3.5/src/qpwgraph_form.cpp 2022-08-20 14:16:49.000000000 +0200 @@ -271,6 +271,10 @@ SIGNAL(toggled(bool)), SLOT(patchbayExclusive(bool))); + QObject::connect(m_ui.patchbayAutoPinAction, + SIGNAL(toggled(bool)), + SLOT(patchbayAutoPin(bool))); + QObject::connect(m_ui.patchbayEditAction, SIGNAL(toggled(bool)), SLOT(patchbayEdit(bool))); @@ -281,10 +285,6 @@ SIGNAL(triggered(bool)), SLOT(patchbayUnpin())); - QObject::connect(m_ui.patchbayScanAction, - SIGNAL(triggered(bool)), - SLOT(patchbayScan())); - QObject::connect(m_ui.graphQuitAction, SIGNAL(triggered(bool)), SLOT(closeQuit())); @@ -526,6 +526,8 @@ m_patchbay_path.clear(); ++m_patchbay_untitled; + m_ui.graphCanvas->patchbayEdit(); + updatePatchbayNames(); } @@ -648,11 +650,9 @@ } -void qpwgraph_form::patchbayScan (void) +void qpwgraph_form::patchbayAutoPin ( bool on ) { - qpwgraph_patchbay *patchbay = m_ui.graphCanvas->patchbay(); - if (patchbay) - patchbay->scan(); + m_ui.graphCanvas->setPatchbayAutoPin(on); stabilize(); } @@ -1026,8 +1026,10 @@ #endif if (nchanged > 0) { - patchbayScan(); - // stabilize(); + qpwgraph_patchbay *patchbay = m_ui.graphCanvas->patchbay(); + if (patchbay) + patchbay->scan(); + stabilize(); } QTimer::singleShot(300, this, SLOT(refresh())); @@ -1053,7 +1055,6 @@ setWindowTitle(title); m_ui.patchbayExclusiveAction->setEnabled(is_activated); - m_ui.patchbayScanAction->setEnabled(is_activated); m_ui.patchbaySaveAction->setEnabled(is_dirty); m_ui.patchbayPinAction->setEnabled(canvas->canPatchbayPin()); @@ -1138,6 +1139,8 @@ m_patchbay_dir = QFileInfo(path).absolutePath(); m_patchbay_path = path; + m_ui.graphCanvas->patchbayEdit(); + patchbay->scan(); return true; } @@ -1451,10 +1454,13 @@ if (patchbay) { const bool is_activated = m_config->isPatchbayActivated(); const bool is_exclusive = m_config->isPatchbayExclusive(); + const bool is_autopin = m_config->isPatchbayAutoPin(); m_ui.patchbayActivatedAction->setChecked(is_activated); m_ui.patchbayExclusiveAction->setChecked(is_exclusive); + m_ui.patchbayAutoPinAction->setChecked(is_autopin); patchbay->setActivated(is_activated); patchbay->setExclusive(is_exclusive); + m_ui.graphCanvas->setPatchbayAutoPin(is_autopin); } m_ui.viewMenubarAction->setChecked(m_config->isMenubar()); @@ -1532,6 +1538,7 @@ m_config->setPatchbayToolbar(m_ui.patchbayToolbar->isVisible()); m_config->setMenubar(m_ui.MenuBar->isVisible()); + m_config->setPatchbayAutoPin(m_ui.patchbayAutoPinAction->isChecked()); m_config->setPatchbayExclusive(m_ui.patchbayExclusiveAction->isChecked()); m_config->setPatchbayActivated(m_ui.patchbayActivatedAction->isChecked()); m_config->setPatchbayPath(m_patchbay_path); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.3/src/qpwgraph_form.h new/qpwgraph-v0.3.5/src/qpwgraph_form.h --- old/qpwgraph-v0.3.3/src/qpwgraph_form.h 2022-07-06 19:31:36.000000000 +0200 +++ new/qpwgraph-v0.3.5/src/qpwgraph_form.h 2022-08-20 14:16:49.000000000 +0200 @@ -107,7 +107,7 @@ void patchbayPin(); void patchbayUnpin(); - void patchbayScan(); + void patchbayAutoPin(bool on); // Main menu slots. void viewMenubar(bool on); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qpwgraph-v0.3.3/src/qpwgraph_form.ui new/qpwgraph-v0.3.5/src/qpwgraph_form.ui --- old/qpwgraph-v0.3.3/src/qpwgraph_form.ui 2022-07-06 19:31:36.000000000 +0200 +++ new/qpwgraph-v0.3.5/src/qpwgraph_form.ui 2022-08-20 14:16:49.000000000 +0200 @@ -86,7 +86,8 @@ <addaction name="patchbayPinAction"/> <addaction name="patchbayUnpinAction"/> <addaction name="separator"/> - <addaction name="patchbayScanAction"/> + <addaction name="separator"/> + <addaction name="patchbayAutoPinAction"/> </widget> <widget class="QMenu" name="editMenu"> <property name="title"> @@ -460,18 +461,21 @@ <string/> </property> </action> - <action name="patchbayScanAction"> - <property name="text"> - <string>S&can</string> + <action name="patchbayAutoPinAction"> + <property name="checkable"> + <bool>true</bool> </property> - <property name="iconText"> - <string>Scan</string> + <property name="text"> + <string>Au&to Pin</string> </property> <property name="toolTip"> - <string>Scan patchbay</string> + <string>Auto pin connections</string> </property> <property name="statusTip"> - <string>Scan current patchbay</string> + <string>Auto pin connections to current patchbay</string> + </property> + <property name="shortcut"> + <string/> </property> </action> <action name="graphQuitAction"> @@ -544,7 +548,7 @@ </action> <action name="editRenameItemAction"> <property name="icon"> - <iconset resource="qpwgraph.qrc">:/images/editRename.png</iconset> + <iconset resource="qpwgraph.qrc">:/images/itemEdit.png</iconset> </property> <property name="text"> <string>&Rename...</string>
