* Added current signing key * Bumped compat to 10 * Bumped debhelper to (>= 10) * Added build dependency libqt5svg5-dev * Renamed package libqt5xdg1 -> libqt5xdg2 (soname bump) * Added packages libqt5xdgiconloader2 and libqt5xdgiconloader-dev * XdgIconLoader: Recommend gtk-update-icon-cache Thanks Rohan Garg <rohan@kde.org> * Renamed install and symbols files * Fixed symbols * Fixed .gitignore * Reworked descriptions in debian/control to prevent lintian whining * Fixed copyright for xdgiconloader * Added README.md to debian/docs * Set CMAKE_BUILD_TYPE=RelWithDebInfoubuntu/cosmic debian/2.0.0-4
parent
dd32e345e7
commit
3c96bc717b
@ -0,0 +1,8 @@
|
|||||||
|
build*
|
||||||
|
*.qm
|
||||||
|
*~
|
||||||
|
*.autosave
|
||||||
|
*-swp
|
||||||
|
*.swp
|
||||||
|
CMakeLists.txt.user*
|
||||||
|
nbproject/
|
@ -0,0 +1,361 @@
|
|||||||
|
|
||||||
|
libqtxdg-2.0.0 / 2016-09-17
|
||||||
|
===========================
|
||||||
|
|
||||||
|
* Bump version to 2.0.0
|
||||||
|
* Extend README.md
|
||||||
|
* Updates dependencies
|
||||||
|
* Fixes QIcon::hasThemeIcon() behavior with our Icon Loader Engine
|
||||||
|
* Adds Qt5Svg explicitly to the required packages
|
||||||
|
* QIconLoader: Use the GTK+ icon caches
|
||||||
|
* QIcon: add a hook in the engine so a non null QIconEngine can still be a null icon
|
||||||
|
* QIconLoader: don't make QIconDirInfo::type a bit-field
|
||||||
|
* Do not support static QIcon instances
|
||||||
|
* Respect manual set icon themes.
|
||||||
|
* Remove <qhash.h> where it's not used
|
||||||
|
* Make it more obvious that Q_WS_ is dead code, and should perhaps be ported
|
||||||
|
* XdgDesktopFileData: Explicitly initialize members (#91)
|
||||||
|
* build: Create separate Qt5XdgIconLoader target
|
||||||
|
* XdgDesktopFile: Adds tests
|
||||||
|
* xdgdesktopfile: Removes an not needed debug info
|
||||||
|
* xdgdesktopfile: Removes double QLatin1String's contruction
|
||||||
|
* XdgDesktopFileCache: Check if a file isValid() only when needed
|
||||||
|
* XdgDesktopFile: Reworks XdgDesktopFileCache::getFile()
|
||||||
|
* XdgDesktopFileCache: Check new acquired objects before using it
|
||||||
|
* XdgDesktopFile: Removes unneeded assignment
|
||||||
|
* XdgDesktopFile: Add break to switch case
|
||||||
|
* qtxdg: Get the HOME environment variable just one time
|
||||||
|
* Replace the QString % operator by the + operator
|
||||||
|
* No more implicit string conversions
|
||||||
|
* Moves QT_USE_QSTRINGBUILDER to the compiler_settings CMake module
|
||||||
|
* XdgDesktopFileCache: Fixes an coding typing error
|
||||||
|
* xdgiconloader: Fix typo in directoryMatchesSize
|
||||||
|
* Xdgiconloader (#84)
|
||||||
|
* Improve foreach iteraror performance
|
||||||
|
* XdgDesktopFile: Improve the performance of the foreach loop
|
||||||
|
* XdgDesktopFile: Use XdgDirs::userDir(), drop QStandardPaths()
|
||||||
|
* XdgDesktopFile: Standardize text strings scope
|
||||||
|
* XdgDesktopFile: Adds a Desktop File ID calculator method
|
||||||
|
* XdgDesktopFile: Document Exec fallback when DBusActivatable fails
|
||||||
|
* Adds QT_USE_QSTRINGBUILDER to the compile definitions
|
||||||
|
* Adds the BUILD_DEV_UTILS to README.md
|
||||||
|
* Makes the development utils build/install optional
|
||||||
|
* XdgDesktopFile: Adds Exec fallback when DBusActivatable fails
|
||||||
|
* Adds an .desktop file start tester
|
||||||
|
* XdgDirs: Use Q_ASSERT to check for XdgDirs::userDirectory invalid values
|
||||||
|
* XdgDirs: Use XdgDirs::UserDirectory enum instead of int
|
||||||
|
* XdgDirs: Makes XdgDirs::userDir use userDirectoryFallback()
|
||||||
|
* XdgDirs: Adds userDirDefault() method.
|
||||||
|
* Adds XdgDesktopFile::mimeTypes() member
|
||||||
|
* build: Enable C++11 usage
|
||||||
|
* iconloader: Fix actualSize() for non-themed icons
|
||||||
|
* desktopfile: Change validity check
|
||||||
|
* Added Digia-Qt-LGPL-Exception-1.1
|
||||||
|
* Update years and Licenses
|
||||||
|
* desktopfile: Check validity of DBus object path
|
||||||
|
* desktopfile: Don't invoke DBus call on invalid interface
|
||||||
|
* XdgUserDirs: Return a fallback when the path is empty
|
||||||
|
* README.md: Fix grammatical error, adjust wording
|
||||||
|
* Update and rename README to README.md
|
||||||
|
* xdgdesktopfile: handle 'Path' entry for application's working directory
|
||||||
|
* Fix possible use of cachedIcon after free
|
||||||
|
* Update release.sh server url
|
||||||
|
|
||||||
|
1.3.0 / 2015-10-27
|
||||||
|
==================
|
||||||
|
|
||||||
|
* Release 1.3.0
|
||||||
|
* desktopfile: Remove support for $XDG_MOVIES_DIR (which doesn't exist)
|
||||||
|
* Assorted style cleanups
|
||||||
|
* Adds XdgDesktopFile != operator
|
||||||
|
* Fixes the XdgMimeType == operator
|
||||||
|
* Handles CMake policy CMP0063
|
||||||
|
* Adds an compiler_settings CMake "module"
|
||||||
|
* CMake: Adds Runtime install COMPONENT
|
||||||
|
* Drops find_package(), use find_dependency()
|
||||||
|
* Marks link libraries as PUBLIC
|
||||||
|
* Handles in-tree builds headers the right way.
|
||||||
|
* Narrows the scope of compile definitions
|
||||||
|
* Improves create_pkgconfig_file.cmake
|
||||||
|
* Use the Targets CMake stuff
|
||||||
|
* Adds package version config info file
|
||||||
|
* Code reordering
|
||||||
|
* Use Qt5 style library names
|
||||||
|
* Remove unneeded add_definitions()
|
||||||
|
* Simplifies version variables a little bit
|
||||||
|
* Removes unneeded include_directories()
|
||||||
|
* Uses standard GNUInstallDirs instead of FindLibSuffix
|
||||||
|
* Remove trailing whitespaces
|
||||||
|
* added missing licensing headers
|
||||||
|
* Backports Fixed icons lookup in QIcon::fromTheme
|
||||||
|
* Adds XdgDirs tests
|
||||||
|
* Adds XdgDirs::configHome() fallback default locations
|
||||||
|
* XdgDesktopFile: Handles NotShowIn correctly
|
||||||
|
* Fixes XdgDirs::dataHome() regression
|
||||||
|
* QIconLoader: Change the order fallback icon lookup order
|
||||||
|
* Gets rid of translations stuff
|
||||||
|
* Cleans up empty comment lines
|
||||||
|
* Remove Qt4 stuff from the documentation
|
||||||
|
* Remove Qt4 stuff from the example and tests
|
||||||
|
* Remove Qt4 stuff from the source files
|
||||||
|
* Get rid of Qt4 stuff in the build system
|
||||||
|
|
||||||
|
1.2.0 / 2015-03-29
|
||||||
|
==================
|
||||||
|
|
||||||
|
* Release 1.2.0
|
||||||
|
* Fixes XdgDesktop::isShow() caching mechanism
|
||||||
|
* Add QtDBus/Qt5DBus dependency
|
||||||
|
* Adds support for X-Categories
|
||||||
|
* Adds support for X-OnlyShowIn and X-NotShowIn
|
||||||
|
* Fixes an Qt4 FTBFS
|
||||||
|
* Use QLatin1Char()
|
||||||
|
* Adds platform-data handling
|
||||||
|
* Make DBusActivatable work for Qt4 too
|
||||||
|
* desktopfile: support for DBusActivatable applications
|
||||||
|
* Adds a list of special non detachable execs
|
||||||
|
* desktopfile: run new process as a direct child
|
||||||
|
* Qt5: Use QStandardPaths() where possible
|
||||||
|
* XdgDirs: Updates documentation.
|
||||||
|
* String manipulation enhancements
|
||||||
|
* Make sure returned directories don't have an trailing '/'
|
||||||
|
* XdgDirs: postfix should always start with an /
|
||||||
|
* XdgDirs::configHome() handle postfix slash
|
||||||
|
* Fix XdgDirs::dataDirs() postfix handling
|
||||||
|
* Replace empty quotes by QString()
|
||||||
|
* XdgDesktopFileCache: Retrieve apps of a category
|
||||||
|
* Quote all paths in the CMake stuff
|
||||||
|
* Qt5: Use Qt5 private headers
|
||||||
|
* Ignore empty dirs in xdgDirList()
|
||||||
|
* Makes needed helper functions available to tests
|
||||||
|
* - Fix compilation when using internal mime
|
||||||
|
* Release with a proper versioned prefix
|
||||||
|
* Avoid adding empty parent icon theme
|
||||||
|
* Update license headers and add new license files
|
||||||
|
* Use QPlatformTheme::SystemIconFallbackThemeName in static QString fallbackTheme()
|
||||||
|
* QIconLoader: enable an easy case of transactional processing
|
||||||
|
* QIconLoader: don't inherit QObject
|
||||||
|
* QIconLoader: replace an inefficient QList with a QVector
|
||||||
|
* QIconLoader: mark virtual overrides
|
||||||
|
* QIconLoader: mark a helper type as movable
|
||||||
|
* QIconLoader: replace while(!empty()) delete takeLast() with qDeleteAll()
|
||||||
|
* QIconLoader: don't re-evaluate container.size() all the time (II)
|
||||||
|
* QIconLoader: don't re-evaluate container.size() all the time
|
||||||
|
* QIconLoader: remove another unused variable
|
||||||
|
* QIconLoader: remove an unused variable
|
||||||
|
|
||||||
|
1.1.0 / 2015-02-07
|
||||||
|
==================
|
||||||
|
|
||||||
|
* Update the release script to sign packages
|
||||||
|
* Sets visibility to hidden symbols for Clang
|
||||||
|
* Move static const variable from a public .h file to the .cpp
|
||||||
|
* Use gcc visibility attribute and Q_DECL_EXPORT macro to avoid exporting private symbols in the lib. This greatly reduced the size of dynamic symbol table and might potentially speed up loading. Also, turn off exception handling to save more since we don't use it. For non-gcc compilers, this change does nothing.
|
||||||
|
* Makes the Qt5 build the default
|
||||||
|
* Qt5: Updates CMake minimum required version
|
||||||
|
* Qt4: Backport add fallback for unthemed app icons
|
||||||
|
* add fallback for unthemed app icons
|
||||||
|
* XdgDesktopFileCache::getFile(): Don't insert/removes non existent files
|
||||||
|
* Enhance the loading of a .desktop file.
|
||||||
|
* Adds helper functions prototypes
|
||||||
|
* Fixes issue #7
|
||||||
|
* Updates .gitignore
|
||||||
|
* Removes i18n/i10n
|
||||||
|
* Updates translations
|
||||||
|
* Updates the translation infrastructure
|
||||||
|
* Update Russian translation
|
||||||
|
* Qt4: Fixes an FTBFS on Gentoo x86_64 when USE_QTMIMETYPES=On
|
||||||
|
* Add a release script
|
||||||
|
|
||||||
|
1.0.0 / 2014-09-06
|
||||||
|
==================
|
||||||
|
|
||||||
|
* Release 1.0.0
|
||||||
|
* Replaces XdgMimeInfo with XdgMimeType
|
||||||
|
* Updates the cmake_minimum_required() version
|
||||||
|
* Build system maintenance
|
||||||
|
* if QT_VERSION < 5 load the qt4 header
|
||||||
|
* Allows QIconLoader to search in multiple theme directories.
|
||||||
|
* Fixes an FTBFS in the Qt4 build
|
||||||
|
* Merge branch 'use-qt5-qiconloader'
|
||||||
|
* Revert "Merge branch 'use-qt5-qiconloader'"
|
||||||
|
* Revert "Fixes an FTBFS in the Qt4 build"
|
||||||
|
* Fixes an FTBFS in the Qt4 build
|
||||||
|
* Get and set XDG user dirs variables in config file
|
||||||
|
* Honors /usr/share/pixmaps when searching for icons.
|
||||||
|
* Adds xpm icon support
|
||||||
|
* Adds Qt5 QIconLoader for the Qt5 build
|
||||||
|
* Ports Qt5 commit: Make sure QIconLoader is always initialized
|
||||||
|
* Use environment to trigger Qt5 builds
|
||||||
|
* Fixes an XdgMimeInfo memory leak
|
||||||
|
* Use case insensitive comparisons with desktop environment names
|
||||||
|
* Updates some XdgDesktopFile methods documentation
|
||||||
|
* Make desktop enviroment names comparisons case insensitive
|
||||||
|
* solve failed comp LXQT with LXQt (OnlyShowIn=LXQt;) in desktop files
|
||||||
|
* Re-adds Support XDG_CURRENT_DESKTOP in autostart handling
|
||||||
|
* Deprecates non desktop environment neutral XdgDesktopFile methods
|
||||||
|
* Revert "Support XDG_CURRENT_DESKTOP in autostart handling."
|
||||||
|
* Adds QTXDG_DEPRECATED macro
|
||||||
|
* Install pkgconfig files to /usr/local/libdata/pkgconfig in FreeBSD.
|
||||||
|
* Set library dirs properly in qtxdg-config and use files.
|
||||||
|
|
||||||
|
0.5.3 / 2014-05-08
|
||||||
|
==================
|
||||||
|
|
||||||
|
* Release 0.5.3
|
||||||
|
* Update some comments
|
||||||
|
|
||||||
|
0.5.1 / 2014-05-05
|
||||||
|
==================
|
||||||
|
|
||||||
|
* libqtxdg 0.5.1
|
||||||
|
* Revert "Change default environment to LXQt"
|
||||||
|
* Revert "Check for lxqt-applications instead of razor-applications"
|
||||||
|
* Support XDG_CURRENT_DESKTOP in autostart handling.
|
||||||
|
* Update .gitignore
|
||||||
|
* Check for lxqt-applications instead of razor-applications
|
||||||
|
* Change default environment to LXQt
|
||||||
|
* Avoid XdgAction mnemonics caused by '&' symbol in the name of desktop app.
|
||||||
|
|
||||||
|
0.1.0 / 2014-04-29
|
||||||
|
==================
|
||||||
|
|
||||||
|
* Update AUTHORS and COPYING
|
||||||
|
* Add CPack rules for creating tarball
|
||||||
|
* Put iconloaderfix into own namespace
|
||||||
|
* Adds an uninstall target
|
||||||
|
* Fixes an FTBFS on the test target
|
||||||
|
* Fixes an FTBFS when a mix of PIC and PIE compiler flags are used
|
||||||
|
* Updates CMake's minimum required version
|
||||||
|
* Adds Qt5Widgets to the required pkg-config required packages
|
||||||
|
* test: Removes meaningless add_dependencies(..... razorqt)
|
||||||
|
* Don't use STREQUAL to test the BUILD_TESTS option
|
||||||
|
* Removed CMAKE_SOURCE_DIR usage from test/CMakeLists.txt
|
||||||
|
* Adds missing ${CMAKE_INSTALL_PREFIX}
|
||||||
|
* Fixes bugs in create_pkgconfig_file cmake macro
|
||||||
|
* Use GNU installation directories
|
||||||
|
* prefix parameter for autostartDirs, configDirs and dataDirs. (part2)
|
||||||
|
* prefix parameter for autostartDirs, configDirs and dataDirs.
|
||||||
|
* Updates buildsystem typical use documentation
|
||||||
|
* Reformatting for an easy reading in a 80x24 terminal
|
||||||
|
* Documents the QTXDG_QT_LIBRARIES variable
|
||||||
|
* Adds an tiny example on how to use the lib
|
||||||
|
* RazorLibSuffix.cmake -> ../cmake/FindLibSuffix.cmake and QUIET mode for find_package
|
||||||
|
* Adds ${CMAKE_CURRENT_BINARY_DIR} to the include_directories list
|
||||||
|
* Fix qtxdg_use.cmake and qtxdg-config.cmake generation location
|
||||||
|
* Replace QDomNodeList::length() by QDomNodeList::size()
|
||||||
|
* Portable headers
|
||||||
|
* Adds pkg-config to Qt5Xdg
|
||||||
|
* Renames the Qt5 build
|
||||||
|
* Packs Qt version specific stuff
|
||||||
|
* Removes unneeded set(QT_USE_QTXML TRUE)
|
||||||
|
* qtxdg/test: Adapts the build system to support Qt4 and Qt5
|
||||||
|
* qtxdg/test: Removes Qt4 CMake stuff
|
||||||
|
* Adds missing library (Qt5Xml) to qtxdg target
|
||||||
|
* qtxdg/test: Removes the project command and cmake_minimum_required()
|
||||||
|
* Explicitly requires QtTest module
|
||||||
|
* Make BUILD_TESTS an option
|
||||||
|
* Replace Q_GLOBAL_STATIC_WITH_INITIALIZER
|
||||||
|
* Replaces QIconEngineV2 with QIconEngine
|
||||||
|
* Adds QMimeData include file
|
||||||
|
* Port QString::toAscii()
|
||||||
|
* Port QDesktopServices
|
||||||
|
* Ran fixqt4headers
|
||||||
|
* Adds support to Qt5 in the buildsystem
|
||||||
|
* Adds test target to CMake
|
||||||
|
* Use the QtTestLib facilities
|
||||||
|
* Cmake find_package files for the QtXdg
|
||||||
|
* Revert "Cmake find_package files"
|
||||||
|
* Cmake find_package files
|
||||||
|
* Add COPYING and AUTHORS files
|
||||||
|
* X-RAZOR changed to Razor in desktop files
|
||||||
|
* config-file-associations, mimetypeviewer: Replaced QTreeWidget with QTreeView and new class MimetypeItemModel as model
|
||||||
|
* Improved (hopefuly) layout and look of config-fileassociations, application chooser
|
||||||
|
* Clang complained about type mismatch
|
||||||
|
* application-x-executable now fallback icon for desktopfiles of type Application
|
||||||
|
* Added XdgMimeInfoCache
|
||||||
|
* Added more info to XdgMime
|
||||||
|
* XdgDesktopFileCache now holds list of all apps that can handle a given mimetype
|
||||||
|
* Make QtXdg build by itself again
|
||||||
|
* libraries: Removes unneeded include(RazorLibSuffix)
|
||||||
|
* libraries: Removes unneeded cmake_minimum_required(VERSION 2.6)
|
||||||
|
* libraries: Removes unneeded find_package(Qt4)
|
||||||
|
* xdgdesktopfilecache now looks in <datadir or datahome>/applications/defaults.list for default app
|
||||||
|
* Add getApps method to XdgDesktopFileCache - returns all applications that can handle a mimetype
|
||||||
|
* Fix building with C++11
|
||||||
|
* XdgDesktopFile: Don't strip quotes
|
||||||
|
* initial fix for #520 XdgDesktopFileCache::getDefaultApp cache wrong behavior
|
||||||
|
* Closes Issue #487
|
||||||
|
* Set minimum percent to 1% for transifex in cmake
|
||||||
|
* Translations updated
|
||||||
|
* Translations updated
|
||||||
|
* Soname was changed
|
||||||
|
* Update translations
|
||||||
|
* Translations updated
|
||||||
|
* Removed line num from TS files.
|
||||||
|
* Fix autostart dir detection when the env var is set
|
||||||
|
* Updated .tx file
|
||||||
|
* version bump to 0.4.99 (public "release candiates") for qtxdg
|
||||||
|
* Translation for razor-sesion
|
||||||
|
* Fixes in the qtxdg translations
|
||||||
|
* Transifex resource renamed qtxdg->libqtxdg
|
||||||
|
* Fix for Issue #290 Fails to build on BSD
|
||||||
|
* New translations for libqtxdg
|
||||||
|
* Starting the razor-confupdate from the razor-session.
|
||||||
|
* Razor-confupdate: fixes and .upd file for 0.4.1-0.5
|
||||||
|
* Language name zh_CN.GB2312 braked cmake process.
|
||||||
|
* Translations updated
|
||||||
|
* Add operator== for XdgDesktopFile
|
||||||
|
* Don't replace space with \s
|
||||||
|
* Fixed for Preloading menu
|
||||||
|
* Cleaning the code.
|
||||||
|
* Move autostart directory code to XdgDirs
|
||||||
|
* Improvements to the XdgMenu. Added changed signal.
|
||||||
|
* Small speed opetimistaion in the qiconloader
|
||||||
|
* Add function to remove entries from desktop files
|
||||||
|
* Transifex desktop: sr_BA.ts should be a local
|
||||||
|
* Transifex desktop: local translations
|
||||||
|
* Transifex desktop: Translations pulled
|
||||||
|
* Icons for the desktop menu
|
||||||
|
* Add Traditional Chinese Translations
|
||||||
|
* Translations update
|
||||||
|
* Added support for the online translation service. www.transifex.net
|
||||||
|
* Serbian translation files
|
||||||
|
* Class documentation for XdgMimeInfo
|
||||||
|
* Greek translation by iosifidis
|
||||||
|
* Fix for issue #170. Escaping.
|
||||||
|
* Fix for issue #170. Escaping.
|
||||||
|
* Fix for issue #170
|
||||||
|
* Fix for issue #170
|
||||||
|
* Added danish translations
|
||||||
|
* X-RAZOR -> Razor for autostart
|
||||||
|
* Russian translation
|
||||||
|
* RAZOR -> X-RAZOR
|
||||||
|
* MINOR_VERSION & PATCH_VERSION for libraries
|
||||||
|
* fix #169: italian translation
|
||||||
|
* XdgAutoStart rewriten (lgpl2+)
|
||||||
|
* Closes #158
|
||||||
|
* Support icons with absolute path file names
|
||||||
|
* LGPL2+ for qtxdg
|
||||||
|
* Escape &'s to prevent Qt from using them for mnemonics
|
||||||
|
* Revert "XdgDesktopFile: Display an actual ampersand character"
|
||||||
|
* Update german [de] translation
|
||||||
|
* Add setLocalizedValue() function
|
||||||
|
* fixed qtxdg/translations/translate.sh
|
||||||
|
* Add a constructor to generate basic XdgDesktopFiles
|
||||||
|
* Correct the XdgAutoStart behavior
|
||||||
|
* SVK translation finalized
|
||||||
|
* Replaces return"" by return QString()
|
||||||
|
* License audit
|
||||||
|
* implemented #70: pkg-config for libs
|
||||||
|
* Add Chinese(simplified) translation files.
|
||||||
|
* fix #119 qtxdg bug and patch
|
||||||
|
* License audit
|
||||||
|
* Add Slovak (sk) translation
|
||||||
|
* Czech translations (cs_CZ)
|
||||||
|
* Fix doxygen documentation in xdgdesktopfile
|
||||||
|
* New doxygen ifrastructure
|
||||||
|
* devel-docs generated in CMAKE_BINARY_DIR/docs includig dummy index.html
|
||||||
|
* missing translations in CMakeLists
|
||||||
|
* XdgDesktopFile is implicitly shared
|
||||||
|
* huge refactoring of the libraries build organization
|
@ -0,0 +1,22 @@
|
|||||||
|
Digia Qt LGPL Exception version 1.1
|
||||||
|
|
||||||
|
As an additional permission to the GNU Lesser General Public License version
|
||||||
|
2.1, the object code form of a "work that uses the Library" may incorporate
|
||||||
|
material from a header file that is part of the Library. You may distribute
|
||||||
|
such object code under terms of your choice, provided that:
|
||||||
|
(i) the header files of the Library have not been modified; and
|
||||||
|
(ii) the incorporated material is limited to numerical parameters, data
|
||||||
|
structure layouts, accessors, macros, inline functions and
|
||||||
|
templates; and
|
||||||
|
(iii) you comply with the terms of Section 6 of the GNU Lesser General
|
||||||
|
Public License version 2.1.
|
||||||
|
|
||||||
|
Moreover, you may apply this exception to a modified version of the Library,
|
||||||
|
provided that such modification does not involve copying material from the
|
||||||
|
Library into the modified Library's header files unless such material is
|
||||||
|
limited to (i) numerical parameters; (ii) data structure layouts;
|
||||||
|
(iii) accessors; and (iv) small macros, templates and inline functions of
|
||||||
|
five lines or less in length.
|
||||||
|
|
||||||
|
Furthermore, you are not required to apply this additional permission to a
|
||||||
|
modified version of the Library.
|
@ -1,25 +0,0 @@
|
|||||||
Overview
|
|
||||||
========
|
|
||||||
libqtxdg is An Qt implementation of freedesktop.org xdg specifications.
|
|
||||||
It's built with Qt5.
|
|
||||||
|
|
||||||
|
|
||||||
Dependencies
|
|
||||||
============
|
|
||||||
Qt5
|
|
||||||
|
|
||||||
|
|
||||||
Configuration
|
|
||||||
============
|
|
||||||
libqtxdg uses the CMake build system. Everything that applies to CMake also
|
|
||||||
applies here.
|
|
||||||
|
|
||||||
Configuration options:
|
|
||||||
BUILD_TESTS Builds tests, defaults to OFF
|
|
||||||
|
|
||||||
Configuration Examples:
|
|
||||||
Build library and build self tests:
|
|
||||||
cmake -DBUILD_TESTS=ON ..
|
|
||||||
|
|
||||||
Build the library without building self tests
|
|
||||||
cmake ..
|
|
@ -0,0 +1,27 @@
|
|||||||
|
# libqtxdg
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
`libqtxdg` is a Qt 5 implementation of freedesktop.org XDG specifications.
|
||||||
|
|
||||||
|
It is maintained by the LXQt project and nearly all LXQt components are depending on it. Yet it can be used independently from this desktop environment, too.
|
||||||
|
|
||||||
|
The library is able to use GTK+ icon theme caches for faster icon lookup. The cache file can be generated with utility `gtk-update-icon-cache` on a theme directory. If the cache is not present, corrupted, or outdated, the normal slow lookup is still run.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
### Sources
|
||||||
|
|
||||||
|
At runtime qtbase is needed. gtk-update-icon-cache represents an optional runtime dependency for the reasons stated above.
|
||||||
|
Additional build dependencies are CMake, qtsvg, qttools and optionally Git to pull latest VCS checkouts.
|
||||||
|
|
||||||
|
The code configuration is handled by CMake so all corresponding generic instructions apply. Specific CMake variables are
|
||||||
|
* BUILD_TESTS to build tests. Disabled by default (`OFF`).
|
||||||
|
* BUILD_DEV_UTILS which builds and installs development utils. Disabled by default as well.
|
||||||
|
|
||||||
|
To build and install run `make` and `make install`respectively.
|
||||||
|
|
||||||
|
### Binary packages
|
||||||
|
|
||||||
|
The library is provided by all major Linux distributions like Arch Linux, Debian, Fedora and openSUSE.
|
||||||
|
Just use the distributions' package managers to search for string `libqtxdg`.
|
@ -0,0 +1,11 @@
|
|||||||
|
@PACKAGE_INIT@
|
||||||
|
|
||||||
|
include(CMakeFindDependencyMacro)
|
||||||
|
|
||||||
|
find_dependency(Qt5Gui)
|
||||||
|
find_dependency(Qt5Svg)
|
||||||
|
|
||||||
|
if (CMAKE_VERSION VERSION_GREATER 2.8.12)
|
||||||
|
cmake_policy(SET CMP0024 OLD)
|
||||||
|
endif()
|
||||||
|
include("${CMAKE_CURRENT_LIST_DIR}/qt5xdgiconloader-targets.cmake")
|
@ -1,9 +1,12 @@
|
|||||||
/*.debhelper
|
/*.debhelper
|
||||||
/*.log
|
/*.log
|
||||||
/*.substvars
|
/*.substvars
|
||||||
|
/debhelper-build-stamp
|
||||||
/files
|
/files
|
||||||
|
|
||||||
/libqt5xdg1/
|
|
||||||
/libqt5xdg1-dbg/
|
/libqt5xdg2/
|
||||||
/libqt5xdg-dev/
|
/libqt5xdg-dev/
|
||||||
|
/libqt5xdgiconloader-dev/
|
||||||
|
/libqt5xdgiconloader2/
|
||||||
/tmp
|
/tmp
|
||||||
|
@ -1 +1 @@
|
|||||||
9
|
10
|
@ -1,2 +1,2 @@
|
|||||||
AUTHORS
|
AUTHORS
|
||||||
README
|
README.md
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
usr/include/*
|
usr/include/qt5xdg
|
||||||
usr/lib/*/lib*.so
|
|
||||||
usr/lib/*/pkgconfig/*
|
usr/lib/*/libQt5Xdg.so
|
||||||
usr/share/cmake/*
|
usr/lib/*/pkgconfig/Qt5Xdg.pc
|
||||||
|
|
||||||
|
usr/share/cmake/qt5xdg/
|
||||||
|
@ -1 +0,0 @@
|
|||||||
usr/lib/*/lib*.so.*
|
|
@ -0,0 +1 @@
|
|||||||
|
usr/lib/*/libQt5Xdg.so.*
|
@ -1,157 +1,135 @@
|
|||||||
libQt5Xdg.so.1 libqt5xdg1 #MINVER#
|
libQt5Xdg.so.2 libqt5xdg2 #MINVER#
|
||||||
(c++)"XdgMimeType::XdgMimeType(QMimeType const&)@Base" 1.0.0
|
(c++)"XdgAction::XdgAction(QObject*)@Base" 1.0.0
|
||||||
(c++)"XdgMimeType::XdgMimeType(XdgMimeType const&)@Base" 1.0.0
|
(c++)"XdgAction::XdgAction(QString const&, QObject*)@Base" 1.0.0
|
||||||
(c++)"XdgMimeType::XdgMimeType()@Base" 1.0.0
|
(c++)"XdgAction::XdgAction(XdgAction const&, QObject*)@Base" 1.0.0
|
||||||
(c++)"XdgMimeType::XdgMimeType(QMimeType const&)@Base" 1.0.0
|
(c++)"XdgAction::XdgAction(XdgDesktopFile const&, QObject*)@Base" 1.0.0
|
||||||
(c++)"XdgMimeType::XdgMimeType(XdgMimeType const&)@Base" 1.0.0
|
(c++)"XdgAction::XdgAction(XdgDesktopFile const*, QObject*)@Base" 1.0.0
|
||||||
(c++)"XdgMimeType::XdgMimeType()@Base" 1.0.0
|
(c++)"XdgAction::isValid() const@Base" 1.0.0
|
||||||
(c++)"XdgMimeType::~XdgMimeType()@Base" 1.0.0
|
(c++)"XdgAction::load(XdgDesktopFile const&)@Base" 1.0.0
|
||||||
(c++)"XdgMimeType::operator=(XdgMimeType const&)@Base" 1.0.0
|
(c++)"XdgAction::metaObject() const@Base" 1.0.0
|
||||||
|
(c++)"XdgAction::operator=(XdgAction const&)@Base" 1.0.0
|
||||||
|
(c++)"XdgAction::qt_metacall(QMetaObject::Call, int, void**)@Base" 1.0.0
|
||||||
|
(c++)"XdgAction::qt_metacast(char const*)@Base" 1.0.0
|
||||||
|
(c++)"XdgAction::runConmmand() const@Base" 1.0.0
|
||||||
|
(c++)"XdgAction::staticMetaObject@Base" 1.0.0
|
||||||
|
(c++)"XdgAction::updateIcon()@Base" 1.0.0
|
||||||
|
(c++)"XdgAction::~XdgAction()@Base" 1.0.0
|
||||||
(c++)"XdgAutoStart::desktopFileList(QStringList, bool)@Base" 1.0.0
|
(c++)"XdgAutoStart::desktopFileList(QStringList, bool)@Base" 1.0.0
|
||||||
(c++)"XdgAutoStart::desktopFileList(bool)@Base" 1.0.0
|
(c++)"XdgAutoStart::desktopFileList(bool)@Base" 1.0.0
|
||||||
(c++)"XdgAutoStart::localPath(XdgDesktopFile const&)@Base" 1.0.0
|
(c++)"XdgAutoStart::localPath(XdgDesktopFile const&)@Base" 1.0.0
|
||||||
(c++)"XdgMenuWidget::qt_metacall(QMetaObject::Call, int, void**)@Base" 1.0.0
|
(c++)"XdgDesktopFile::XdgDesktopFile()@Base" 1.0.0
|
||||||
(c++)"XdgMenuWidget::qt_metacast(char const*)@Base" 1.0.0
|
(c++)"XdgDesktopFile::XdgDesktopFile(XdgDesktopFile const&)@Base" 1.0.0
|
||||||
(c++)"XdgMenuWidget::staticMetaObject@Base" 1.0.0
|
(c++)"XdgDesktopFile::XdgDesktopFile(XdgDesktopFile::Type, QString const&, QString const&)@Base" 1.0.0
|
||||||
(c++)"XdgMenuWidget::event(QEvent*)@Base" 1.0.0
|
(c++)"XdgDesktopFile::categories() const@Base" 1.2.0
|
||||||
(c++)"XdgMenuWidget::XdgMenuWidget(QDomElement const&, QWidget*)@Base" 1.0.0
|
(c++)"XdgDesktopFile::contains(QString const&) const@Base" 1.0.0
|
||||||
(c++)"XdgMenuWidget::XdgMenuWidget(XdgMenu const&, QString const&, QWidget*)@Base" 1.0.0
|
(c++)"XdgDesktopFile::expandExecString(QStringList const&) const@Base" 1.0.0
|
||||||
(c++)"XdgMenuWidget::XdgMenuWidget(XdgMenuWidget const&, QWidget*)@Base" 1.0.0
|
(c++)"XdgDesktopFile::fileName() const@Base" 1.0.0
|
||||||
(c++)"XdgMenuWidget::XdgMenuWidget(QDomElement const&, QWidget*)@Base" 1.0.0
|
(c++)"XdgDesktopFile::icon(QIcon const&) const@Base" 1.0.0
|
||||||
(c++)"XdgMenuWidget::XdgMenuWidget(XdgMenu const&, QString const&, QWidget*)@Base" 1.0.0
|
(c++)"XdgDesktopFile::iconName() const@Base" 1.0.0
|
||||||
(c++)"XdgMenuWidget::XdgMenuWidget(XdgMenuWidget const&, QWidget*)@Base" 1.0.0
|
(c++)"XdgDesktopFile::id(QString const&, bool)@Base" 2.0.0
|
||||||
(c++)"XdgMenuWidget::~XdgMenuWidget()@Base" 1.0.0
|
(c++)"XdgDesktopFile::isShown(QString const&) const@Base" 1.0.0
|
||||||
(c++)"XdgMenuWidget::operator=(XdgMenuWidget const&)@Base" 1.0.0
|
(c++)"XdgDesktopFile::isSuitable(bool, QString const&) const@Base" 1.0.0
|
||||||
|
(c++)"XdgDesktopFile::isValid() const@Base" 1.0.0
|
||||||
|
(c++)"XdgDesktopFile::load(QString const&)@Base" 1.0.0
|
||||||
|
(c++)"XdgDesktopFile::localizedKey(QString const&) const@Base" 1.0.0
|
||||||
|
(c++)"XdgDesktopFile::localizedValue(QString const&, QVariant const&) const@Base" 1.0.0
|
||||||
|
(c++)"XdgDesktopFile::mimeTypes() const@Base" 1.3.0
|
||||||
|
(c++)"XdgDesktopFile::operator=(XdgDesktopFile const&)@Base" 1.0.0
|
||||||
|
(c++)"XdgDesktopFile::operator==(XdgDesktopFile const&) const@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFile::removeEntry(QString const&)@Base" 1.0.0
|
(c++)"XdgDesktopFile::removeEntry(QString const&)@Base" 1.0.0
|
||||||
|
(c++)"XdgDesktopFile::save(QIODevice*) const@Base" 1.0.0
|
||||||
|
(c++)"XdgDesktopFile::save(QString const&) const@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFile::setLocalizedValue(QString const&, QVariant const&)@Base" 1.0.0
|
(c++)"XdgDesktopFile::setLocalizedValue(QString const&, QVariant const&)@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFile::load(QString const&)@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::setValue(QString const&, QVariant const&)@Base" 1.0.0
|
(c++)"XdgDesktopFile::setValue(QString const&, QVariant const&)@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFile::XdgDesktopFile(XdgDesktopFile::Type, QString const&, QString const&)@Base" 1.0.0
|
(c++)"XdgDesktopFile::startDetached(QString const&) const@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFile::XdgDesktopFile(XdgDesktopFile const&)@Base" 1.0.0
|
(c++)"XdgDesktopFile::startDetached(QStringList const&) const@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFile::XdgDesktopFile()@Base" 1.0.0
|
(c++)"XdgDesktopFile::type() const@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFile::XdgDesktopFile(XdgDesktopFile::Type, QString const&, QString const&)@Base" 1.0.0
|
(c++)"XdgDesktopFile::url() const@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFile::XdgDesktopFile(XdgDesktopFile const&)@Base" 1.0.0
|
(c++)"XdgDesktopFile::value(QString const&, QVariant const&) const@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFile::XdgDesktopFile()@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::~XdgDesktopFile()@Base" 1.0.0
|
(c++)"XdgDesktopFile::~XdgDesktopFile()@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFile::operator=(XdgDesktopFile const&)@Base" 1.0.0
|
(c++)"XdgDesktopFileCache::XdgDesktopFileCache()@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFileCache::initialize(QString const&)@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFileCache::initialize()@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFileCache::getAllFiles()@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFileCache::getDefaultApp(QString const&)@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFileCache::getAppsOfCategory(QString const&)@Base" 1.2.0
|
|
||||||
(c++)"XdgDesktopFileCache::desktopFileSettingsFormat()@Base" 1.0.0
|
(c++)"XdgDesktopFileCache::desktopFileSettingsFormat()@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFileCache::load(QString const&)@Base" 1.0.0
|
(c++)"XdgDesktopFileCache::getAllFiles()@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFileCache::getApps(QString const&)@Base" 1.0.0
|
(c++)"XdgDesktopFileCache::getApps(QString const&)@Base" 1.0.0
|
||||||
|
(c++)"XdgDesktopFileCache::getAppsOfCategory(QString const&)@Base" 1.2.0
|
||||||
|
(c++)"XdgDesktopFileCache::getDefaultApp(QString const&)@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFileCache::getFile(QString const&)@Base" 1.0.0
|
(c++)"XdgDesktopFileCache::getFile(QString const&)@Base" 1.0.0
|
||||||
|
(c++)"XdgDesktopFileCache::initialize()@Base" 1.0.0
|
||||||
|
(c++)"XdgDesktopFileCache::initialize(QString const&)@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFileCache::instance()@Base" 1.0.0
|
(c++)"XdgDesktopFileCache::instance()@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFileCache::XdgDesktopFileCache()@Base" 1.0.0
|
(c++)"XdgDesktopFileCache::load(QString const&)@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFileCache::~XdgDesktopFileCache()@Base" 1.0.0
|
(c++)"XdgDesktopFileCache::~XdgDesktopFileCache()@Base" 1.0.0
|
||||||
(c++)"QtXdg::QIconLoader::setThemeName(QString const&)@Base" 1.0.0
|
(c++)"XdgDirs::autostartDirs(QString const&)@Base" 1.0.0
|
||||||
(c++)"QtXdg::QIconLoader::ensureInitialized()@Base" 1.0.0
|
(c++)"XdgDirs::autostartHome(bool)@Base" 1.0.0
|
||||||
(c++)"QtXdg::QIconLoader::updateSystemTheme()@Base" 1.0.0
|
(c++)"XdgDirs::cacheHome(bool)@Base" 1.0.0
|
||||||
(c++)"QtXdg::QIconLoader::setThemeSearchPath(QStringList const&)@Base" 1.0.0
|
|
||||||
(c++)"QtXdg::QIconLoader::instance()@Base" 1.0.0
|
|
||||||
(c++)"QtXdg::QIconLoader::QIconLoader()@Base" 1.0.0
|
|
||||||
(c++)"XdgDirs::configDirs(QString const&)@Base" 1.0.0
|
(c++)"XdgDirs::configDirs(QString const&)@Base" 1.0.0
|
||||||
(c++)"XdgDirs::configHome(bool)@Base" 1.0.0
|
(c++)"XdgDirs::configHome(bool)@Base" 1.0.0
|
||||||
|
(c++)"XdgDirs::dataDirs(QString const&)@Base" 1.0.0
|
||||||
|
(c++)"XdgDirs::dataHome(bool)@Base" 1.0.0
|
||||||
(c++)"XdgDirs::runtimeDir()@Base" 1.0.0
|
(c++)"XdgDirs::runtimeDir()@Base" 1.0.0
|
||||||
(c++)"XdgDirs::setUserDir(XdgDirs::UserDirectory, QString const&, bool)@Base" 1.0.0
|
(c++)"XdgDirs::setUserDir(XdgDirs::UserDirectory, QString const&, bool)@Base" 1.0.0
|
||||||
(c++)"XdgDirs::autostartDirs(QString const&)@Base" 1.0.0
|
|
||||||
(c++)"XdgDirs::autostartHome(bool)@Base" 1.0.0
|
|
||||||
(c++)"XdgDirs::userDir(XdgDirs::UserDirectory)@Base" 1.0.0
|
(c++)"XdgDirs::userDir(XdgDirs::UserDirectory)@Base" 1.0.0
|
||||||
(c++)"XdgDirs::dataDirs(QString const&)@Base" 1.0.0
|
(c++)"XdgDirs::userDirDefault(XdgDirs::UserDirectory)@Base" 1.3.0
|
||||||
(c++)"XdgDirs::dataHome(bool)@Base" 1.0.0
|
(c++)"XdgIcon::XdgIcon()@Base" 1.0.0
|
||||||
(c++)"XdgDirs::cacheHome(bool)@Base" 1.0.0
|
|
||||||
(c++)"XdgIcon::setThemeName(QString const&)@Base" 1.0.0
|
|
||||||
(c++)"XdgIcon::defaultApplicationIcon()@Base" 1.0.0
|
(c++)"XdgIcon::defaultApplicationIcon()@Base" 1.0.0
|
||||||
(c++)"XdgIcon::defaultApplicationIconName()@Base" 1.0.0
|
(c++)"XdgIcon::defaultApplicationIconName()@Base" 1.0.0
|
||||||
(c++)"XdgIcon::fromTheme(QStringList const&, QIcon const&)@Base" 1.0.0
|
|
||||||
(c++)"XdgIcon::fromTheme(QString const&, QIcon const&)@Base" 1.0.0
|
(c++)"XdgIcon::fromTheme(QString const&, QIcon const&)@Base" 1.0.0
|
||||||
(c++)"XdgIcon::fromTheme(QString const&, QString const&, QString const&, QString const&, QString const&)@Base" 1.0.0
|
(c++)"XdgIcon::fromTheme(QString const&, QString const&, QString const&, QString const&, QString const&)@Base" 1.0.0
|
||||||
|
(c++)"XdgIcon::fromTheme(QStringList const&, QIcon const&)@Base" 1.0.0
|
||||||
|
(c++)"XdgIcon::setThemeName(QString const&)@Base" 1.0.0
|
||||||
(c++)"XdgIcon::themeName()@Base" 1.0.0
|
(c++)"XdgIcon::themeName()@Base" 1.0.0
|
||||||
(c++)"XdgIcon::XdgIcon()@Base" 1.0.0
|
|
||||||
(c++)"XdgIcon::~XdgIcon()@Base" 1.0.0
|
(c++)"XdgIcon::~XdgIcon()@Base" 1.0.0
|
||||||
(c++)"XdgMenu::qt_metacall(QMetaObject::Call, int, void**)@Base" 1.0.0
|
(c++)"XdgMenu::XdgMenu(QObject*)@Base" 1.0.0
|
||||||
(c++)"XdgMenu::qt_metacast(char const*)@Base" 1.0.0
|
|
||||||
(c++)"XdgMenu::addWatchPath(QString const&)@Base" 1.0.0
|
(c++)"XdgMenu::addWatchPath(QString const&)@Base" 1.0.0
|
||||||
|
(c++)"XdgMenu::changed()@Base" 1.0.0
|
||||||
(c++)"XdgMenu::environments()@Base" 1.0.0
|
(c++)"XdgMenu::environments()@Base" 1.0.0
|
||||||
|
(c++)"XdgMenu::errorString() const@Base" 1.0.0
|
||||||
|
(c++)"XdgMenu::findMenu(QDomElement&, QString const&, bool)@Base" 1.0.0
|
||||||
(c++)"XdgMenu::getMenuFileName(QString const&)@Base" 1.0.0
|
(c++)"XdgMenu::getMenuFileName(QString const&)@Base" 1.0.0
|
||||||
(c++)"XdgMenu::setEnvironments(QStringList const&)@Base" 1.0.0
|
(c++)"XdgMenu::isOutDated() const@Base" 1.0.0
|
||||||
(c++)"XdgMenu::setEnvironments(QString const&)@Base" 1.0.0
|
(c++)"XdgMenu::logDir() const@Base" 1.0.0
|
||||||
(c++)"XdgMenu::staticMetaObject@Base" 1.0.0
|
(c++)"XdgMenu::menuFileName() const@Base" 1.0.0
|
||||||
|
(c++)"XdgMenu::metaObject() const@Base" 1.0.0
|
||||||
|
(c++)"XdgMenu::qt_metacall(QMetaObject::Call, int, void**)@Base" 1.0.0
|
||||||
|
(c++)"XdgMenu::qt_metacast(char const*)@Base" 1.0.0
|
||||||
(c++)"XdgMenu::read(QString const&)@Base" 1.0.0
|
(c++)"XdgMenu::read(QString const&)@Base" 1.0.0
|
||||||
(c++)"XdgMenu::save(QString const&)@Base" 1.0.0
|
(c++)"XdgMenu::save(QString const&)@Base" 1.0.0
|
||||||
(c++)"XdgMenu::changed()@Base" 1.0.0
|
(c++)"XdgMenu::setEnvironments(QString const&)@Base" 1.0.0
|
||||||
(c++)"XdgMenu::findMenu(QDomElement&, QString const&, bool)@Base" 1.0.0
|
(c++)"XdgMenu::setEnvironments(QStringList const&)@Base" 1.0.0
|
||||||
(c++)"XdgMenu::setLogDir(QString const&)@Base" 1.0.0
|
(c++)"XdgMenu::setLogDir(QString const&)@Base" 1.0.0
|
||||||
(c++)"XdgMenu::XdgMenu(QObject*)@Base" 1.0.0
|
(c++)"XdgMenu::staticMetaObject@Base" 1.0.0
|
||||||
|
(c++)"XdgMenu::xml() const@Base" 1.0.0
|
||||||
(c++)"XdgMenu::~XdgMenu()@Base" 1.0.0
|
(c++)"XdgMenu::~XdgMenu()@Base" 1.0.0
|
||||||
(c++)"XdgAction::updateIcon()@Base" 1.0.0
|
(c++)"XdgMenuWidget::XdgMenuWidget(QDomElement const&, QWidget*)@Base" 1.0.0
|
||||||
(c++)"XdgAction::qt_metacall(QMetaObject::Call, int, void**)@Base" 1.0.0
|
(c++)"XdgMenuWidget::XdgMenuWidget(XdgMenu const&, QString const&, QWidget*)@Base" 1.0.0
|
||||||
(c++)"XdgAction::qt_metacast(char const*)@Base" 1.0.0
|
(c++)"XdgMenuWidget::XdgMenuWidget(XdgMenuWidget const&, QWidget*)@Base" 1.0.0
|
||||||
(c++)"XdgAction::staticMetaObject@Base" 1.0.0
|
(c++)"XdgMenuWidget::event(QEvent*)@Base" 1.0.0
|
||||||
(c++)"XdgAction::load(XdgDesktopFile const&)@Base" 1.0.0
|
(c++)"XdgMenuWidget::metaObject() const@Base" 1.0.0
|
||||||
(c++)"XdgAction::XdgAction(QObject*)@Base" 1.0.0
|
(c++)"XdgMenuWidget::operator=(XdgMenuWidget const&)@Base" 1.0.0
|
||||||
(c++)"XdgAction::XdgAction(XdgDesktopFile const*, QObject*)@Base" 1.0.0
|
(c++)"XdgMenuWidget::qt_metacall(QMetaObject::Call, int, void**)@Base" 1.0.0
|
||||||
(c++)"XdgAction::XdgAction(XdgDesktopFile const&, QObject*)@Base" 1.0.0
|
(c++)"XdgMenuWidget::qt_metacast(char const*)@Base" 1.0.0
|
||||||
(c++)"XdgAction::XdgAction(QString const&, QObject*)@Base" 1.0.0
|
(c++)"XdgMenuWidget::staticMetaObject@Base" 1.0.0
|
||||||
(c++)"XdgAction::XdgAction(XdgAction const&, QObject*)@Base" 1.0.0
|
(c++)"XdgMenuWidget::~XdgMenuWidget()@Base" 1.0.0
|
||||||
(c++)"XdgAction::XdgAction(QObject*)@Base" 1.0.0
|
(c++)"XdgMimeType::XdgMimeType()@Base" 1.0.0
|
||||||
(c++)"XdgAction::XdgAction(XdgDesktopFile const*, QObject*)@Base" 1.0.0
|
(c++)"XdgMimeType::XdgMimeType(QMimeType const&)@Base" 1.0.0
|
||||||
(c++)"XdgAction::XdgAction(XdgDesktopFile const&, QObject*)@Base" 1.0.0
|
(c++)"XdgMimeType::XdgMimeType(XdgMimeType const&)@Base" 1.0.0
|
||||||
(c++)"XdgAction::XdgAction(QString const&, QObject*)@Base" 1.0.0
|
|
||||||
(c++)"XdgAction::XdgAction(XdgAction const&, QObject*)@Base" 1.0.0
|
|
||||||
(c++)"XdgAction::~XdgAction()@Base" 1.0.0
|
|
||||||
(c++)"XdgAction::operator=(XdgAction const&)@Base" 1.0.0
|
|
||||||
(c++)"XdgMimeType::icon() const@Base" 1.0.0
|
(c++)"XdgMimeType::icon() const@Base" 1.0.0
|
||||||
(c++)"XdgMimeType::iconName() const@Base" 1.0.0
|
(c++)"XdgMimeType::iconName() const@Base" 1.0.0
|
||||||
(c++)"XdgMenuWidget::metaObject() const@Base" 1.0.0
|
(c++)"XdgMimeType::operator=(XdgMimeType const&)@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFile::categories() const@Base" 1.2.0
|
(c++)"XdgMimeType::~XdgMimeType()@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFile::isSuitable(bool, QString const&) const@Base" 1.0.0
|
(c++)"non-virtual thunk to XdgMenuWidget::~XdgMenuWidget()@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFile::isApplicable(bool, QString const&) const@Base" 1.0.0
|
(c++)"typeinfo for XdgAction@Base" 1.0.0
|
||||||
(c++)"XdgDesktopFile::localizedKey(QString const&) const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::startDetached(QStringList const&) const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::startDetached(QString const&) const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::localizedValue(QString const&, QVariant const&) const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::expandExecString(QStringList const&) const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::url() const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::icon(QIcon const&) const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::save(QIODevice*) const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::save(QString const&) const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::type() const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::value(QString const&, QVariant const&) const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::isShow(QString const&) const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::isShown(QString const&) const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::isValid() const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::contains(QString const&) const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::fileName() const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::iconName() const@Base" 1.0.0
|
|
||||||
(c++)"XdgDesktopFile::operator==(XdgDesktopFile const&) const@Base" 1.0.0
|
|
||||||
(c++)"QtXdg::QIconLoader::findIconHelper(QString const&, QString const&, QStringList&) const@Base" 1.0.0
|
|
||||||
(c++)"QtXdg::QIconLoader::themeSearchPaths() const@Base" 1.0.0
|
|
||||||
(c++)"QtXdg::QIconLoader::loadIcon(QString const&) const@Base" 1.0.0
|
|
||||||
(c++)"XdgMenu::isOutDated() const@Base" 1.0.0
|
|
||||||
(c++)"XdgMenu::metaObject() const@Base" 1.0.0
|
|
||||||
(c++)"XdgMenu::errorString() const@Base" 1.0.0
|
|
||||||
(c++)"XdgMenu::menuFileName() const@Base" 1.0.0
|
|
||||||
(c++)"XdgMenu::xml() const@Base" 1.0.0
|
|
||||||
(c++)"XdgMenu::logDir() const@Base" 1.0.0
|
|
||||||
(c++)"XdgAction::metaObject() const@Base" 1.0.0
|
|
||||||
(c++)"XdgAction::runConmmand() const@Base" 1.0.0
|
|
||||||
(c++)"XdgAction::isValid() const@Base" 1.0.0
|
|
||||||
(c++)"typeinfo for XdgMenuWidget@Base" 1.0.0
|
|
||||||
(c++)"typeinfo for XdgDesktopFile@Base" 1.0.0
|
(c++)"typeinfo for XdgDesktopFile@Base" 1.0.0
|
||||||
(c++)"typeinfo for XdgIcon@Base" 1.0.0
|
(c++)"typeinfo for XdgIcon@Base" 1.0.0
|
||||||
(c++)"typeinfo for XdgMenu@Base" 1.0.0
|
(c++)"typeinfo for XdgMenu@Base" 1.0.0
|
||||||
(c++)"typeinfo for XdgAction@Base" 1.0.0
|
(c++)"typeinfo for XdgMenuWidget@Base" 1.0.0
|
||||||
(c++)"typeinfo name for XdgMenuWidget@Base" 1.0.0
|
(c++)"typeinfo name for XdgAction@Base" 1.0.0
|
||||||
(c++)"typeinfo name for XdgDesktopFile@Base" 1.0.0
|
(c++)"typeinfo name for XdgDesktopFile@Base" 1.0.0
|
||||||
(c++)"typeinfo name for XdgIcon@Base" 1.0.0
|
(c++)"typeinfo name for XdgIcon@Base" 1.0.0
|
||||||
(c++)"typeinfo name for XdgMenu@Base" 1.0.0
|
(c++)"typeinfo name for XdgMenu@Base" 1.0.0
|
||||||
(c++)"typeinfo name for XdgAction@Base" 1.0.0
|
(c++)"typeinfo name for XdgMenuWidget@Base" 1.0.0
|
||||||
(c++)"vtable for XdgMenuWidget@Base" 1.0.0
|
(c++)"vtable for XdgAction@Base" 1.0.0
|
||||||
(c++)"vtable for XdgDesktopFile@Base" 1.0.0
|
(c++)"vtable for XdgDesktopFile@Base" 1.0.0
|
||||||
(c++)"vtable for XdgIcon@Base" 1.0.0
|
(c++)"vtable for XdgIcon@Base" 1.0.0
|
||||||
(c++)"vtable for XdgMenu@Base" 1.0.0
|
(c++)"vtable for XdgMenu@Base" 1.0.0
|
||||||
(c++)"vtable for XdgAction@Base" 1.0.0
|
(c++)"vtable for XdgMenuWidget@Base" 1.0.0
|
||||||
(c++)"non-virtual thunk to XdgMenuWidget::~XdgMenuWidget()@Base" 1.0.0
|
|
@ -0,0 +1,9 @@
|
|||||||
|
usr/include/qt5xdgiconloader
|
||||||
|
|
||||||
|
usr/lib/*/libQt5XdgIconLoader.so
|
||||||
|
usr/lib/*/pkgconfig/Qt5XdgIconLoader.pc
|
||||||
|
|
||||||
|
usr/share/cmake/qt5xdgiconloader/qt5xdgiconloader-config-version.cmake
|
||||||
|
usr/share/cmake/qt5xdgiconloader/qt5xdgiconloader-config.cmake
|
||||||
|
usr/share/cmake/qt5xdgiconloader/qt5xdgiconloader-targets.cmake
|
||||||
|
usr/share/cmake/qt5xdgiconloader/qt5xdgiconloader-targets-relwithdebinfo.cmake
|
@ -0,0 +1,2 @@
|
|||||||
|
usr/lib/*/libQt5XdgIconLoader.so.*
|
||||||
|
|
@ -0,0 +1,27 @@
|
|||||||
|
libQt5XdgIconLoader.so.2 libqt5xdgiconloader2 #MINVER#
|
||||||
|
(c++)"XdgIconLoader::XdgIconLoader()@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoader::ensureInitialized()@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoader::findIconHelper(QString const&, QString const&, QStringList&) const@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoader::instance()@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoader::loadIcon(QString const&) const@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoader::setThemeName(QString const&)@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoader::setThemeSearchPath(QStringList const&)@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoader::themeSearchPaths() const@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoader::updateSystemTheme()@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoaderEngine::XdgIconLoaderEngine(QString const&)@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoaderEngine::XdgIconLoaderEngine(XdgIconLoaderEngine const&)@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoaderEngine::actualSize(QSize const&, QIcon::Mode, QIcon::State)@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoaderEngine::clone() const@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoaderEngine::ensureLoaded()@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoaderEngine::entryForSize(QSize const&)@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoaderEngine::hasIcon() const@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoaderEngine::key() const@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoaderEngine::paint(QPainter*, QRect const&, QIcon::Mode, QIcon::State)@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoaderEngine::pixmap(QSize const&, QIcon::Mode, QIcon::State)@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoaderEngine::read(QDataStream&)@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoaderEngine::virtual_hook(int, void*)@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoaderEngine::write(QDataStream&) const@Base" 2.0.0
|
||||||
|
(c++)"XdgIconLoaderEngine::~XdgIconLoaderEngine()@Base" 2.0.0
|
||||||
|
(c++)"typeinfo for XdgIconLoaderEngine@Base" 2.0.0
|
||||||
|
(c++)"typeinfo name for XdgIconLoaderEngine@Base" 2.0.0
|
||||||
|
(c++)"vtable for XdgIconLoaderEngine@Base" 2.0.0
|
@ -1,63 +1,50 @@
|
|||||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
Version: GnuPG v2.0.22 (GNU/Linux)
|
|
||||||
|
|
||||||
mQINBFJevCYBEACx+Hvy+Vsuf+V5jeLUnzjAmHoy8DfTeGWr3ts30IapLHrfi0+U
|
mQINBFXQeMMBEACif4+9pTrC6uNmRng0ZbzLh7p3cazmbnp2YFgDQDJZ7ZNmebxy
|
||||||
WpzNnISO77yTr4VNboVZH+GHM/rnPfieODfB4ZW6CZLlInMSKUXcgQsEqXpyBZhA
|
ngRuRhjGuDcFAL/37BwJnrBpfZFK9ljoH4Fo5Jm9cOELaTy7AIcEiV9dKMyrKF1E
|
||||||
Ib/SPy2bOfHly1uRJes0uRDsH5+v/hD74sByfnjQlrvI68O6wvGZmDFMNNPVO8+/
|
C76d8jHVuzuPbI92DkFdLZAdk+qjrrAy0x43PvUd+aaBGLcFs1ZMk7gOvElc2d95
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270pk7
|
|
||||||
W/ajuzuOxAVL1bJAanL/5+DWM03esZPVdEWhxpWEM40Z6Rhq+Xb2a5xfwCN9PmaQ
|
|
||||||
o9fez0I+yh53s7Ypv0tBj05FPe5L48+pDi6pz5nddN1B0FzF58jVfsBZUjBlY24+
|
|
||||||
VwQeAaWkRXZrSEdtBS5ufsi80x/cNCSTJBWqtborKL1iGgf5MDPYRMSvmZXAeIld
|
|
||||||
pyL/0pbW7iokewyKzpFfo7KEbwLxB+flWaBZ867JpF4yyRj3b4qcvcyV8QnsoB7Z
|
|
||||||
KhxTl3gGwD/t0HUcu85zcfs4GkealYhIWfGaAso2
|
|
||||||
=fF8P
|
|
||||||
-----END PGP PUBLIC KEY BLOCK-----
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version=3
|
version=4
|
||||||
opts="pgpsigurlmangle=s/$/.asc/" \
|
opts="pgpsigurlmangle=s/$/.asc/" \
|
||||||
https://github.com/lxde/libqtxdg/releases .*/libqtxdg-([\d\.]+)\.tar\.xz
|
https://github.com/lxde/libqtxdg/releases .*/libqtxdg-([\d\.]+)\.tar\.xz
|
||||||
|
@ -0,0 +1,146 @@
|
|||||||
|
set(QTX_LIBRARIES Qt5::Widgets Qt5::Xml Qt5::DBus)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
"${Qt5Gui_PRIVATE_INCLUDE_DIRS}"
|
||||||
|
)
|
||||||
|
set(libqtxdg_PUBLIC_H_FILES
|
||||||
|
xdgaction.h
|
||||||
|
xdgdesktopfile.h
|
||||||
|
xdgdirs.h
|
||||||
|
xdgicon.h
|
||||||
|
xdgmenu.h
|
||||||
|
xdgmenuwidget.h
|
||||||
|
xmlhelper.h
|
||||||
|
xdgautostart.h
|
||||||
|
xdgmacros.h
|
||||||
|
xdgmimetype.h
|
||||||
|
)
|
||||||
|
|
||||||
|
set(libqtxdg_PUBLIC_CLASSES
|
||||||
|
XdgAction
|
||||||
|
XdgDesktopFile
|
||||||
|
XdgDirs
|
||||||
|
XdgIcon
|
||||||
|
XdgMenu
|
||||||
|
XdgMenuWidget
|
||||||
|
XmlHelper
|
||||||
|
XdgAutoStart
|
||||||
|
XdgMimeType
|
||||||
|
)
|
||||||
|
|
||||||
|
set(libqtxdg_PRIVATE_H_FILES
|
||||||
|
xdgmenuapplinkprocessor.h
|
||||||
|
xdgmenulayoutprocessor.h
|
||||||
|
xdgmenu_p.h
|
||||||
|
xdgmenureader.h
|
||||||
|
xdgmenurules.h
|
||||||
|
xdgdesktopfile_p.h
|
||||||
|
)
|
||||||
|
|
||||||
|
set(libqtxdg_CPP_FILES
|
||||||
|
xdgaction.cpp
|
||||||
|
xdgdesktopfile.cpp
|
||||||
|
xdgdirs.cpp
|
||||||
|
xdgicon.cpp
|
||||||
|
xdgmenuapplinkprocessor.cpp
|
||||||
|
xdgmenu.cpp
|
||||||
|
xdgmenulayoutprocessor.cpp
|
||||||
|
xdgmenureader.cpp
|
||||||
|
xdgmenurules.cpp
|
||||||
|
xdgmenuwidget.cpp
|
||||||
|
xmlhelper.cpp
|
||||||
|
xdgautostart.cpp
|
||||||
|
xdgmimetype.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
set(libqtxdg_MOCS
|
||||||
|
xdgaction.h
|
||||||
|
xdgmenuapplinkprocessor.h
|
||||||
|
xdgmenu.h
|
||||||
|
xdgmenu_p.h
|
||||||
|
xdgmenureader.h
|
||||||
|
xdgmenurules.h
|
||||||
|
xdgmenuwidget.h
|
||||||
|
)
|
||||||
|
|
||||||
|
QT5_WRAP_CPP(libqtxdg_CXX_FILES ${libqtxdg_MOCS})
|
||||||
|
|
||||||
|
add_library(${QTXDGX_LIBRARY_NAME} SHARED
|
||||||
|
${libqtxdg_PUBLIC_H_FILES}
|
||||||
|
${libqtxdg_PRIVATE_H_FILES}
|
||||||
|
${libqtxdg_PRIVATE_H_FILES}
|
||||||
|
${libqtxdg_CPP_FILES}
|
||||||
|
${libqtxdg_CXX_FILES}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(${QTXDGX_LIBRARY_NAME}
|
||||||
|
PUBLIC
|
||||||
|
${QTX_LIBRARIES}
|
||||||
|
${QTXDGX_ICONLOADER_LIBRARY_NAME}
|
||||||
|
)
|
||||||
|
|
||||||
|
set_target_properties(${QTXDGX_LIBRARY_NAME} PROPERTIES
|
||||||
|
VERSION ${QTXDG_VERSION_STRING}
|
||||||
|
SOVERSION ${QTXDG_MAJOR_VERSION}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_compile_definitions(${QTXDGX_LIBRARY_NAME}
|
||||||
|
PRIVATE "QTXDG_COMPILATION=\"1\""
|
||||||
|
PRIVATE "QTXDG_VERSION=\"${QTXDG_VERSION_STRING}\""
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(${QTXDGX_LIBRARY_NAME}
|
||||||
|
INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${QTXDGX_FILE_NAME}>"
|
||||||
|
INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
|
||||||
|
)
|
||||||
|
|
||||||
|
# include directories and targets for the in tree build
|
||||||
|
target_include_directories(${QTXDGX_LIBRARY_NAME}
|
||||||
|
INTERFACE "$<BUILD_INTERFACE:${QTXDGX_INTREE_INCLUDEDIR}/${QTXDGX_FILE_NAME}>"
|
||||||
|
INTERFACE "$<BUILD_INTERFACE:${QTXDGX_INTREE_INCLUDEDIR}>"
|
||||||
|
)
|
||||||
|
|
||||||
|
export(TARGETS ${QTXDGX_LIBRARY_NAME} APPEND FILE "${CMAKE_BINARY_DIR}/${QTXDGX_FILE_NAME}-targets.cmake")
|
||||||
|
# end of in tree build stuff
|
||||||
|
|
||||||
|
# create the portble headers
|
||||||
|
create_portable_headers(libqtxdg_PORTABLE_HEADERS
|
||||||
|
HEADER_NAMES ${libqtxdg_PUBLIC_CLASSES}
|
||||||
|
OUTPUT_DIR "${QTXDGX_INTREE_INCLUDEDIR}/${QTXDGX_FILE_NAME}"
|
||||||
|
)
|
||||||
|
|
||||||
|
# Copy public headers (in tree building)
|
||||||
|
foreach(h ${libqtxdg_PUBLIC_H_FILES})
|
||||||
|
get_filename_component(bh ${h} NAME)
|
||||||
|
configure_file(${h} "${QTXDGX_INTREE_INCLUDEDIR}/${QTXDGX_FILE_NAME}/${bh}" COPYONLY)
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
# Copy private headers (in tree building)
|
||||||
|
foreach(h ${libqtxdg_PRIVATE_INSTALLABLE_H_FILES})
|
||||||
|
get_filename_component(bh ${h} NAME)
|
||||||
|
configure_file(${h} "${QTXDGX_INTREE_INCLUDEDIR}/${QTXDGX_FILE_NAME}/${QTXDG_VERSION_STRING}/private/qtxdg/${bh}" COPYONLY)
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
install(TARGETS
|
||||||
|
${QTXDGX_LIBRARY_NAME} DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
|
EXPORT "${QTXDGX_FILE_NAME}-targets"
|
||||||
|
COMPONENT Runtime
|
||||||
|
)
|
||||||
|
|
||||||
|
install(FILES
|
||||||
|
${libqtxdg_PUBLIC_H_FILES}
|
||||||
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${QTXDGX_FILE_NAME}"
|
||||||
|
COMPONENT Devel
|
||||||
|
)
|
||||||
|
|
||||||
|
install(FILES
|
||||||
|
${libqtxdg_PRIVATE_INSTALLABLE_H_FILES}
|
||||||
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${QTXDGX_FILE_NAME}/${QTXDG_VERSION_STRING}/private/qtxdg"
|
||||||
|
COMPONENT Devel
|
||||||
|
)
|
||||||
|
|
||||||
|
install(FILES
|
||||||
|
${libqtxdg_PORTABLE_HEADERS}
|
||||||
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${QTXDGX_FILE_NAME}"
|
||||||
|
COMPONENT Devel
|
||||||
|
)
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,118 @@
|
|||||||
|
/*
|
||||||
|
* libqtxdg - An Qt implementation of freedesktop.org xdg specs.
|
||||||
|
* Copyright (C) 2016 Luís Pereira <luis.artur.pereira@gmail.com>
|
||||||
|
*
|
||||||
|
* 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) any later version.
|
||||||
|
*
|
||||||
|
* 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 "tst_xdgdesktopfile.h"
|
||||||
|
#include "XdgDesktopFile"
|
||||||
|
#include <QtTest>
|
||||||
|
|
||||||
|
|
||||||
|
class Language
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
Language (const QString& lang)
|
||||||
|
: mPreviousLang(QString::fromLocal8Bit(qgetenv("LANG")))
|
||||||
|
{
|
||||||
|
qputenv("LANG", lang.toLocal8Bit());
|
||||||
|
}
|
||||||
|
~Language()
|
||||||
|
{
|
||||||
|
qputenv("LANG", mPreviousLang.toLocal8Bit());
|
||||||
|
}
|
||||||
|
private:
|
||||||
|
QString mPreviousLang;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
QTEST_MAIN(tst_xdgdesktopfile);
|
||||||
|
|
||||||
|
void tst_xdgdesktopfile::testRead()
|
||||||
|
{
|
||||||
|
QTemporaryFile file("testReadXXXXXX.desktop");
|
||||||
|
QVERIFY(file.open());
|
||||||
|
const QString fileName = file.fileName();
|
||||||
|
QTextStream ts(&file);
|
||||||
|
ts <<
|
||||||
|
"[Desktop Entry]\n"
|
||||||
|
"Type=Application\n"
|
||||||
|
"Name=MyApp\n"
|
||||||
|
"Icon=foobar\n"
|
||||||
|
"MimeType=text/plain;image/png;;\n"
|
||||||
|
"\n";
|
||||||
|
file.close();
|
||||||
|
QVERIFY(QFile::exists(fileName));
|
||||||
|
|
||||||
|
XdgDesktopFile df;
|
||||||
|
df.load(fileName);
|
||||||
|
|
||||||
|
QVERIFY(df.isValid());
|
||||||
|
QCOMPARE(df.type(), XdgDesktopFile::ApplicationType);
|
||||||
|
QCOMPARE(df.name(), QString::fromLatin1("MyApp"));
|
||||||
|
QCOMPARE(df.iconName(), QString::fromLatin1("foobar"));
|
||||||
|
QCOMPARE(df.mimeTypes(), QStringList() << QString::fromLatin1("text/plain")
|
||||||
|
<< QString::fromLatin1("image/png"));
|
||||||
|
QCOMPARE(df.fileName(), QFileInfo(fileName).canonicalFilePath());
|
||||||
|
}
|
||||||
|
|
||||||
|
void tst_xdgdesktopfile::testReadLocalized_data()
|
||||||
|
{
|
||||||
|
QTest::addColumn<QString>("locale");
|
||||||
|
QTest::addColumn<QString>("translation");
|
||||||
|
|
||||||
|
const QString pt = QString::fromUtf8("A Minha Aplicação");
|
||||||
|
const QString pt_BR = QString::fromUtf8("O Meu Aplicativo");
|
||||||
|
|
||||||
|
QTest::newRow("pt") << QStringLiteral("pt") << pt;
|
||||||
|
QTest::newRow("pt_PT") << QStringLiteral("pt_PT") << pt;
|
||||||
|
QTest::newRow("pt_BR") << QStringLiteral("pt_BR") << pt_BR;
|
||||||
|
|
||||||
|
QTest::newRow("de") << QStringLiteral("de") << QStringLiteral("My Application");
|
||||||
|
}
|
||||||
|
|
||||||
|
void tst_xdgdesktopfile::testReadLocalized()
|
||||||
|
{
|
||||||
|
QTemporaryFile file("testReadLocalizedXXXXXX.desktop");
|
||||||
|
QVERIFY(file.open());
|
||||||
|
const QString fileName = file.fileName();
|
||||||
|
QTextStream ts(&file);
|
||||||
|
ts << QString::fromUtf8(
|
||||||
|
"[Desktop Entry]\n"
|
||||||
|
"Type=Application\n"
|
||||||
|
"Name=My Application\n"
|
||||||
|
"Name[pt]=A Minha Aplicação\n"
|
||||||
|
"Name[pt_BR]=O Meu Aplicativo\n"
|
||||||
|
"Icon=foo\n"
|
||||||
|
"\n");
|
||||||
|
file.close();
|
||||||
|
|
||||||
|
QVERIFY(QFile::exists(fileName));
|
||||||
|
|
||||||
|
XdgDesktopFile df;
|
||||||
|
df.load(fileName);
|
||||||
|
QVERIFY(df.isValid());
|
||||||
|
|
||||||
|
QFETCH(QString, locale);
|
||||||
|
QFETCH(QString, translation);
|
||||||
|
|
||||||
|
Language lang(locale);
|
||||||
|
|
||||||
|
QCOMPARE(df.localizedValue("Name").toString(), translation);
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "test/tst_xdgdesktopfile.moc"
|
@ -0,0 +1,35 @@
|
|||||||
|
/*
|
||||||
|
* libqtxdg - An Qt implementation of freedesktop.org xdg specs.
|
||||||
|
* Copyright (C) 2016 Luís Pereira <luis.artur.pereira@gmail.com>
|
||||||
|
*
|
||||||
|
* 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) any later version.
|
||||||
|
*
|
||||||
|
* 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 TST_XDGDESKTOPFILE_H
|
||||||
|
#define TST_XDGDESKTOPFILE_H
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
|
class tst_xdgdesktopfile : public QObject {
|
||||||
|
Q_OBJECT
|
||||||
|
private slots:
|
||||||
|
|
||||||
|
void testRead();
|
||||||
|
void testReadLocalized();
|
||||||
|
void testReadLocalized_data();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // TST_XDGDESKTOPFILE_H
|
@ -0,0 +1,26 @@
|
|||||||
|
include_directories (
|
||||||
|
"${CMAKE_PROJECT_DIR}/qtxdg"
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
set(QTXDG_DESKTOP_FILE_START_SRCS
|
||||||
|
qtxdg-desktop-file-start.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
add_executable(qtxdg-desktop-file-start
|
||||||
|
${QTXDG_DESKTOP_FILE_START_SRCS}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_compile_definitions(qtxdg-desktop-file-start
|
||||||
|
PRIVATE "-DQTXDG_VERSION=\"${QTXDG_VERSION_STRING}\""
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(qtxdg-desktop-file-start
|
||||||
|
${QTXDGX_LIBRARY_NAME}
|
||||||
|
)
|
||||||
|
|
||||||
|
install(TARGETS
|
||||||
|
qtxdg-desktop-file-start
|
||||||
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||||
|
COMPONENT Runtime
|
||||||
|
)
|
@ -0,0 +1,71 @@
|
|||||||
|
/*
|
||||||
|
* libqtxdg - An Qt implementation of freedesktop.org xdg specs
|
||||||
|
* Copyright (C) 2016 Luís Pereira <luis.artur.pereira@gmail.com>
|
||||||
|
*
|
||||||
|
* 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) any later version.
|
||||||
|
*
|
||||||
|
* 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 <QCoreApplication>
|
||||||
|
#include <QCommandLineParser>
|
||||||
|
#include <QFileInfo>
|
||||||
|
|
||||||
|
#include <XdgDesktopFile>
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
static void printErr(const QString & out)
|
||||||
|
{
|
||||||
|
std::cerr << qPrintable(out);
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
QCoreApplication app(argc, argv);
|
||||||
|
QCoreApplication::setApplicationName(QLatin1String("qtxdg-desktop-file-start"));
|
||||||
|
QCoreApplication::setApplicationVersion(QLatin1String(QTXDG_VERSION));
|
||||||
|
|
||||||
|
QCommandLineParser parser;
|
||||||
|
parser.setApplicationDescription(QLatin1String("QtXdg XdgDesktopFile start Tester"));
|
||||||
|
parser.addHelpOption();
|
||||||
|
parser.addVersionOption();
|
||||||
|
parser.addPositionalArgument(QLatin1String("file [urls...]"), QLatin1String("desktop file to start and it's urls"),QLatin1String("file [urls...]"));
|
||||||
|
parser.process(app);
|
||||||
|
|
||||||
|
if (parser.positionalArguments().isEmpty()) {
|
||||||
|
parser.showHelp(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
|
QStringList userArgs = parser.positionalArguments();
|
||||||
|
const QString userFileName = userArgs.takeFirst();
|
||||||
|
const QFileInfo fileInfo(userFileName);
|
||||||
|
const QString canonicalFileName = fileInfo.canonicalFilePath();
|
||||||
|
|
||||||
|
if (!fileInfo.exists()) {
|
||||||
|
printErr(QString::fromLatin1("File %1 does not exist\n").arg(userFileName));
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
XdgDesktopFile f;
|
||||||
|
const bool valid = f.load(canonicalFileName);
|
||||||
|
if (valid) {
|
||||||
|
f.startDetached(userArgs);
|
||||||
|
} else {
|
||||||
|
printErr(QString::fromLatin1("%1 is not a valid .desktop file\n").arg(canonicalFileName));
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
@ -0,0 +1,83 @@
|
|||||||
|
include_directories(
|
||||||
|
"${Qt5Gui_PRIVATE_INCLUDE_DIRS}"
|
||||||
|
)
|
||||||
|
|
||||||
|
set(xdgiconloader_PUBLIC_H_FILES
|
||||||
|
)
|
||||||
|
|
||||||
|
set(xdgiconloader_PUBLIC_CLASSES
|
||||||
|
)
|
||||||
|
|
||||||
|
set(xdgiconloader_PRIVATE_H_FILES
|
||||||
|
)
|
||||||
|
|
||||||
|
set(xdgiconloader_CPP_FILES
|
||||||
|
xdgiconloader.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
set(xdgiconloader_MOCS
|
||||||
|
)
|
||||||
|
|
||||||
|
set(xdgiconloader_PRIVATE_INSTALLABLE_H_FILES
|
||||||
|
xdgiconloader_p.h
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
add_library(${QTXDGX_ICONLOADER_LIBRARY_NAME} SHARED
|
||||||
|
${xdgiconloader_CPP_FILES}
|
||||||
|
${xdgiconloader_PRIVATE_INSTALLABLE_H_FILES}
|
||||||
|
)
|
||||||
|
|
||||||
|
generate_export_header(${QTXDGX_ICONLOADER_LIBRARY_NAME} BASE_NAME XdgIconLoader)
|
||||||
|
|
||||||
|
# Copy public headers (in tree building)
|
||||||
|
set(XDGICONLOADER_EXPORT_FILE "xdgiconloader_export.h")
|
||||||
|
configure_file(
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/${XDGICONLOADER_EXPORT_FILE}"
|
||||||
|
"${QTXDGX_INTREE_INCLUDEDIR}/${QTXDGX_ICONLOADER_FILE_NAME}/${XDGICONLOADER_EXPORT_FILE}"
|
||||||
|
COPYONLY
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(${QTXDGX_ICONLOADER_LIBRARY_NAME}
|
||||||
|
INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${QTXDGX_ICONLOADER_FILE_NAME}>"
|
||||||
|
INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
|
||||||
|
INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${QTXDGX_ICONLOADER_FILE_NAME}/${QTXDG_VERSION_STRING}>"
|
||||||
|
)
|
||||||
|
|
||||||
|
# include directories and targets for the in tree build
|
||||||
|
target_include_directories(${QTXDGX_ICONLOADER_LIBRARY_NAME}
|
||||||
|
PUBLIC "$<BUILD_INTERFACE:${QTXDGX_INTREE_INCLUDEDIR}/${QTXDGX_ICONLOADER_FILE_NAME}>"
|
||||||
|
PUBLIC "$<BUILD_INTERFACE:${QTXDGX_INTREE_INCLUDEDIR}>"
|
||||||
|
PUBLIC "$<BUILD_INTERFACE:${QTXDGX_INTREE_INCLUDEDIR}/${QTXDGX_ICONLOADER_FILE_NAME}/${QTXDG_VERSION_STRING}>"
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(${QTXDGX_ICONLOADER_LIBRARY_NAME}
|
||||||
|
PUBLIC
|
||||||
|
Qt5::Gui
|
||||||
|
Qt5::Svg
|
||||||
|
)
|
||||||
|
|
||||||
|
set_target_properties(${QTXDGX_ICONLOADER_LIBRARY_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
VERSION ${QTXDG_VERSION_STRING}
|
||||||
|
SOVERSION ${QTXDG_MAJOR_VERSION}
|
||||||
|
)
|
||||||
|
|
||||||
|
export(TARGETS ${QTXDGX_ICONLOADER_LIBRARY_NAME} FILE "${CMAKE_BINARY_DIR}/${QTXDGX_ICONLOADER_FILE_NAME}-targets.cmake")
|
||||||
|
|
||||||
|
install(TARGETS
|
||||||
|
${QTXDGX_ICONLOADER_LIBRARY_NAME} DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
|
EXPORT "${QTXDGX_ICONLOADER_FILE_NAME}-targets"
|
||||||
|
COMPONENT Runtime
|
||||||
|
)
|
||||||
|
|
||||||
|
install(FILES
|
||||||
|
${xdgiconloader_PRIVATE_INSTALLABLE_H_FILES}
|
||||||
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${QTXDGX_ICONLOADER_FILE_NAME}/${QTXDG_VERSION_STRING}/private/xdgiconloader"
|
||||||
|
COMPONENT Devel
|
||||||
|
)
|
||||||
|
|
||||||
|
install(FILES
|
||||||
|
"${QTXDGX_INTREE_INCLUDEDIR}/${QTXDGX_ICONLOADER_FILE_NAME}/${XDGICONLOADER_EXPORT_FILE}"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${QTXDGX_ICONLOADER_FILE_NAME}"
|
||||||
|
)
|
Loading…
Reference in new issue