From dbea2672319cc9d68351728f9f30969df97e9fca Mon Sep 17 00:00:00 2001 From: gregory guy Date: Tue, 15 Jan 2019 15:16:40 +0100 Subject: [PATCH] some progress in kommander ; editor, executor, factory, icons, plugin, pluginmanager, widget and widgets are building Signed-off-by: gregory guy --- CMakeLists.txt | 19 ++++-- kommander/CMakeLists.txt | 20 ++++++ kommander/editor/CMakeLists.txt | 88 ++++++++++++++++++++++++++ kommander/executor/CMakeLists.txt | 62 ++++++++++++++++++ kommander/factory/CMakeLists.txt | 30 +++++++++ kommander/icons/CMakeLists.txt | 4 ++ kommander/plugin/CMakeLists.txt | 29 +++++++++ kommander/pluginmanager/CMakeLists.txt | 32 ++++++++++ kommander/widget/CMakeLists.txt | 36 +++++++++++ kommander/widgets/CMakeLists.txt | 49 ++++++++++++++ quanta/CMakeLists.txt | 24 ++++++- 11 files changed, 385 insertions(+), 8 deletions(-) create mode 100644 kommander/CMakeLists.txt create mode 100644 kommander/editor/CMakeLists.txt create mode 100644 kommander/executor/CMakeLists.txt create mode 100644 kommander/factory/CMakeLists.txt create mode 100644 kommander/icons/CMakeLists.txt create mode 100644 kommander/plugin/CMakeLists.txt create mode 100644 kommander/pluginmanager/CMakeLists.txt create mode 100644 kommander/widget/CMakeLists.txt create mode 100644 kommander/widgets/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index d18a3cae..6d293f33 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,6 +61,9 @@ option( BUILD_DOC "Build documentation" ${BUILD_ALL} ) option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} ) option( BUILD_QUANTA "Build quanta" ${BUILD_ALL} ) option( BUILD_KIMAGEMAPEDITOR "Build kimagemapeditor" ${BUILD_ALL} ) +option( BUILD_KXSLDBG "Build kxsldbg" ${BUILD_ALL} ) +option( BUILD_KLINKSTATUS "Build klinkstatus" ${BUILD_ALL} ) +option( BUILD_KOMMANDER "Build Kommander" ${BUILD_ALL} ) ##### configure checks ########################## @@ -70,8 +73,8 @@ include( ConfigureChecks.cmake ) ###### global compiler settings ################# -add_definitions( -DHAVE_CONFIG_H -UTQT_NO_ASCII_CAST ) - +add_definitions( -DHAVE_CONFIG_H -UTQT_NO_ASCII_CAST ) +#-UTQT_NO_COMPAT set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ) @@ -79,11 +82,13 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ##### source directories ######################## -tde_conditional_add_subdirectory( BUILD_QUANTA lib ) -tde_conditional_add_subdirectory( BUILD_QUANTA quanta ) -tde_conditional_add_subdirectory( BUILD_KIMAGEMAPEDITOR kimagemapeditor ) -tde_conditional_add_subdirectory( BUILD_DOC doc ) - +#tde_conditional_add_subdirectory( BUILD_QUANTA lib ) +#tde_conditional_add_subdirectory( BUILD_QUANTA quanta ) +#tde_conditional_add_subdirectory( BUILD_KIMAGEMAPEDITOR kimagemapeditor ) +#tde_conditional_add_subdirectory( BUILD_KXSLDBG kxsldbg ) +#tde_conditional_add_subdirectory( BUILD_KLINKSTATUS klinkstatus ) +#tde_conditional_add_subdirectory( BUILD_DOC doc ) +tde_conditional_add_subdirectory( BUILD_KOMMANDER kommander ) ##### write configure files ##################### diff --git a/kommander/CMakeLists.txt b/kommander/CMakeLists.txt new file mode 100644 index 00000000..d91585c8 --- /dev/null +++ b/kommander/CMakeLists.txt @@ -0,0 +1,20 @@ +add_subdirectory( icons ) +add_subdirectory( plugin ) +add_subdirectory( factory ) +add_subdirectory( widget ) +add_subdirectory( widgets ) +add_subdirectory( pluginmanager ) +add_subdirectory( editor ) +add_subdirectory( executor ) +#add_subdirectory( part ) +#add_subdirectory( working ) +#add_subdirectory( examples ) +#add_subdirectory( kmdrtools ) + + +##### other data + +install( + FILES x-kommander.desktop + DESTINATION ${MIME_INSTALL_DIR}/application +) diff --git a/kommander/editor/CMakeLists.txt b/kommander/editor/CMakeLists.txt new file mode 100644 index 00000000..c857b18f --- /dev/null +++ b/kommander/editor/CMakeLists.txt @@ -0,0 +1,88 @@ +# tdewebdev/kommander/editor + +#add_subdirectory( pics ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/kommander/widget + ${CMAKE_SOURCE_DIR}/kommander/widgets + ${CMAKE_SOURCE_DIR}/kommander/plugin + ${CMAKE_SOURCE_DIR}/kommander/factory + +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + +add_definitions( -DKOMMANDER -DTQT_NO_SQL -DDESIGNER ) +#-DHAVE_KDE + + +##### kmdr-editor (executable) + +tde_add_executable( kmdr-editor AUTOMOC + + SOURCES + actioneditor.ui assoctexteditor.ui + connectioneditor.ui createtemplate.ui + formsettings.ui iconvieweditor.ui + listboxeditor.ui listeditor.ui + listvieweditor.ui multilineeditor.ui + newform.ui paletteeditor.ui + paletteeditoradvanced.ui pixmapfunction.ui + preferences.ui previewwidget.ui + tableeditor.ui wizardeditor.ui + choosewidget.ui functions.ui + actiondnd.cpp actioneditorimpl.cpp + assoctexteditorimpl.cpp actionlistview.cpp + asciivalidator.cpp assistproc.cpp + command.cpp connectioneditorimpl.cpp + defs.cpp filechooser.cpp + formfile.cpp formsettingsimpl.cpp + formwindow.cpp hierarchyview.cpp + iconvieweditorimpl.cpp layout.cpp + listboxeditorimpl.cpp listvieweditorimpl.cpp + main.cpp mainwindow.cpp + mainwindowactions.cpp metadatabase.cpp + multilineeditorimpl.cpp newformimpl.cpp + orderindicator.cpp paletteeditoradvancedimpl.cpp + paletteeditorimpl.cpp parser.cpp + pixmapchooser.cpp previewframe.cpp + previewwidgetimpl.cpp propertyeditor.cpp + qcompletionedit.cpp resource.cpp + sizehandle.cpp styledbutton.cpp + tableeditorimpl.cpp widgetdatabase.cpp + widgetfactory.cpp wizardeditorimpl.cpp + workspace.cpp choosewidgetimpl.cpp + functionsimpl.cpp messagelog.cpp + LINK + tdecore-shared + tdeui-shared + tdeio-shared + tdeparts-shared + tdetexteditor + kommanderwidget-shared + kommanderwidgets-shared + kommanderplugin-shared + + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### other data + +install( + FILES kommander.xml kommander-new.xml + DESTINATION ${DATA_INSTALL_DIR}/katepart/syntax +) + +install( + FILES kmdr-editor.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) diff --git a/kommander/executor/CMakeLists.txt b/kommander/executor/CMakeLists.txt new file mode 100644 index 00000000..1e2d231f --- /dev/null +++ b/kommander/executor/CMakeLists.txt @@ -0,0 +1,62 @@ +# tdewebdev/kommander/executor + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/kommander/widget + ${CMAKE_SOURCE_DIR}/kommander/widgets + ${CMAKE_SOURCE_DIR}/kommander/factory + ${CMAKE_SOURCE_DIR}/kommander/plugin +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + +add_definitions( +) + + +##### instance (static) + +tde_add_library( instance STATIC_PIC AUTOMOC + + SOURCES + instance.cpp + dcopkommanderif.skel + LINK + tdecore-shared + tdeui-shared + tdeio-shared +) + + +##### kmdr-executor (executable) + +tde_add_executable( kmdr-executor AUTOMOC + + SOURCES + main.cpp + LINK + tdecore-shared + tdeui-shared + tdeio-shared + instance-static + kommanderwidget-shared + kommanderwidgets-shared + kommanderfactory-static + + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### other data + +install( + FILES kmdr-executor.desktop + DESTINATION ${APPS_INSTALL_DIR}/.hidden +) diff --git a/kommander/factory/CMakeLists.txt b/kommander/factory/CMakeLists.txt new file mode 100644 index 00000000..c001cab2 --- /dev/null +++ b/kommander/factory/CMakeLists.txt @@ -0,0 +1,30 @@ +# tdewebdev/kommander/factory + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/kommander/widget + ${CMAKE_SOURCE_DIR}/kommander/plugin +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + +add_definitions( -DTQT_NO_SQL ) + + +##### kommanderfactory (static) + +tde_add_library( kommanderfactory STATIC_PIC AUTOMOC + + SOURCES + kommanderfactory.cpp + domtool.cpp + LINK + kommanderplugin-shared +) diff --git a/kommander/icons/CMakeLists.txt b/kommander/icons/CMakeLists.txt new file mode 100644 index 00000000..8721c028 --- /dev/null +++ b/kommander/icons/CMakeLists.txt @@ -0,0 +1,4 @@ +# tdewebdev/kommander/icons + +tde_install_icons( kommander ) + diff --git a/kommander/plugin/CMakeLists.txt b/kommander/plugin/CMakeLists.txt new file mode 100644 index 00000000..3ce2a998 --- /dev/null +++ b/kommander/plugin/CMakeLists.txt @@ -0,0 +1,29 @@ +# tdewebdev/kommander/plugin + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kommander/widget + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kommanderplugin (shared) + +tde_add_library( kommanderplugin SHARED AUTOMOC + + SOURCES + kommanderplugin.cpp + specialinformation.cpp + LINK + tdecore-shared + tdeui-shared + + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kommander/pluginmanager/CMakeLists.txt b/kommander/pluginmanager/CMakeLists.txt new file mode 100644 index 00000000..045dbe55 --- /dev/null +++ b/kommander/pluginmanager/CMakeLists.txt @@ -0,0 +1,32 @@ +# tdewebdev/kommander/pluginmanager + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kommander/factory + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### kmdr-plugins (executable) + +tde_add_executable( kmdr-plugins AUTOMOC + + SOURCES + main.cpp + mainwindow.cpp + pluginmanager.cpp + LINK + tdecore-shared + tdeui-shared + tdeio-shared + + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kommander/widget/CMakeLists.txt b/kommander/widget/CMakeLists.txt new file mode 100644 index 00000000..a052896b --- /dev/null +++ b/kommander/widget/CMakeLists.txt @@ -0,0 +1,36 @@ +# tdewebdev/kommander/widget + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kommander/plugin + ${CMAKE_SOURCE_DIR}/kommander/factory + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### kommanderwidget (shared) + +tde_add_library( kommanderwidget SHARED AUTOMOC + + SOURCES + expression.cpp function.cpp + functionlib.cpp invokeclass.cpp + kmdrmainwindow.cpp kommanderfunctions.cpp + kommanderwidget.cpp kommanderwindow.cpp + myprocess.cpp parsenode.cpp + parser.cpp parserdata.cpp + LINK + tdeio-shared + tdeui-shared + kommanderfactory-static + + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kommander/widgets/CMakeLists.txt b/kommander/widgets/CMakeLists.txt new file mode 100644 index 00000000..f3d6c709 --- /dev/null +++ b/kommander/widgets/CMakeLists.txt @@ -0,0 +1,49 @@ +# tdewebdev/kommander/widgets + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kommander/widget + ${CMAKE_SOURCE_DIR}/kommander/factory + ${CMAKE_SOURCE_DIR}/kommander/plugin + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### kommanderwidgets (shared) + +tde_add_library( kommanderwidgets SHARED AUTOMOC + + SOURCES + aboutdialog.cpp buttongroup.cpp + checkbox.cpp closebutton.cpp + combobox.cpp datepicker.cpp dialog.cpp + execbutton.cpp fileselector.cpp + fontdialog.cpp groupbox.cpp + konsole.cpp label.cpp + lineedit.cpp listbox.cpp + pixmaplabel.cpp plugin.cpp + popupmenu.cpp progressbar.cpp + radiobutton.cpp richtexteditor.cpp + scriptobject.cpp slider.cpp + spinboxint.cpp statusbar.cpp + subdialog.cpp table.cpp + tabwidget.cpp textbrowser.cpp + textedit.cpp timer.cpp + toolbox.cpp treewidget.cpp + wizard.cpp + LINK + tdeio-shared + kommanderwidget-shared + kommanderplugin-shared + kommanderfactory-static + + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/quanta/CMakeLists.txt b/quanta/CMakeLists.txt index 6d0aa9f3..11fc0c2f 100644 --- a/quanta/CMakeLists.txt +++ b/quanta/CMakeLists.txt @@ -1 +1,23 @@ -tde_auto_add_subdirectories( ) +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( data ) +add_subdirectory( utility ) +add_subdirectory( dialogs ) +add_subdirectory( components ) +add_subdirectory( parsers ) +add_subdirectory( treeviews ) +add_subdirectory( messages ) +add_subdirectory( plugins ) +add_subdirectory( parts ) +add_subdirectory( project ) +add_subdirectory( src ) +add_subdirectory( scripts )