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>
pull/45/head
Michele Calgaro 1 year ago
parent da9cd0c056
commit eef19dd535
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -206,9 +206,9 @@ if ( BUILD_SUPERKARAMBA )
check_include_file( "sys/types.h" HAVE_SYS_TYPES_H )
find_package( PythonLibs )
if( NOT PYTHONLIBS_FOUND )
tde_message_fatal( "python is required, but was not found on your system" )
endif( NOT PYTHONLIBS_FOUND )
if( NOT PYTHONLIBS_FOUND OR "${PYTHONLIBS_VERSION_STRING}" LESS "3" )
tde_message_fatal( "Python3 is required, but was not found on your system" )
endif( )
if( WITH_TDENEWSTUFF )
set( HAVE_TDENEWSTUFF 1 )

@ -10,6 +10,7 @@
#################################################
add_subdirectory( src )
add_subdirectory( examples )
add_subdirectory( icons )
add_subdirectory( mimetypes )

@ -0,0 +1,7 @@
add_subdirectory( globalMouse )
install(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
DESTINATION ${DATA_INSTALL_DIR}/superkaramba/examples
PATTERN CMakeLists.txt EXCLUDE
)

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Before

Width:  |  Height:  |  Size: 305 B

After

Width:  |  Height:  |  Size: 305 B

@ -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
)

@ -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.

@ -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()

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

@ -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

Loading…
Cancel
Save