Adding upstream version 0.13.0.

Signed-off-by: Alf Gaida <agaida@siduction.org>
upstream/0.13.0
Alf Gaida 7 years ago
parent b8fa931aca
commit 3b9fd1ecce
No known key found for this signature in database
GPG Key ID: CD280A0B4D72827C

@ -1,7 +1,24 @@
obconf-qt-0.12.0 / 2017-09-24 obconf-qt-0.13.0 / 2018-05-21
============================= =============================
* Bumped minor version to 13
* Spanish translation update
* CMake: Prevent in-source builds
* fixed lxde mentions
* Add Traditional Chinese translation
* Add Traditional Chinese translation
* Add Simplified Chinese translation
* Fixes Qt4 build
* cmake: Use LXQtCompilerSettings
* cmake: Handle CMP0071
* cmake: Make it compile with Qt4
* cmake: Update CMake minimum required version
0.12.0 / 2017-09-24
===================
* Release 0.12.0: Update changelog
* Bump version to 0.12.0 * Bump version to 0.12.0
* Don't export github templates * Don't export github templates
* Added Lithuanian language * Added Lithuanian language

@ -1,12 +1,18 @@
project(obconf-qt) project(obconf-qt)
# newer cmake is required for CMAKE_AUTOMOC Qt support # newer cmake is required for CMAKE_AUTOMOC Qt support
cmake_minimum_required(VERSION 2.8.12) cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
find_program(SED_PROGRAM sed) find_program(SED_PROGRAM sed)
include(GNUInstallDirs) include(GNUInstallDirs)
set(LXQTBT_MINIMUM_VERSION "0.1.0") set(LXQTBT_MINIMUM_VERSION "0.5.0")
set(OBCONFQT_MAJOR_VERSION 0)
set(OBCONFQT_MINOR_VERSION 13)
set(OBCONFQT_PATCH_VERSION 0)
set(OBCONFQT_VERSION ${OBCONFQT_MAJOR_VERSION}.${OBCONFQT_MINOR_VERSION}.${OBCONFQT_PATCH_VERSION})
add_definitions("-DOBCONFQT_VERSION=\"${OBCONFQT_VERSION}\"")
# Support Qt4 for the time being # Support Qt4 for the time being
option(USE_QT4 "Build with Qt4." $ENV{USE_QT4}) option(USE_QT4 "Build with Qt4." $ENV{USE_QT4})
@ -14,15 +20,18 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
if(USE_QT4) if(USE_QT4)
set(USE_QT5 FALSE)
find_package(Qt4 REQUIRED QtCore QtGui) # Qt find_package(Qt4 REQUIRED QtCore QtGui) # Qt
include(${QT_USE_FILE}) include(${QT_USE_FILE})
message(STATUS "Building with Qt${QTVERSION}") message(STATUS "Building with Qt${QTVERSION}")
else() else()
cmake_minimum_required(VERSION 2.8.11) set(USE_QT5 TRUE)
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
find_package(Qt5Widgets REQUIRED) find_package(Qt5Widgets REQUIRED)
find_package(Qt5X11Extras REQUIRED) find_package(Qt5X11Extras REQUIRED)
find_package(Qt5LinguistTools REQUIRED QUIET) find_package(Qt5LinguistTools REQUIRED)
message(STATUS "Building with Qt${Qt5Core_VERSION}") message(STATUS "Building with Qt${Qt5Core_VERSION}")
endif() endif()
@ -42,15 +51,11 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release) set(CMAKE_BUILD_TYPE Release)
endif() endif()
set(OBCONFQT_MAJOR_VERSION 0) include(LXQtPreventInSourceBuilds)
set(OBCONFQT_MINOR_VERSION 12)
set(OBCONFQT_PATCH_VERSION 0)
set(OBCONFQT_VERSION ${OBCONFQT_MAJOR_VERSION}.${OBCONFQT_MINOR_VERSION}.${OBCONFQT_PATCH_VERSION})
add_definitions("-DOBCONFQT_VERSION=\"${OBCONFQT_VERSION}\"")
include(LXQtTranslateTs) include(LXQtTranslateTs)
include(LXQtTranslateDesktop) include(LXQtTranslateDesktop)
include(LXQtCompilerSettings) include(LXQtCompilerSettings)
include(LXQtCompilerSettings NO_POLICY_SCOPE)
# add src subdirectory # add src subdirectory
add_subdirectory(src) add_subdirectory(src)

