summaryrefslogtreecommitdiffstats
path: root/superkaramba
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-11-16 19:41:16 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-11-17 15:55:46 +0900
commiteef19dd5357a1f254f9c4e2db01c75c23e4157e5 (patch)
treefdd7604a5416839384831e9928781cfdeeeae760 /superkaramba
parentda9cd0c056c8275033fca84a1c8d49a8edb0c8ee (diff)
downloadtdeutils-eef19dd5357a1f254f9c4e2db01c75c23e4157e5.tar.gz
tdeutils-eef19dd5357a1f254f9c4e2db01c75c23e4157e5.zip
superkaramba: added cmake rules for example files and create xcursor.so at build time.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'superkaramba')
-rw-r--r--superkaramba/CMakeLists.txt1
-rw-r--r--superkaramba/examples/CMakeLists.txt7
-rw-r--r--superkaramba/examples/cleanbar/README (renamed from superkaramba/examples/taskBar/cleanbar/README)0
-rw-r--r--superkaramba/examples/cleanbar/cleanbar.py (renamed from superkaramba/examples/taskBar/cleanbar/cleanbar.py)0
-rw-r--r--superkaramba/examples/cleanbar/cleanbar.theme (renamed from superkaramba/examples/taskBar/cleanbar/cleanbar.theme)0
-rw-r--r--superkaramba/examples/cleanbar/pics/bar2.png (renamed from superkaramba/examples/taskBar/cleanbar/pics/bar2.png)bin6801 -> 6801 bytes
-rw-r--r--superkaramba/examples/cleanbar/pics/rightend.png (renamed from superkaramba/examples/taskBar/cleanbar/pics/rightend.png)bin311 -> 311 bytes
-rw-r--r--superkaramba/examples/cleanbar/pics/rightend_new.png (renamed from superkaramba/examples/taskBar/cleanbar/pics/rightend_new.png)bin4634 -> 4634 bytes
-rw-r--r--superkaramba/examples/cleanbar/pics/slickbar.png (renamed from superkaramba/examples/taskBar/cleanbar/pics/slickbar.png)bin1993 -> 1993 bytes
-rw-r--r--superkaramba/examples/cleanbar/pics/startup.png (renamed from superkaramba/examples/taskBar/cleanbar/pics/startup.png)bin2475 -> 2475 bytes
-rw-r--r--superkaramba/examples/cleanbar/pics/task.png (renamed from superkaramba/examples/taskBar/cleanbar/pics/task.png)bin305 -> 305 bytes
-rw-r--r--superkaramba/examples/cleanbar/pics/task_new.png (renamed from superkaramba/examples/taskBar/cleanbar/pics/task_new.png)bin2382 -> 2382 bytes
-rw-r--r--superkaramba/examples/globalMouse/CMakeLists.txt11
-rw-r--r--superkaramba/examples/globalMouse/README2
-rw-r--r--superkaramba/examples/globalMouse/extension/setup.py8
-rwxr-xr-xsuperkaramba/examples/globalMouse/xcursor.sobin27408 -> 0 bytes
-rw-r--r--superkaramba/examples/mouseDrag/images/bar.png (renamed from superkaramba/examples/mouseDrag/karmix/images/bar.png)bin203 -> 203 bytes
-rw-r--r--superkaramba/examples/mouseDrag/images/bg.png (renamed from superkaramba/examples/mouseDrag/karmix/images/bg.png)bin4244 -> 4244 bytes
-rw-r--r--superkaramba/examples/mouseDrag/karmix.py (renamed from superkaramba/examples/mouseDrag/karmix/karmix.py)0
-rw-r--r--superkaramba/examples/mouseDrag/karmix.theme (renamed from superkaramba/examples/mouseDrag/karmix/karmix.theme)0
-rwxr-xr-xsuperkaramba/examples/test_all.sh51
21 files changed, 54 insertions, 26 deletions
diff --git a/superkaramba/CMakeLists.txt b/superkaramba/CMakeLists.txt
index 21dbc7e..7aaf596 100644
--- a/superkaramba/CMakeLists.txt
+++ b/superkaramba/CMakeLists.txt
@@ -10,6 +10,7 @@
#################################################
add_subdirectory( src )
+add_subdirectory( examples )
add_subdirectory( icons )
add_subdirectory( mimetypes )
diff --git a/superkaramba/examples/CMakeLists.txt b/superkaramba/examples/CMakeLists.txt
new file mode 100644
index 0000000..0eefb51
--- /dev/null
+++ b/superkaramba/examples/CMakeLists.txt
@@ -0,0 +1,7 @@
+add_subdirectory( globalMouse )
+
+install(
+ DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
+ DESTINATION ${DATA_INSTALL_DIR}/superkaramba/examples
+ PATTERN CMakeLists.txt EXCLUDE
+)
diff --git a/superkaramba/examples/taskBar/cleanbar/README b/superkaramba/examples/cleanbar/README
index 2c6b146..2c6b146 100644
--- a/superkaramba/examples/taskBar/cleanbar/README
+++ b/superkaramba/examples/cleanbar/README
diff --git a/superkaramba/examples/taskBar/cleanbar/cleanbar.py b/superkaramba/examples/cleanbar/cleanbar.py
index 16bd18f..16bd18f 100644
--- a/superkaramba/examples/taskBar/cleanbar/cleanbar.py
+++ b/superkaramba/examples/cleanbar/cleanbar.py
diff --git a/superkaramba/examples/taskBar/cleanbar/cleanbar.theme b/superkaramba/examples/cleanbar/cleanbar.theme
index 0dc6faa..0dc6faa 100644
--- a/superkaramba/examples/taskBar/cleanbar/cleanbar.theme
+++ b/superkaramba/examples/cleanbar/cleanbar.theme
diff --git a/superkaramba/examples/taskBar/cleanbar/pics/bar2.png b/superkaramba/examples/cleanbar/pics/bar2.png
index aa1c4f5..aa1c4f5 100644
--- a/superkaramba/examples/taskBar/cleanbar/pics/bar2.png
+++ b/superkaramba/examples/cleanbar/pics/bar2.png
Binary files differ
diff --git a/superkaramba/examples/taskBar/cleanbar/pics/rightend.png b/superkaramba/examples/cleanbar/pics/rightend.png
index 7f852bf..7f852bf 100644
--- a/superkaramba/examples/taskBar/cleanbar/pics/rightend.png
+++ b/superkaramba/examples/cleanbar/pics/rightend.png
Binary files differ
diff --git a/superkaramba/examples/taskBar/cleanbar/pics/rightend_new.png b/superkaramba/examples/cleanbar/pics/rightend_new.png
index 45adc7b..45adc7b 100644
--- a/superkaramba/examples/taskBar/cleanbar/pics/rightend_new.png
+++ b/superkaramba/examples/cleanbar/pics/rightend_new.png
Binary files differ
diff --git a/superkaramba/examples/taskBar/cleanbar/pics/slickbar.png b/superkaramba/examples/cleanbar/pics/slickbar.png
index 57f0830..57f0830 100644
--- a/superkaramba/examples/taskBar/cleanbar/pics/slickbar.png
+++ b/superkaramba/examples/cleanbar/pics/slickbar.png
Binary files differ
diff --git a/superkaramba/examples/taskBar/cleanbar/pics/startup.png b/superkaramba/examples/cleanbar/pics/startup.png
index a5a99f1..a5a99f1 100644
--- a/superkaramba/examples/taskBar/cleanbar/pics/startup.png
+++ b/superkaramba/examples/cleanbar/pics/startup.png
Binary files differ
diff --git a/superkaramba/examples/taskBar/cleanbar/pics/task.png b/superkaramba/examples/cleanbar/pics/task.png
index f9bc4eb..f9bc4eb 100644
--- a/superkaramba/examples/taskBar/cleanbar/pics/task.png
+++ b/superkaramba/examples/cleanbar/pics/task.png
Binary files differ
diff --git a/superkaramba/examples/taskBar/cleanbar/pics/task_new.png b/superkaramba/examples/cleanbar/pics/task_new.png
index 1ac95c8..1ac95c8 100644
--- a/superkaramba/examples/taskBar/cleanbar/pics/task_new.png
+++ b/superkaramba/examples/cleanbar/pics/task_new.png
Binary files differ
diff --git a/superkaramba/examples/globalMouse/CMakeLists.txt b/superkaramba/examples/globalMouse/CMakeLists.txt
new file mode 100644
index 0000000..9df1a76
--- /dev/null
+++ b/superkaramba/examples/globalMouse/CMakeLists.txt
@@ -0,0 +1,11 @@
+##### xcursor.so #######################
+
+include_directories(
+ ${PYTHON_INCLUDE_DIR}
+)
+
+tde_add_library( xcursor MODULE NO_LIBTOOL_FILE
+ SOURCES extension/xcursor.c
+ LINK ${PYTHON_LIBRARIES} X11
+ DESTINATION ${DATA_INSTALL_DIR}/superkaramba/examples/globalMouse
+)
diff --git a/superkaramba/examples/globalMouse/README b/superkaramba/examples/globalMouse/README
index 758ce4b..7d2abc3 100644
--- a/superkaramba/examples/globalMouse/README
+++ b/superkaramba/examples/globalMouse/README
@@ -19,7 +19,7 @@ INSTALLATION:
named build. This file needs to be copied in the same directory as the
eyes.theme and eyes.py file.
- A precompiled xcursor.so file is included (Compiled on Mandrake 9.1).
+ A precompiled xcursor.so file is included.
CHANGES:
* Moving the theme now works as it should.
diff --git a/superkaramba/examples/globalMouse/extension/setup.py b/superkaramba/examples/globalMouse/extension/setup.py
index 49bd87b..2003334 100644
--- a/superkaramba/examples/globalMouse/extension/setup.py
+++ b/superkaramba/examples/globalMouse/extension/setup.py
@@ -5,10 +5,10 @@ def main():
version = '1.0',
description = 'Determines the position of the X mouse cursor',
ext_modules = [Extension('xcursor',
- include_dirs = ['/usr/X11R6/include'],
- libraries = ['X11'],
- library_dirs = ['/usr/X11R6/lib'],
- sources = ['xcursor.c'])])
+ include_dirs = ['/usr/X11R6/include'],
+ libraries = ['X11'],
+ library_dirs = ['/usr/X11R6/lib'],
+ sources = ['xcursor.c'])])
if __name__ == "__main__":
main()
diff --git a/superkaramba/examples/globalMouse/xcursor.so b/superkaramba/examples/globalMouse/xcursor.so
deleted file mode 100755
index 167bb29..0000000
--- a/superkaramba/examples/globalMouse/xcursor.so
+++ /dev/null
Binary files differ
diff --git a/superkaramba/examples/mouseDrag/karmix/images/bar.png b/superkaramba/examples/mouseDrag/images/bar.png
index 07ae19d..07ae19d 100644
--- a/superkaramba/examples/mouseDrag/karmix/images/bar.png
+++ b/superkaramba/examples/mouseDrag/images/bar.png
Binary files differ
diff --git a/superkaramba/examples/mouseDrag/karmix/images/bg.png b/superkaramba/examples/mouseDrag/images/bg.png
index 6ac12bc..6ac12bc 100644
--- a/superkaramba/examples/mouseDrag/karmix/images/bg.png
+++ b/superkaramba/examples/mouseDrag/images/bg.png
Binary files differ
diff --git a/superkaramba/examples/mouseDrag/karmix/karmix.py b/superkaramba/examples/mouseDrag/karmix.py
index bd167db..bd167db 100644
--- a/superkaramba/examples/mouseDrag/karmix/karmix.py
+++ b/superkaramba/examples/mouseDrag/karmix.py
diff --git a/superkaramba/examples/mouseDrag/karmix/karmix.theme b/superkaramba/examples/mouseDrag/karmix.theme
index 3844663..3844663 100644
--- a/superkaramba/examples/mouseDrag/karmix/karmix.theme
+++ b/superkaramba/examples/mouseDrag/karmix.theme
diff --git a/superkaramba/examples/test_all.sh b/superkaramba/examples/test_all.sh
index 5e95063..4b920b6 100755
--- a/superkaramba/examples/test_all.sh
+++ b/superkaramba/examples/test_all.sh
@@ -1,27 +1,36 @@
#!/bin/sh
-themes=(
- "text/text.theme"
- "autoHide/main.theme"
- "bar/bar.theme"
- "graph/graph.theme"
- "image/image.theme"
- "popupMenu/popupMenu.theme"
- "taskBar/cleanbar/cleanbar.theme"
- "richtext/richtext.theme"
- "richtext/rtext.theme"
- "globalMouse/eyes.theme"
- "unicode/unicode.theme"
- "mouseDrag/karmix/karmix.theme"
- "input_api/input_api.theme"
- "input_example/input_example.theme"
-)
+themes="
+ autoHide/main.theme
+ bar/bar.theme
+ change_interval/interval.theme
+ cleanbar/cleanbar.theme
+ control_management/mgmt.theme
+ disableRightClickMenu/disable_menu.theme
+ globalMouse/eyes.theme
+ graph/graph.theme
+ image/image.theme
+ input_api/input_api.theme
+ input_example/input_example.theme
+ mouseDrag/karmix.theme
+ mouseDrop/mousedrop.theme
+ openCloseTheme/1.theme
+ openCloseTheme/2.theme
+ popupMenu/popupMenu.theme
+ richtext/richtext.theme
+ richtext/rtext.theme
+ service_group/service_group.theme
+ setIncomingData/1.theme
+ setIncomingData/2.theme
+ text/text.theme
+ unicode/unicode.theme
+"
-for theme in "${themes[@]}"
+for theme in $themes
do
- echo $theme
- dcop `dcop superkaramba* | head -n 1` default openTheme $PWD/$theme
- read a
- dcop `dcop superkaramba* | head -n 1` default closeTheme `expr $theme : '.*/\(.*\)\.'`
+ echo $theme
+ dcop `dcop superkaramba* | head -n 1` default openTheme $PWD/$theme
+ read a
+ dcop `dcop superkaramba* | head -n 1` default closeTheme `expr $theme : '.*/\(.*\)\.'`
done
#dcop `dcop superkaramba* | head -n 1` default quit