[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [colord-kde/calib] /: Initial work on calib tool
From:       Daniel Nicoletti <dantti12 () gmail ! com>
Date:       2016-11-23 19:36:18
Message-ID: E1c9dL8-00029O-IT () code ! kde ! org
[Download RAW message or body]

Git commit fa122863aa4691f5437127bdb18819f6982d7e37 by Daniel Nicoletti.
Committed on 23/11/2016 at 19:35.
Pushed by dantti into branch 'calib'.

Initial work on calib tool

M  +1    -0    CMakeLists.txt
A  +25   -0    calibrate/CMakeLists.txt
A  +5    -0    calibrate/application.qrc
A  +42   -0    calibrate/main.cpp     [License: GPL (v2+)]
A  +5    -0    calibrate/main.qml     [License: Trivial file]

https://commits.kde.org/colord-kde/fa122863aa4691f5437127bdb18819f6982d7e37

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6d6093a..28c1509 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,6 +49,7 @@ include_directories(${CMAKE_SOURCE_DIR}
 add_subdirectory(colord-kded)
 add_subdirectory(colord-kcm)
 add_subdirectory(icc-importer)
+add_subdirectory(calibrate)
 #add_subdirectory(dataengine)
 
 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
diff --git a/calibrate/CMakeLists.txt b/calibrate/CMakeLists.txt
new file mode 100644
index 0000000..ef6bf9b
--- /dev/null
+++ b/calibrate/CMakeLists.txt
@@ -0,0 +1,25 @@
+file(GLOB QML_SRC qml/*.qml qml/*.js)
+
+set(calibrate_SRCS
+    ${QML_SRC}
+    main.cpp
+)
+
+qt5_add_resources(calibrate_SRCS
+    application.qrc
+    OPTIONS -compress 3 -threshold 3
+)
+
+set(COLORD_HELPER_INTERFACE_XML \
${CMAKE_SOURCE_DIR}/colord-tmp-interfaces/org.freedesktop.ColorHelper.xml) \
+set_source_files_properties(${COLORD_HELPER_INTERFACE_XML} PROPERTIES INCLUDE \
"dbus-types.h") +set_source_files_properties(${COLORD_HELPER_INTERFACE_XML} \
PROPERTIES NO_NAMESPACE true) \
+set_source_files_properties(${COLORD_HELPER_INTERFACE_XML} PROPERTIES CLASSNAME \
CdHelperInterfaceDisplay) +qt5_add_dbus_interface(calibrate_SRCS \
${COLORD_HELPER_INTERFACE_XML} CdHelperInterface) +
+add_executable(quick-color-calibrate
+    ${calibrate_SRCS}
+)
+
+target_link_libraries(quick-color-calibrate
+    Qt5::Gui
+)
diff --git a/calibrate/application.qrc b/calibrate/application.qrc
new file mode 100644
index 0000000..5f6483a
--- /dev/null
+++ b/calibrate/application.qrc
@@ -0,0 +1,5 @@
+<RCC>
+    <qresource prefix="/">
+        <file>main.qml</file>
+    </qresource>
+</RCC>
diff --git a/calibrate/main.cpp b/calibrate/main.cpp
new file mode 100644
index 0000000..f3331ee
--- /dev/null
+++ b/calibrate/main.cpp
@@ -0,0 +1,42 @@
+/***************************************************************************
+ *   Copyright (C) 2016 by Daniel Nicoletti <dantti12@gmail.com>           *
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ *   This program 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 General Public License for more details.                          *
+ *                                                                         *
+ *   You should have received a copy of the GNU General Public License     *
+ *   along with this program; see the file COPYING. If not, write to       *
+ *   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,  *
+ *   Boston, MA 02110-1301, USA.                                           *
+ ***************************************************************************/
+
+//#include "CdInterface.h"
+
+#include <QFileInfo>
+#include <QIcon>
+#include <QDebug>
+#include <QGuiApplication>
+#include <QCommandLineParser>
+
+int main(int argc, char **argv)
+{
+    Q_INIT_RESOURCE(application);
+
+    QGuiApplication app(argc, argv);
+
+    QGuiApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("application-vnd.iccprofile")));
 +
+    QCommandLineParser parser;
+    parser.addVersionOption();
+    parser.addHelpOption();
+    parser.process(app);
+
+    return 0;
+}
diff --git a/calibrate/main.qml b/calibrate/main.qml
new file mode 100644
index 0000000..9c36e13
--- /dev/null
+++ b/calibrate/main.qml
@@ -0,0 +1,5 @@
+import QtQuick 2.0
+
+Item {
+
+}


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic