summaryrefslogtreecommitdiffstats
path: root/kchart
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2024-09-30 00:04:56 +0300
committerMavridis Philippe <mavridisf@gmail.com>2024-09-30 00:16:43 +0300
commit28f28e0af6f7a49a651e28afd3c951c022c58b06 (patch)
tree2dcae47d3464b975c7e48a0f6a7deabaf46ad429 /kchart
parenta616663e125e9f6f2966ee85e7b37ebc85eb2967 (diff)
downloadkoffice-feat/cmake-port.tar.gz
koffice-feat/cmake-port.zip
WIP: CMake portfeat/cmake-port
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kchart')
-rw-r--r--kchart/CMakeLists.txt85
-rw-r--r--kchart/kdchart/CMakeLists.txt56
-rw-r--r--kchart/pics/CMakeLists.txt26
-rw-r--r--kchart/templates/CMakeLists.txt21
-rw-r--r--kchart/toolbar/CMakeLists.txt13
-rw-r--r--kchart/toolbar/crystalsvg/CMakeLists.txt11
-rw-r--r--kchart/toolbar/locolor/CMakeLists.txt11
7 files changed, 223 insertions, 0 deletions
diff --git a/kchart/CMakeLists.txt b/kchart/CMakeLists.txt
new file mode 100644
index 00000000..80f09bac
--- /dev/null
+++ b/kchart/CMakeLists.txt
@@ -0,0 +1,85 @@
+###############################################################################
+# Trinity KOffice #
+# --------------- #
+# This file is licensed under the terms of GNU GPL v3 or later. #
+# Improvements and feedback are welcome. #
+###############################################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/lib/kofficecore
+ ${CMAKE_SOURCE_DIR}/lib/kofficeui
+ ${CMAKE_SOURCE_DIR}/lib/store
+ ${CMAKE_SOURCE_DIR}/lib/kwmf
+ ${CMAKE_SOURCE_DIR}/lib/kopalette
+ ${CMAKE_SOURCE_DIR}/kchart/kdchart
+ ${CMAKE_SOURCE_DIR}/interfaces
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+### Libraries #################################################################
+tde_add_library(kchartcommon SHARED AUTOMOC
+ SOURCES
+ kchart_part.cpp kchart_view.cpp kchart_factory.cpp
+ kchartColorConfigPage.cpp kchartParameterConfigPage.cpp
+ kchartParameter3dConfigPage.cpp kchartBackgroundPixmapConfigPage.cpp
+ kchartSubTypeChartPage.cpp kchartComboConfigPage.cpp
+ kchartFontConfigPage.cpp kchartDataConfigPage.cpp kchartPieConfigPage.cpp
+ kchartParameterPieConfigPage.cpp kchartConfigDialog.cpp kchartWizard.cpp
+ kchartWizardLabelsLegendPage.cpp kchartWizardSelectChartSubTypePage.cpp
+ kchartWizardSelectChartTypePage.cpp kchartWizardSelectDataPage.cpp
+ kchartWizardSetupAxesPage.cpp kchartWizardSetupDataPage.cpp
+ kchartWizardSelectDataFormatPage.cpp
+ kchartDataEditor.cpp KChartViewIface.skel KChartViewIface.cpp
+ kchartLegendConfigPage.cpp kchart_params.cpp KChartParamsIface.skel
+ KChartParamsIface.cpp kchartHeaderFooterConfigPage.cpp
+ kchartLine3dConfigPage.cpp kchartParameterPolarConfigPage.cpp
+ kchartPageLayout.cpp kchartPrinterDlg.cpp
+ csvimportdialog.cpp csvimportdialogui.ui
+ LINK kofficeui-shared kdchart-shared kochart-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+tde_add_kpart(libkchartpart SHARED AUTOMOC
+ SOURCES kchart_factory_init.cpp
+ LINK kchartcommon-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+add_subdirectory(kdchart)
+
+### Programs ##################################################################
+tde_add_tdeinit_executable(kchart AUTOMOC
+ SOURCES main.cpp
+ LINK kofficecore-shared
+)
+
+### Data ######################################################################
+install(
+ FILES kchart.rc kchart_readonly.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kchart
+)
+
+tde_create_translated_desktop(
+ SOURCE kchart.desktop
+ PO_DIR koffice-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE kchartpart.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR koffice-desktops
+)
+
+add_subdirectory(toolbar)
+add_subdirectory(pics)
+add_subdirectory(templates)
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file
diff --git a/kchart/kdchart/CMakeLists.txt b/kchart/kdchart/CMakeLists.txt
new file mode 100644
index 00000000..38221021
--- /dev/null
+++ b/kchart/kdchart/CMakeLists.txt
@@ -0,0 +1,56 @@
+###############################################################################
+# Trinity KOffice #
+# --------------- #
+# This file is licensed under the terms of GNU GPL v3 or later. #
+# Improvements and feedback are welcome. #
+###############################################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+### Libraries #################################################################
+tde_add_library(kdchart SHARED AUTOMOC
+ SOURCES
+ KDChart.cpp
+ KDChartAreaPainter.cpp KDChartAxesPainter.cpp KDChartAxisParams.cpp
+ KDChartBarPainter.cpp KDChartBaseSeries.cpp KDChartBWPainter.cpp
+ KDChartCustomBox.cpp KDChartDataIntern.cpp KDChartHiLoPainter.cpp
+ KDChartLinesPainter.cpp KDChartPainter.cpp KDChartParams.cpp
+ KDChartParams_frame.cpp KDChartParams_io.cpp KDChartPiePainter.cpp
+ KDChartPlaneSeries.cpp KDChartPolarPainter.cpp KDChartPropertySet.cpp
+ KDChartRingPainter.cpp KDChartSeriesCollection.cpp KDChartTableBase.cpp
+ KDChartTextPiece.cpp KDChartVectorSeries.cpp KDChartVectorTable.cpp
+ KDChartWidget.cpp KDDrawText.cpp KDFrame.cpp KDFrameProfileSection.cpp
+ KDXMLTools.cpp KDChartEnums.cpp KDChartAxisParamsWrapper.cpp
+ KDChartCustomBoxWrapper.cpp KDChartParamsWrapper.cpp
+ KDChartTableDataWrapper.cpp
+ LINK tdecore-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+### Headers ##################################################################
+install(
+ FILES
+ KDChart.h
+ KDChartAreaPainter.h KDChartAxesPainter.h
+ KDChartBarPainter.h KDChartBaseSeries.h KDChartBWPainter.h
+ KDChartDataIntern.h KDChartDataRegion.h KDChartHiLoPainter.h
+ KDChartLinesPainter.h KDChartPiePainter.h KDChartPainter.h
+ KDChartPolarPainter.h KDChartRingPainter.h
+ KDChartSeriesCollection.h KDChartPlaneSeries.h
+ KDChartVectorSeries.h KDChartTextPiece.h KDDrawText.h
+ KDChartNotEnoughSpaceException.h KDChartUnknownTypeException.h
+ KDChartUnknownTypeException.h KDXMLTools.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}
+)
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file
diff --git a/kchart/pics/CMakeLists.txt b/kchart/pics/CMakeLists.txt
new file mode 100644
index 00000000..da81f742
--- /dev/null
+++ b/kchart/pics/CMakeLists.txt
@@ -0,0 +1,26 @@
+###############################################################################
+# Trinity KOffice #
+# --------------- #
+# This file is licensed under the terms of GNU GPL v3 or later. #
+# Improvements and feedback are welcome. #
+###############################################################################
+
+### Data ######################################################################
+install(
+ FILES
+ chart_bar_beside.png chart_bar_layer.png chart_bar_percent.png
+ chart_hilo_close.png chart_hilo_normal.png chart_hilo_openclose.png
+ chart_area_normal.png chart_area_percent.png chart_area_stacked.png
+ chart_line_normal.png chart_line_percent.png chart_line_stacked.png
+ chart_polar_normal.png chart_polar_percent.png chart_polar_stacked.png
+ chart_legend_top.png chart_legend_topleft.png chart_legend_topright.png
+ chart_legend_nolegend.png chart_legend_left.png chart_legend_right.png
+ chart_legend_bottom.png chart_legend_bottomleft.png chart_legend_bottomright.png
+ chart_legend_toplefttop.png chart_legend_topleftleft.png
+ chart_legend_bottomleftbottom.png chart_legend_bottomleftleft.png
+ chart_legend_toprighttop.png chart_legend_toprightright.png
+ chart_legend_bottomrightbottom.png chart_legend_bottomrightright.png
+ DESTINATION ${DATA_INSTALL_DIR}/kchart/pics
+)
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file
diff --git a/kchart/templates/CMakeLists.txt b/kchart/templates/CMakeLists.txt
new file mode 100644
index 00000000..30212fe1
--- /dev/null
+++ b/kchart/templates/CMakeLists.txt
@@ -0,0 +1,21 @@
+###############################################################################
+# Trinity KOffice #
+# --------------- #
+# This file is licensed under the terms of GNU GPL v3 or later. #
+# Improvements and feedback are welcome. #
+###############################################################################
+
+### Data ######################################################################
+install(
+ FILES .directory BarChart.desktop Empty.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/kchart/templates/chart
+)
+
+install(
+ FILES BarChart.chrt Empty.chrt
+ DESTINATION ${DATA_INSTALL_DIR}/kchart/templates/chart/.source
+)
+
+tde_install_icons()
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file
diff --git a/kchart/toolbar/CMakeLists.txt b/kchart/toolbar/CMakeLists.txt
new file mode 100644
index 00000000..56c48ea2
--- /dev/null
+++ b/kchart/toolbar/CMakeLists.txt
@@ -0,0 +1,13 @@
+###############################################################################
+# Trinity KOffice #
+# --------------- #
+# This file is licensed under the terms of GNU GPL v3 or later. #
+# Improvements and feedback are welcome. #
+###############################################################################
+
+### Data ######################################################################
+add_subdirectory(crystalsvg)
+# add_subdirectory(hicolor) # is empty
+add_subdirectory(locolor)
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file
diff --git a/kchart/toolbar/crystalsvg/CMakeLists.txt b/kchart/toolbar/crystalsvg/CMakeLists.txt
new file mode 100644
index 00000000..f3304540
--- /dev/null
+++ b/kchart/toolbar/crystalsvg/CMakeLists.txt
@@ -0,0 +1,11 @@
+###############################################################################
+# Trinity KOffice #
+# --------------- #
+# This file is licensed under the terms of GNU GPL v3 or later. #
+# Improvements and feedback are welcome. #
+###############################################################################
+
+### Data ######################################################################
+tde_install_icons()
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file
diff --git a/kchart/toolbar/locolor/CMakeLists.txt b/kchart/toolbar/locolor/CMakeLists.txt
new file mode 100644
index 00000000..f3304540
--- /dev/null
+++ b/kchart/toolbar/locolor/CMakeLists.txt
@@ -0,0 +1,11 @@
+###############################################################################
+# Trinity KOffice #
+# --------------- #
+# This file is licensed under the terms of GNU GPL v3 or later. #
+# Improvements and feedback are welcome. #
+###############################################################################
+
+### Data ######################################################################
+tde_install_icons()
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file