diff --git a/README.md b/README.md index 376461e..4213730 100644 --- a/README.md +++ b/README.md @@ -1,95 +1,94 @@ # KDE KolorManager README ![](http://www.oyranos.org/images/oyranos_logo.svg) The Color Management System (CMS) Oyranos allows the coordination of device specific Informations (ICC profiles) und system wide settings. KolorManager is a KDE Systemssettings component for Oyranos. ## Modules * kmdevices (Kolor Management Devices - Monitor/Printer/etc. profile setup) * kminfo (Kolor Management Information - Displays specific profile information) * kmsettings (Kolor Management Settings - Change behavior and policy settings) ## Dependencies * The v1.1.0 tagged release builds fine using Oyranos-0.9.6 . * Actual git should the latest Oyranos from it's git repository. KolorManager gets updated pretty quick to Oyranos changes. * [Synnefo](http://www.oyranos.org/synnefo/)'s libOyranosSynnefo is used for the program logic ## Installation Enter the following commands: mkdir build && cd build/ cmake .. make make install ## Run This build should install a "Kolor Management" icon in the KF5 settings window, under "Computer Administration". An alternative method for running the individual modules would be to type this in a terminal: kcmshell5 [KMMODULE] (Where KMMODULE is "kcm_kmdevices", "kcm_kminfo", or "kcm_kmsettings") This is handy for displaying debug information through the console. ## Build Notes The following files are installed under each module directory. They are shown here for reference: MODULE.cpp (source code) MODULE.h (header) MODULE.ui (Qt Designer file) -icons.qrc (resource file for icons in 'kmdevices' and 'kminfo') ui_MODULE.h (Qt designer header file - for hand coding purposes) CMakeLists.txt (build instructions for each module) ## References * [Home Page@www.oyranos.org](http://www.oyranos.org/kolormanager) * [@ColourWiki](http://www.oyranos.org/wiki/index.php?title=Kolor-manager) ## Development # local debug build mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=~/.local -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_CXX_FLAGS="-g -Wall" ../kolor-manager #Possibly prepend the PKG_CONFIG_PATH variable to reflect Oyranos... kbuildsycoca5 # update KDEs internal icon and module cachings kcmshell5 kminfo & # start ### Debugging echo $! # obtain process id from bashs most recent process - kcmshell5 KDE_DEBUG=1 gdb kcmshell5 # the variable avoid KDE's crash handler gdb > attach to process id gdb > breakpoint kminfo.cpp:line_number gdb > continue ### create tar ball from git sha=`cat .git/refs/heads/master | head -c 8` git archive --format=tar --prefix=kolor-manager-$sha/ HEAD | bzip2 > kolor-manager-$sha.tar.bz2 ### list modules qdbus org.kde.kded5 /kded org.kde.kded5.loadedModules ### restart kded (omit kdeinit5_wrapper to see LD_LIBRARY_PATH) kquitapp kded5; sleep 1s; kdeinit5_wrapper kded5 # kdebugdialog --fullmode might be useful ### unload kolorserver qdbus org.kde.kded /kded unloadModule kolorserver ## History * started by [Joe Simon](http://jsimon3.wordpress.com/category/synnefo/) in summer 2008-2009 * KolorManager maintained by [Kai-Uwe Behrmann](http://www.behrmann.name) 2010-2016 * KolorServer was maintained by Casian Andrei 2012 (It is now a separate project.) ## Known Issues ### KMSettings - The configuration has to be ported to a Oyranos configure object to manipulate settings and then apply at once. This is currently not possible, as each setting is imediately applied to the Oyranos settings DB. ### KMDevices - Camera support needs to be outlined first diff --git a/devices/CMakeLists.txt b/devices/CMakeLists.txt index c1d3158..fc281cd 100644 --- a/devices/CMakeLists.txt +++ b/devices/CMakeLists.txt @@ -1,22 +1,19 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) SET(kmdevices_PART_SRCS kmdevices.cpp ) -SET(kmdevices_RCCS - icons.qrc - ) QT5_ADD_RESOURCES(kcm_kmdevices_RCC_SRCS ${kmdevices_RCCS}) ADD_LIBRARY( kcm_kmdevices MODULE ${kmdevices_PART_SRCS} ${kmdevices_RCC_SRCS}) TARGET_LINK_LIBRARIES( kcm_kmdevices KF5::CoreAddons KF5::ConfigWidgets KF5::I18n ${SYNNEFO_LIBRARIES} Qt5::Core Qt5::Widgets ) INSTALL( TARGETS kcm_kmdevices DESTINATION ${PLUGIN_INSTALL_DIR}) INSTALL( FILES kcm_kmdevices.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/devices/icons.qrc b/devices/icons.qrc deleted file mode 100644 index 6a40e9e..0000000 --- a/devices/icons.qrc +++ /dev/null @@ -1,7 +0,0 @@ - - - resources/printer.png - resources/monitor.png - resources/scanner.png - - diff --git a/devices/resources/monitor.png b/devices/resources/monitor.png deleted file mode 100644 index 3bf4ae8..0000000 Binary files a/devices/resources/monitor.png and /dev/null differ diff --git a/devices/resources/printer.png b/devices/resources/printer.png deleted file mode 100644 index d998f52..0000000 Binary files a/devices/resources/printer.png and /dev/null differ diff --git a/devices/resources/scanner.png b/devices/resources/scanner.png deleted file mode 100644 index 20ac5d3..0000000 Binary files a/devices/resources/scanner.png and /dev/null differ diff --git a/information/CMakeLists.txt b/information/CMakeLists.txt index 837ef6b..1f98fbd 100644 --- a/information/CMakeLists.txt +++ b/information/CMakeLists.txt @@ -1,22 +1,19 @@ set(kminfo_PART_SRCS kminfo.cpp ) -SET(kminfo_RCCS - icons.qrc - ) QT5_ADD_RESOURCES(kcm_kminfo_RCC_SRCS ${kminfo_RCCS}) ADD_LIBRARY( kcm_kminfo MODULE ${kminfo_PART_SRCS} ${kminfo_RCC_SRCS} ) TARGET_LINK_LIBRARIES( kcm_kminfo KF5::CoreAddons KF5::ConfigWidgets KF5::I18n ${SYNNEFO_LIBRARIES} Qt5::Core Qt5::Widgets ) INSTALL( TARGETS kcm_kminfo DESTINATION ${PLUGIN_INSTALL_DIR} ) INSTALL( FILES kcm_kminfo.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/information/icons.qrc b/information/icons.qrc deleted file mode 100644 index d1f44ab..0000000 --- a/information/icons.qrc +++ /dev/null @@ -1,7 +0,0 @@ - - - resources/printer1.png - resources/monitor.png - resources/scanner.png - - diff --git a/information/resources/monitor.png b/information/resources/monitor.png deleted file mode 100644 index 3bf4ae8..0000000 Binary files a/information/resources/monitor.png and /dev/null differ diff --git a/information/resources/printer1.png b/information/resources/printer1.png deleted file mode 100644 index d998f52..0000000 Binary files a/information/resources/printer1.png and /dev/null differ diff --git a/information/resources/scanner.png b/information/resources/scanner.png deleted file mode 100644 index 20ac5d3..0000000 Binary files a/information/resources/scanner.png and /dev/null differ diff --git a/settings/CMakeLists.txt b/settings/CMakeLists.txt index 6f05a41..4880adf 100644 --- a/settings/CMakeLists.txt +++ b/settings/CMakeLists.txt @@ -1,23 +1,20 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) SET(kmsettings_PART_SRCS kmsettings.cpp ) -SET(kmsettings_RCCS - icons.qrc - ) QT5_ADD_RESOURCES(kcm_kmsettings_RCC_SRCS ${kmsettings_RCCS}) ADD_LIBRARY( kcm_kmsettings MODULE ${kmsettings_PART_SRCS} ) TARGET_LINK_LIBRARIES( kcm_kmsettings KF5::CoreAddons KF5::ConfigWidgets KF5::I18n ${SYNNEFO_LIBRARIES} Qt5::Core Qt5::Widgets ) INSTALL(TARGETS kcm_kmsettings DESTINATION ${PLUGIN_INSTALL_DIR}) INSTALL(FILES kcm_kmsettings.desktop DESTINATION ${SERVICES_INSTALL_DIR} )