Commit aa51e8e7 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Restore option to create a Qt Designer plugin

Had been missing out the port to Qt5/KF5 so far
Using ECMAddQtDesignerPlugin reduces added dependencies to QtUIPlugin
Option allows to disable feature where not needed
parent bec9abfb
......@@ -88,6 +88,10 @@ set(HAVE_X11 ${X11_FOUND})
set(HAVE_XRES ${X11_XRes_FOUND})
configure_file(config-ksysguard.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ksysguard.h )
option(BUILD_DESIGNERPLUGIN "Build plugin for Qt Designer" ON)
add_feature_info(DESIGNERPLUGIN ${BUILD_DESIGNERPLUGIN} "Build plugin for Qt Designer")
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
add_definitions(-DQT_USE_QSTRINGBUILDER)
add_definitions(-DQT_NO_CAST_FROM_ASCII)
......
......@@ -25,15 +25,6 @@ install(TARGETS lsofui EXPORT libksysguardLibraryTargets ${KDE_INSTALL_TARGETS_D
install( FILES lsof.h DESTINATION ${KDE_INSTALL_INCLUDEDIR}/ksysguard COMPONENT Devel)
# set(ksysguardlsofwidgets_PART_SRCS
# ${CMAKE_CURRENT_BINARY_DIR}/ksysguardlsofwidgets.cpp
# )
#
# kde4_add_widget_files(ksysguardlsofwidgets_PART_SRCS ksysguardlsof.widgets)
#
# add_library(ksysguardlsofwidgets MODULE ${ksysguardlsofwidgets_PART_SRCS})
#
# target_link_libraries(ksysguardlsofwidgets lsofui)
#
# install(TARGETS ksysguardlsofwidgets DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer )
if(BUILD_DESIGNERPLUGIN)
add_subdirectory(designer)
endif()
include(ECMAddQtDesignerPlugin)
ecm_qtdesignerplugin_widget(KLsofWidget
INCLUDE_FILE "lsof.h"
GROUP "KSysGuard"
)
ecm_add_qtdesignerplugin(ksysguardlsofwidgets
NAME KSysGuardLsofWidgets
OUTPUT_NAME ksysguardlsof5widgets
WIDGETS
KLsofWidget
LINK_LIBRARIES
lsofui
INSTALL_DESTINATION "${KDE_INSTALL_QTPLUGINDIR}/designer"
COMPONENT Devel
)
[Global]
PluginName=KSysGuardLsofWidgets
[KLsofWidget]
Group=KSysGuard (KDE)
ConstructorArgs=(parent)
IncludeFile=lsof.h
......@@ -75,16 +75,6 @@ set_target_properties(processui
install(TARGETS processui EXPORT libksysguardLibraryTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
#----------------------
# kde4_add_widget_files(ksysguardwidgets_PART_SRCS ${ksysguard_WIDGETS})
#
# add_library(ksysguardwidgets MODULE ${ksysguardwidgets_PART_SRCS})
#
# target_link_libraries(ksysguardwidgets ${KDE4_KDEUI_LIBS} processui)
#
# install(TARGETS ksysguardwidgets DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer )
install( FILES
ProcessModel.h
ProcessFilter.h
......@@ -93,3 +83,7 @@ install( FILES
DESTINATION ${KDE_INSTALL_INCLUDEDIR}/ksysguard/processui
COMPONENT Devel
)
if(BUILD_DESIGNERPLUGIN)
add_subdirectory(designer)
endif()
include(ECMAddQtDesignerPlugin)
ecm_qtdesignerplugin_widget(KSysGuardProcessList
INCLUDE_FILE "ksysguardprocesslist.h"
TOOLTIP "A list of processes (programs) running."
WHATSTHIS "A widget for showing all the processes running along with their memory usage and other details."
GROUP "KSysGuard"
)
ecm_qtdesignerplugin_widget(KTextEditVT
INCLUDE_FILE "KTextEditVT.h"
TOOLTIP "A text box suitable for displaying output from VT console-based programs."
WHATSTHIS "A widget for displaying out from console based programs. Some VT100 style commands are interpreted (For example to change the color) as well as some non-printable characters (backspace/delete etc will delete the last character.). For example the output from 'ls --color' can be displayed."
GROUP "KSysGuard"
)
ecm_add_qtdesignerplugin(ksysguardwidgets
NAME KSysGuardWidgets
OUTPUT_NAME ksysguard5widgets
WIDGETS
KSysGuardProcessList
KTextEditVT
LINK_LIBRARIES
KSysGuard::ProcessUi
INSTALL_DESTINATION "${KDE_INSTALL_QTPLUGINDIR}/designer"
COMPONENT Devel
)
[Global]
PluginName=KSysGuardWidgets
[KSysGuardProcessList]
ToolTip=A list of processes (programs) running.
WhatsThis=A widget for showing all the processes running along with their memory usage and other details.
Group=KSysGuard (KDE)
ConstructorArgs=(parent)
IncludeFile=ksysguardprocesslist.h
[KTextEditVT]
ToolTip=A text box suitable for displaying output from VT console-based programs.
WhatsThis=A widget for displaying out from console based programs. Some VT100 style commands are interpreted (For example to change the color) as well as some non-printable characters (backspace/delete etc will delete the last character.). For example the output from 'ls --color' can be displayed.
Group=KSysGuard (KDE)
ConstructorArgs=(parent)
IncludeFile=KTextEditVT.h
......@@ -26,14 +26,8 @@ set_target_properties(ksignalplotter
install(TARGETS ksignalplotter EXPORT libksysguardLibraryTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
#----------------------
# kde4_add_widget_files(ksignalplotterwidgets_PART_SRCS ${ksignalplotter_WIDGETS})
#
# add_library(ksignalplotterwidgets MODULE ${ksignalplotterwidgets_PART_SRCS})
#
# target_link_libraries(ksignalplotterwidgets ${KDE4_KDEUI_LIBS} ksignalplotter)
#
# install(TARGETS ksignalplotterwidgets DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer)
install(FILES ksignalplotter.h DESTINATION ${KDE_INSTALL_INCLUDEDIR}/ksysguard COMPONENT Devel)
if(BUILD_DESIGNERPLUGIN)
add_subdirectory(designer)
endif()
include(ECMAddQtDesignerPlugin)
ecm_qtdesignerplugin_widget(KSignalPlotter
TOOLTIP "A graph plotter widget for plotting continuously incoming data"
GROUP "KSysGuard"
)
ecm_add_qtdesignerplugin(ksignalplotterwidgets
NAME KSignalPlotterWidgets
OUTPUT_NAME ksignalplotter5widgets
WIDGETS
KSignalPlotter
LINK_LIBRARIES
ksignalplotter
INSTALL_DESTINATION "${KDE_INSTALL_QTPLUGINDIR}/designer"
COMPONENT Devel
)
[Global]
PluginName=KSignalPlotterWidgets
[KSignalPlotter]
ToolTip=A graph plotter widget for plotting continuously incoming data
Group=KSysGuard (KDE)
ConstructorArgs=(parent)
IncludeFile=ksignalplotter.h
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment