- Update to version 0.9.0
Note: This release is not backwards compatible to the 0.8.x series. The widget is and remains available with the previous API on git branch 0.8.xx. * Warn before losing user data * Use QPalette for Widget Colors * Programatically highlight/select some regions * Blinking Read-Only cursor flag option * dynamic bytesPerLine property depends on the widget size version 0.8.11: * Upload PyQt5 and PyQt6 bindings to PyPi * Migrate from Distutils to PyQt-builder for PyQt Bindings * Cleanup structure and build scripts * Fix strange behavior of the cursor * Fix translation of the example doesn't work * Fix address display of last Line - Drop revive-qt5.patch and Qt5 in general OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/qhexedit2?expand=0&rev=33
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
8
qhexedit.desktop
Normal file
8
qhexedit.desktop
Normal file
@@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Exec=qhexedit
|
||||
Name=QHexEdit
|
||||
Icon=qhexedit
|
||||
GenericName=Binary Editor
|
||||
Terminal=false
|
||||
Categories=Development;Debugger
|
3
qhexedit2-0.8.10.tar.gz
Normal file
3
qhexedit2-0.8.10.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2f8b85f56097e274e7cb4ad1f5c7467470ab237358b376fa5d01018b25e27bac
|
||||
size 353275
|
3
qhexedit2-0.8.9.tar.gz
Normal file
3
qhexedit2-0.8.9.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2c32d0fde1685e9af7978ba60002a7d9fad4f2f3d0d1c4b19bdc18ab74b69e41
|
||||
size 341341
|
3
qhexedit2-0.9.0.tar.gz
Normal file
3
qhexedit2-0.9.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1e5803988207e9ab2c776698f68408bc6cbf5d25ef3d79a955b4122d3ff27422
|
||||
size 375234
|
177
qhexedit2.changes
Normal file
177
qhexedit2.changes
Normal file
@@ -0,0 +1,177 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 27 05:53:14 UTC 2025 - Luigi Baldoni <aloisio@gmx.com>
|
||||
|
||||
- Update to version 0.9.0
|
||||
Note: This release is not backwards compatible to the 0.8.x
|
||||
series. The widget is and remains available with the previous
|
||||
API on git branch 0.8.xx.
|
||||
* Warn before losing user data
|
||||
* Use QPalette for Widget Colors
|
||||
* Programatically highlight/select some regions
|
||||
* Blinking Read-Only cursor flag option
|
||||
* dynamic bytesPerLine property depends on the widget size
|
||||
version 0.8.11:
|
||||
* Upload PyQt5 and PyQt6 bindings to PyPi
|
||||
* Migrate from Distutils to PyQt-builder for PyQt Bindings
|
||||
* Cleanup structure and build scripts
|
||||
* Fix strange behavior of the cursor
|
||||
* Fix translation of the example doesn't work
|
||||
* Fix address display of last Line
|
||||
- Drop revive-qt5.patch and Qt5 in general
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 23 11:08:12 UTC 2025 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
- properly handle the Q_UNREACHABLE_RETURN in a Qt5 build
|
||||
https://github.com/Simsys/qhexedit2/issues/154
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 23 09:49:21 UTC 2025 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
- Switch build back to Qt5 (boo#1236026)
|
||||
- Add revive-qt5.patch to quite up a compiler warning.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 13 19:21:10 UTC 2025 - Luigi Baldoni <aloisio@gmx.com>
|
||||
|
||||
- Update to version 0.8.10
|
||||
* Replace QPallete::Background with QPallete::Window (for Qt6)
|
||||
* Update main.cpp to add version option and future
|
||||
extensibility
|
||||
* Support the use of SIP5
|
||||
* Some small improvements
|
||||
- Switch build to Qt6
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 16 20:08:25 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||
|
||||
- update to 0.8.9:
|
||||
- make appveyor upload assets
|
||||
- test appveyor
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 24 07:50:46 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>
|
||||
|
||||
- Update to version 0.8.7
|
||||
* extend HexCaps check to address and edit text
|
||||
* use 'monospace' hint to improve font guess
|
||||
* fix build with qt < 5.11.0
|
||||
* add icon pics to source
|
||||
* forward key press events to parent widget
|
||||
* limit undo stack to 1000 entries
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 16 17:09:27 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>
|
||||
|
||||
- Update to version 0.8.6
|
||||
* Bug fix: select data above 2GB
|
||||
* add selectedData() method
|
||||
* minor changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 12 12:05:08 UTC 2018 - aloisio@gmx.com
|
||||
|
||||
- Update to version 0.8.5
|
||||
* Dynamic bytesPerLine property
|
||||
* Russian translation
|
||||
* QDesigner plugin
|
||||
* Bug fixes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 2 12:48:42 UTC 2017 - bwiedemann@suse.com
|
||||
|
||||
- Use convert -strip to not have timestamps in png files
|
||||
to make build fully reproducible
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 9 21:18:59 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
- Update to version 0.8.3
|
||||
* Ascii area ist now editable
|
||||
* New property hexCaps
|
||||
* Bugfixes
|
||||
* Translation updates
|
||||
* Bump lib version to 4.0.0
|
||||
- Dropped SLE11 support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 20 08:28:26 UTC 2016 - aloisio@gmx.com
|
||||
|
||||
- Update to version 0.8.2
|
||||
* New feature: Bytes per line is now adjustable
|
||||
* Fix build for MSVC
|
||||
* Allow hex input chars 'a'...'f' and 'A'...'F'
|
||||
* Typos
|
||||
* Bug fix: Glitch address area background color when view
|
||||
slided left
|
||||
* Bug fix: Glitch when view slided left and paint event
|
||||
* Bump lib version to 3.1.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 14 17:53:39 UTC 2016 - aloisio@gmx.com
|
||||
|
||||
- Fixed dependency in devel package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 8 20:21:15 UTC 2016 - aloisio@gmx.com
|
||||
|
||||
- Update to version 0.8.1
|
||||
* Bump lib version to 3.0.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 7 20:15:35 UTC 2016 - aloisio@gmx.com
|
||||
|
||||
- Update to version 0.8.0
|
||||
* Add copyright and license statement
|
||||
* Make python example work (binary read)
|
||||
* setFont() ist not longer 'virtual' (minimal change in
|
||||
lib interface)
|
||||
* Fix leak memory issue
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 1 21:44:40 UTC 2016 - aloisio@gmx.com
|
||||
|
||||
- Update to version 0.7.8
|
||||
* Adjust include directory for qt5 in setup.py for Ubuntu 16.04
|
||||
* Initialize values in constructor
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 27 21:37:13 UTC 2016 - jengelh@inai.de
|
||||
|
||||
- Drop excessive dependencies
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 14 17:34:39 UTC 2016 - aloisio@gmx.com
|
||||
|
||||
- Update to version 0.7.7
|
||||
* Take horizontal scrolling position into account, when
|
||||
calculation cursor position from graphical (mouse click)
|
||||
position
|
||||
* Adjust horizontal scrollbar, when the cursor leaves the
|
||||
viewport
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 7 19:39:39 UTC 2016 - aloisio@gmx.com
|
||||
|
||||
- Update to version 0.7.6
|
||||
* Miscalculation of the position of cursor when scrolling
|
||||
horizontally corrected
|
||||
|
||||
- Dropped icon file as source
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 7 14:34:47 UTC 2016 - aloisio@gmx.com
|
||||
|
||||
- Update to version 0.7.5
|
||||
* Cursor position in insert mode (when deleting last byte)
|
||||
corrected
|
||||
* resetSelection() now clips to max data size
|
||||
* setSelection() now clips to max data size
|
||||
|
||||
- Added icon file as source
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 11 17:38:51 UTC 2015 - aloisio@gmx.com
|
||||
|
||||
- Initial version 0.7.4
|
||||
|
138
qhexedit2.spec
Normal file
138
qhexedit2.spec
Normal file
@@ -0,0 +1,138 @@
|
||||
#
|
||||
# spec file for package qhexedit2
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define _libver 0
|
||||
Name: qhexedit2
|
||||
Version: 0.9.0
|
||||
Release: 0
|
||||
Summary: Qt-based hex editor
|
||||
License: LGPL-2.0-only
|
||||
URL: https://github.com/Simsys/qhexedit2
|
||||
Source0: https://github.com/Simsys/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source1: qhexedit.desktop
|
||||
BuildRequires: ImageMagick
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++ >= 4.8
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(Qt6Widgets)
|
||||
|
||||
%description
|
||||
QHexEdit is a hex editor widget written in C++ for the Qt framework.
|
||||
It is a simple editor for binary data, just like QPlainTextEdit is for text
|
||||
data.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libqhexedit%{_libver} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation and examples for %{name}
|
||||
Group: Documentation/HTML
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
The %{name}-doc package contains the documentation and examples for %{name}.
|
||||
|
||||
%package -n libqhexedit%{_libver}
|
||||
Summary: Qt6 %{name} library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libqhexedit%{_libver}
|
||||
Qt6 library for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
mkdir build-lib
|
||||
pushd build-lib
|
||||
%qmake6 ../src/qhexedit.pro
|
||||
%qmake6_build
|
||||
popd
|
||||
|
||||
# Build application
|
||||
mkdir build-example
|
||||
pushd build-example
|
||||
%qmake6 ../example/qhexedit.pro
|
||||
%qmake6_build
|
||||
popd
|
||||
|
||||
%install
|
||||
# Library and headers
|
||||
install -d %{buildroot}%{_includedir}/%{name}
|
||||
cp -a src/*.h %{buildroot}%{_includedir}/%{name}
|
||||
install -d %{buildroot}%{_libdir}
|
||||
chmod 0755 build-lib/*.so.*.*
|
||||
cp -a build-lib/*.so* %{buildroot}%{_libdir}
|
||||
|
||||
# pkg-config files
|
||||
install -d %{buildroot}%{_libdir}/pkgconfig/
|
||||
|
||||
cat > %{buildroot}%{_libdir}/pkgconfig/%{name}.pc <<EOF
|
||||
libdir=%{_libdir}
|
||||
includedir=%{_includedir}/%{name}
|
||||
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Description: %{summary}
|
||||
Cflags: -I\${includedir}
|
||||
Libs: -L\${libdir} -lqhexedit
|
||||
EOF
|
||||
|
||||
# Application
|
||||
install -Dpm 0755 build-example/qhexedit %{buildroot}%{_bindir}/qhexedit
|
||||
desktop-file-install --dir=%{buildroot}%{_datadir}/applications/ %{SOURCE1}
|
||||
|
||||
# Fix docs
|
||||
%fdupes -s doc/html
|
||||
|
||||
# Install icon
|
||||
install -d %{buildroot}%{_datadir}/pixmaps
|
||||
convert -strip doc/html/qhexedit.png -resize 128x128! %{buildroot}%{_datadir}/pixmaps/qhexedit.png
|
||||
|
||||
%post -n libqhexedit%{_libver} -p /sbin/ldconfig
|
||||
|
||||
%postun -n libqhexedit%{_libver} -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license license.txt
|
||||
%doc readme.md
|
||||
%{_bindir}/qhexedit
|
||||
%{_datadir}/applications/qhexedit.desktop
|
||||
%{_datadir}/pixmaps/qhexedit.png
|
||||
|
||||
%files doc
|
||||
%license license.txt
|
||||
%doc doc/html readme.md changelog.md
|
||||
|
||||
%files -n libqhexedit%{_libver}
|
||||
%license license.txt
|
||||
%{_libdir}/libqhexedit.so.%{_libver}*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/%{name}/
|
||||
%{_libdir}/libqhexedit.so
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%changelog
|
34
revive-qt5.patch
Normal file
34
revive-qt5.patch
Normal file
@@ -0,0 +1,34 @@
|
||||
Index: qhexedit2-0.8.10/example/main.cpp
|
||||
===================================================================
|
||||
--- qhexedit2-0.8.10.orig/example/main.cpp
|
||||
+++ qhexedit2-0.8.10/example/main.cpp
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <QTranslator>
|
||||
#include <QLocale>
|
||||
#include <QFile>
|
||||
+#include <optional>
|
||||
|
||||
#include "mainwindow.h"
|
||||
|
||||
@@ -87,11 +88,21 @@ int main(int argc, char *argv[])
|
||||
|
||||
case Status::VersionRequested:
|
||||
parser.showVersion();
|
||||
+#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
|
||||
Q_UNREACHABLE_RETURN(0);
|
||||
+#else
|
||||
+ Q_UNREACHABLE();
|
||||
+ return 0;
|
||||
+#endif
|
||||
|
||||
case Status::HelpRequested:
|
||||
parser.showHelp();
|
||||
+#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
|
||||
Q_UNREACHABLE_RETURN(0);
|
||||
+#else
|
||||
+ Q_UNREACHABLE();
|
||||
+ return 0;
|
||||
+#endif
|
||||
}
|
||||
|
||||
if (query.hasFile)
|
Reference in New Issue
Block a user