diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-11-16 19:41:16 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-11-17 15:55:46 +0900 |
commit | eef19dd5357a1f254f9c4e2db01c75c23e4157e5 (patch) | |
tree | fdd7604a5416839384831e9928781cfdeeeae760 /superkaramba | |
parent | da9cd0c056c8275033fca84a1c8d49a8edb0c8ee (diff) | |
download | tdeutils-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.txt | 1 | ||||
-rw-r--r-- | superkaramba/examples/CMakeLists.txt | 7 | ||||
-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) | bin | 6801 -> 6801 bytes | |||
-rw-r--r-- | superkaramba/examples/cleanbar/pics/rightend.png (renamed from superkaramba/examples/taskBar/cleanbar/pics/rightend.png) | bin | 311 -> 311 bytes | |||
-rw-r--r-- | superkaramba/examples/cleanbar/pics/rightend_new.png (renamed from superkaramba/examples/taskBar/cleanbar/pics/rightend_new.png) | bin | 4634 -> 4634 bytes | |||
-rw-r--r-- | superkaramba/examples/cleanbar/pics/slickbar.png (renamed from superkaramba/examples/taskBar/cleanbar/pics/slickbar.png) | bin | 1993 -> 1993 bytes | |||
-rw-r--r-- | superkaramba/examples/cleanbar/pics/startup.png (renamed from superkaramba/examples/taskBar/cleanbar/pics/startup.png) | bin | 2475 -> 2475 bytes | |||
-rw-r--r-- | superkaramba/examples/cleanbar/pics/task.png (renamed from superkaramba/examples/taskBar/cleanbar/pics/task.png) | bin | 305 -> 305 bytes | |||
-rw-r--r-- | superkaramba/examples/cleanbar/pics/task_new.png (renamed from superkaramba/examples/taskBar/cleanbar/pics/task_new.png) | bin | 2382 -> 2382 bytes | |||
-rw-r--r-- | superkaramba/examples/globalMouse/CMakeLists.txt | 11 | ||||
-rw-r--r-- | superkaramba/examples/globalMouse/README | 2 | ||||
-rw-r--r-- | superkaramba/examples/globalMouse/extension/setup.py | 8 | ||||
-rwxr-xr-x | superkaramba/examples/globalMouse/xcursor.so | bin | 27408 -> 0 bytes | |||
-rw-r--r-- | superkaramba/examples/mouseDrag/images/bar.png (renamed from superkaramba/examples/mouseDrag/karmix/images/bar.png) | bin | 203 -> 203 bytes | |||
-rw-r--r-- | superkaramba/examples/mouseDrag/images/bg.png (renamed from superkaramba/examples/mouseDrag/karmix/images/bg.png) | bin | 4244 -> 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-x | superkaramba/examples/test_all.sh | 51 |
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 Binary files differindex aa1c4f5..aa1c4f5 100644 --- a/superkaramba/examples/taskBar/cleanbar/pics/bar2.png +++ b/superkaramba/examples/cleanbar/pics/bar2.png diff --git a/superkaramba/examples/taskBar/cleanbar/pics/rightend.png b/superkaramba/examples/cleanbar/pics/rightend.png Binary files differindex 7f852bf..7f852bf 100644 --- a/superkaramba/examples/taskBar/cleanbar/pics/rightend.png +++ b/superkaramba/examples/cleanbar/pics/rightend.png diff --git a/superkaramba/examples/taskBar/cleanbar/pics/rightend_new.png b/superkaramba/examples/cleanbar/pics/rightend_new.png Binary files differindex 45adc7b..45adc7b 100644 --- a/superkaramba/examples/taskBar/cleanbar/pics/rightend_new.png +++ b/superkaramba/examples/cleanbar/pics/rightend_new.png diff --git a/superkaramba/examples/taskBar/cleanbar/pics/slickbar.png b/superkaramba/examples/cleanbar/pics/slickbar.png Binary files differindex 57f0830..57f0830 100644 --- a/superkaramba/examples/taskBar/cleanbar/pics/slickbar.png +++ b/superkaramba/examples/cleanbar/pics/slickbar.png diff --git a/superkaramba/examples/taskBar/cleanbar/pics/startup.png b/superkaramba/examples/cleanbar/pics/startup.png Binary files differindex a5a99f1..a5a99f1 100644 --- a/superkaramba/examples/taskBar/cleanbar/pics/startup.png +++ b/superkaramba/examples/cleanbar/pics/startup.png diff --git a/superkaramba/examples/taskBar/cleanbar/pics/task.png b/superkaramba/examples/cleanbar/pics/task.png Binary files differindex f9bc4eb..f9bc4eb 100644 --- a/superkaramba/examples/taskBar/cleanbar/pics/task.png +++ b/superkaramba/examples/cleanbar/pics/task.png diff --git a/superkaramba/examples/taskBar/cleanbar/pics/task_new.png b/superkaramba/examples/cleanbar/pics/task_new.png Binary files differindex 1ac95c8..1ac95c8 100644 --- a/superkaramba/examples/taskBar/cleanbar/pics/task_new.png +++ b/superkaramba/examples/cleanbar/pics/task_new.png 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 Binary files differdeleted file mode 100755 index 167bb29..0000000 --- a/superkaramba/examples/globalMouse/xcursor.so +++ /dev/null diff --git a/superkaramba/examples/mouseDrag/karmix/images/bar.png b/superkaramba/examples/mouseDrag/images/bar.png Binary files differindex 07ae19d..07ae19d 100644 --- a/superkaramba/examples/mouseDrag/karmix/images/bar.png +++ b/superkaramba/examples/mouseDrag/images/bar.png diff --git a/superkaramba/examples/mouseDrag/karmix/images/bg.png b/superkaramba/examples/mouseDrag/images/bg.png Binary files differindex 6ac12bc..6ac12bc 100644 --- a/superkaramba/examples/mouseDrag/karmix/images/bg.png +++ b/superkaramba/examples/mouseDrag/images/bg.png 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 |