@ -11,7 +11,7 @@ It is maintained by the LXQt project but can be used independently from this des
### Compiling source code ### Compiling source code
Runtime dependencies are Qt X11 Extras, gtk-update-icon-cache, hicolor-icon-theme and Openbox. Runtime dependencies are Qt X11 Extras, gtk-update-icon-cache, hicolor-icon-theme and Openbox.
Additional build dependencies are CMake and [liblxqt](https://github.com/lxde/liblxqt), optionally Git to pull latest VCS checkouts. The localization files were outsourced to repository [lxqt-l10n](https://github.com/lxde/lxqt-l10n) so the corresponding dependencies are needed, too. Please refer to this repository's `README.md` for further information. Additional build dependencies are CMake and [liblxqt](https://github.com/lxqt/liblxqt), optionally Git to pull latest VCS checkouts. The localization files were outsourced to repository [lxqt-l10n](https://github.com/lxqt/lxqt-l10n) so the corresponding dependencies are needed, too. Please refer to this repository's `README.md` for further information.
Code configuration is handled by CMake. CMake variable `CMAKE_INSTALL_PREFIX` has to be set to `/usr` on most operating systems. Code configuration is handled by CMake. CMake variable `CMAKE_INSTALL_PREFIX` has to be set to `/usr` on most operating systems.

@ -42,6 +42,8 @@ else()
qt5_wrap_ui(obconf-qt_UI_H ${obconf-qt_UIS}) qt5_wrap_ui(obconf-qt_UI_H ${obconf-qt_UIS})
endif() endif()
set_property(SOURCE ${obconf-qt_UI_H} PROPERTY SKIP_AUTOMOC ON)
# The ui code generated by Qt uic contains QMetaObject::connectSlotsByName() # The ui code generated by Qt uic contains QMetaObject::connectSlotsByName()
# but we don't want that. Fix it with sed. # but we don't want that. Fix it with sed.
add_custom_command( add_custom_command(
@ -58,8 +60,8 @@ add_custom_command(
# add translation for obconf-qt # add translation for obconf-qt
option (UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF) option (UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF)
lxqt_translate_ts(QM_FILES lxqt_translate_ts(QM_FILES
USE_QT4 USE_QT5
${USE_QT4} ${USE_QT5}
UPDATE_TRANSLATIONS UPDATE_TRANSLATIONS
${UPDATE_TRANSLATIONS} ${UPDATE_TRANSLATIONS}
SOURCES SOURCES
@ -100,6 +102,10 @@ add_definitions(
-DTHEME_DIR="${CMAKE_INSTALL_FULL_DATAROOTDIR}/openbox/themes" -DTHEME_DIR="${CMAKE_INSTALL_FULL_DATAROOTDIR}/openbox/themes"
) )
if (USE_QT4)
add_definitions(-DUSE_QT4)
endif()
target_link_libraries(obconf-qt target_link_libraries(obconf-qt
${QTX_LIBRARIES} ${QTX_LIBRARIES}
${GLIB_LIBRARIES} ${GLIB_LIBRARIES}

@ -180,7 +180,9 @@ static gboolean prop_get_string_utf8(Window win, Atom prop, gchar** ret) {
int main(int argc, char** argv) { int main(int argc, char** argv) {
QApplication app(argc, argv); QApplication app(argc, argv);
#ifndef USE_QT4
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true); app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#endif
// load translations // load translations
QTranslator qtTranslator, translator; QTranslator qtTranslator, translator;

@ -0,0 +1,3 @@
Name[es]=Configuración de Openbox
GenericName[es]=Configuración del gestor de ventanas
Comment[es]=Configurar el gestor de ventanas Openbox

@ -0,0 +1,3 @@
Name[zh_CN]=Openbox 设置
GenericName[zh_CN]=窗口管理器设置
Comment[zh_CN]=配置窗口管理器

@ -0,0 +1,3 @@
Name[zh_TW]=Openbox 設定
GenericName[zh_TW]=視窗管理員設定
Comment[zh_TW]=設定視窗管理員
Loading…
Cancel
Save