25ac108a76
If the decoration package contains a ui file in ui/config.ui and and KConfigXT xml file in config/main.xml the configure dialog is extended by the custom values. For this the ui file is loaded and included in the dialog's layout. To make this possible the AuroraeConfigForm is changed to a VBoxLayout containing the so far used FormLayout. The configuration settings are loaded using Plasma's ConfigLoader and attached to the widget through a KConfigDialogManager. Marking this commit as the one which implements QML support for Aurorae themes: REVIEW: 105751 REVIEW: 105768 BUG: 303810 FIXED-IN: 4.10
38 lines
1.2 KiB
CMake
38 lines
1.2 KiB
CMake
# need a header file from Aurorae sources
|
|
include_directories(
|
|
${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/clients/aurorae/src/lib
|
|
)
|
|
|
|
set(AURORAE_SOURCE_DIR ${KDEBASE_WORKSPACE_SOURCE_DIR}/kwin/clients/aurorae/src/lib/)
|
|
|
|
set(kcm_kwindecoration_PART_SRCS
|
|
kwindecoration.cpp
|
|
buttons.cpp
|
|
buttonsconfigdialog.cpp
|
|
configdialog.cpp
|
|
preview.cpp
|
|
decorationmodel.cpp
|
|
${AURORAE_SOURCE_DIR}/auroraetheme.cpp
|
|
${AURORAE_SOURCE_DIR}/themeconfig.cpp
|
|
)
|
|
|
|
kde4_add_ui_files(kcm_kwindecoration_PART_SRCS
|
|
auroraeconfig.ui
|
|
buttons.ui
|
|
config.ui
|
|
decoration.ui
|
|
)
|
|
|
|
kde4_add_plugin(kcm_kwindecoration ${kcm_kwindecoration_PART_SRCS})
|
|
target_link_libraries(kcm_kwindecoration ${KDE4_KNEWSTUFF3_LIBS} kdecorations ${KDE4_PLASMA_LIBS} ${QT_QTDECLARATIVE_LIBRARY} ${QT_QTUITOOLS_LIBRARY} ${X11_LIBRARIES})
|
|
install(TARGETS kcm_kwindecoration DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
|
|
########### install files ###############
|
|
|
|
install( FILES kwindecoration.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
install( FILES
|
|
qml/main.qml
|
|
qml/AuroraeDecoration.qml
|
|
qml/AuroraePreview.qml
|
|
qml/DecorationPreview.qml
|
|
DESTINATION ${DATA_INSTALL_DIR}/kwin/kcm_kwindecoration)
|