summaryrefslogtreecommitdiffstats
path: root/deco/config
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2020-07-16 14:07:49 +0200
committergregory guy <gregory-tde@laposte.net>2020-07-18 17:40:43 +0200
commitd0c03cc9a910ea44cea57b1af43bbd90eb86d4bc (patch)
tree3509747590af2f2833e7f387a57af763084f253e /deco/config
parent7815a4d67f1fbaaa198737a14f3aafab8f1bad61 (diff)
downloadtde-style-baghira-d0c03cc9a910ea44cea57b1af43bbd90eb86d4bc.tar.gz
tde-style-baghira-d0c03cc9a910ea44cea57b1af43bbd90eb86d4bc.zip
Conversion to the cmake building system.
Added a man page taken from the Debian packaging system. Signed-off-by: gregory guy <gregory-tde@laposte.net> Resolve issues that occurred during CMake conversion. Concatenate the commands for generating pixmaps.h with CMake so that there is no need to use the GNU specific sed option -i. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> Signed-off-by: gregory guy <gregory-tde@laposte.net>
Diffstat (limited to 'deco/config')
-rw-r--r--deco/config/CMakeLists.txt51
-rw-r--r--deco/config/aquariusbutton.cc8
-rw-r--r--deco/config/colorpicker.cc4
-rw-r--r--deco/config/configdialog.ui17
-rw-r--r--deco/config/customdecosettings.ui3
5 files changed, 60 insertions, 23 deletions
diff --git a/deco/config/CMakeLists.txt b/deco/config/CMakeLists.txt
new file mode 100644
index 0000000..5a4a344
--- /dev/null
+++ b/deco/config/CMakeLists.txt
@@ -0,0 +1,51 @@
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIBRARY_DIRS}
+)
+
+
+##### pixmaps.h (header)
+
+set( _pics ${CMAKE_SOURCE_DIR}/imagebase/icon_help
+ ${CMAKE_SOURCE_DIR}/imagebase/preview
+ ${CMAKE_SOURCE_DIR}/imagebase/preview-menu
+)
+
+set( _header pixmaps.h )
+
+add_custom_command(
+ OUTPUT ${_header}
+ COMMAND ${UIC_EXECUTABLE}
+ ARGS -o ${_header} -embed baghira ${_pics}
+ DEPENDS ${_pics}
+)
+
+##### twin_baghira_config (kpart)
+
+set_source_files_properties(
+ baghiraconfig.cc
+ PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_header}
+)
+
+tde_add_kpart( twin_baghira_config AUTOMOC
+
+ SOURCES
+ configdialog.ui
+ baghiraconfig.cc
+ aquariusbutton.cc
+ colorpicker.cc
+ LINK
+ tdecore-shared
+ tdeui-shared
+
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/deco/config/aquariusbutton.cc b/deco/config/aquariusbutton.cc
index 6a8011f..9cf1b0e 100644
--- a/deco/config/aquariusbutton.cc
+++ b/deco/config/aquariusbutton.cc
@@ -1,10 +1,12 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "aquariusbutton.h"
#include <tqcolor.h>
#include <tqpixmap.h>
#include <tqpainter.h>
#include <kimageeffect.h>
-#include "config.h"
-
#define COLOR_SPACE(R,G,B) \
if ( R < 0 ) R = 0; else if ( R > 255 ) R = 255; \
@@ -160,3 +162,5 @@ void AquariusButton::paintEvent( TQPaintEvent *e){
// void AquariusButton::clicked(){
// }
+
+#include "aquariusbutton.moc"
diff --git a/deco/config/colorpicker.cc b/deco/config/colorpicker.cc
index 6934920..c5301c1 100644
--- a/deco/config/colorpicker.cc
+++ b/deco/config/colorpicker.cc
@@ -121,4 +121,6 @@ void ColorPicker::reset(){
void ColorPicker::init(){
color_ = Color();
-} \ No newline at end of file
+}
+
+#include "colorpicker.moc"
diff --git a/deco/config/configdialog.ui b/deco/config/configdialog.ui
index f4e148a..18723c2 100644
--- a/deco/config/configdialog.ui
+++ b/deco/config/configdialog.ui
@@ -3067,22 +3067,5 @@ from multipart titles</string>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
</includehints>
</UI>
diff --git a/deco/config/customdecosettings.ui b/deco/config/customdecosettings.ui
index 2a98265..95460d0 100644
--- a/deco/config/customdecosettings.ui
+++ b/deco/config/customdecosettings.ui
@@ -579,8 +579,5 @@
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
- <includehint>kcolorbutton.h</includehint>
</includehints>
</UI>