Skip to content

Commit

Permalink
qt-gui with commit history now in elektra
Browse files Browse the repository at this point in the history
  • Loading branch information
0003088 committed Sep 3, 2014
1 parent d3871e4 commit 8b2de7d
Show file tree
Hide file tree
Showing 62 changed files with 4,112 additions and 0 deletions.
65 changes: 65 additions & 0 deletions src/tools/qt-gui/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
cmake_minimum_required(VERSION 2.8)

project(qt-gui)

set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_FLAGS "${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")

set( CMAKE_BUILD_TYPE Debug )

add_definitions(-Wall)

find_package(Qt5 REQUIRED Quick Gui Core Qml Widgets Test)

include_directories (
${CMAKE_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${Qt5Quick_INCLUDE_DIRS}
${Qt5Gui_INCLUDE_DIRS}
${Qt5Core_INCLUDE_DIRS}
${Qt5Qml_INCLUDE_DIRS}
${Qt5Widgets_INCLUDE_DIRS}
${Qt5Test_INCLUDE_DIRS}
/usr/include/elektra
/usr/local/include/elektra
)

set(qt-gui_HDRS
src/visitor.hpp
src/printvisitor.hpp
src/keysetvisitor.hpp
src/newkeycommand.hpp
src/editkeycommand.hpp
src/deletekeycommand.hpp
src/cutkeycommand.hpp
src/copykeycommand.hpp
)

set(qt-gui_SRCS
src/main.cpp
src/treeviewmodel.cpp
src/confignode.cpp
src/printvisitor.cpp
src/keysetvisitor.cpp
modeltest/dynamictreemodel.cpp
modeltest/modeltest.cpp
src/undomanager.cpp
src/newkeycommand.cpp
src/deletekeycommand.cpp
src/editkeycommand.cpp
src/copykeycommand.cpp
src/cutkeycommand.cpp
)

set(qt-gui_RSCS
resources.qrc
)

qt5_add_resources(RSCS ${qt-gui_RSCS})

add_executable(qt-gui ${qt-gui_SRCS} ${UIS} ${RSCS} ${TRS})

qt5_use_modules(qt-gui Quick Gui Core Qml Widgets)

target_link_libraries(qt-gui ${Qt5Quick_LIBRARIES} ${Qt5Gui_LIBRARIES} ${Qt5Core_LIBRARIES} ${Qt5Qml_LIBRARIES} ${Qt5Widgets_LIBRARIES} ${Qt5Test_LIBRARIES} elektra)
27 changes: 27 additions & 0 deletions src/tools/qt-gui/deployment.pri
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
android-no-sdk {
target.path = /data/user/qt
export(target.path)
INSTALLS += target
} else:android {
x86 {
target.path = /libs/x86
} else: armeabi-v7a {
target.path = /libs/armeabi-v7a
} else {
target.path = /libs/armeabi
}
export(target.path)
INSTALLS += target
} else:unix {
isEmpty(target.path) {
qnx {
target.path = /tmp/$${TARGET}/bin
} else {
target.path = /opt/$${TARGET}/bin
}
export(target.path)
}
INSTALLS += target
}

export(INSTALLS)
5 changes: 5 additions & 0 deletions src/tools/qt-gui/i18n.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>qml/i18n/lang_de_DE.qm</file>
</qresource>
</RCC>
Loading

0 comments on commit 8b2de7d

Please sign in to comment.