From eef19dd5357a1f254f9c4e2db01c75c23e4157e5 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 16 Nov 2022 19:41:16 +0900 Subject: superkaramba: added cmake rules for example files and create xcursor.so at build time. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michele Calgaro Signed-off-by: Slávek Banko --- ConfigureChecks.cmake | 6 +- superkaramba/CMakeLists.txt | 1 + superkaramba/examples/CMakeLists.txt | 7 + superkaramba/examples/cleanbar/README | 25 ++ superkaramba/examples/cleanbar/cleanbar.py | 263 +++++++++++++++++++++ superkaramba/examples/cleanbar/cleanbar.theme | 14 ++ superkaramba/examples/cleanbar/pics/bar2.png | Bin 0 -> 6801 bytes superkaramba/examples/cleanbar/pics/rightend.png | Bin 0 -> 311 bytes .../examples/cleanbar/pics/rightend_new.png | Bin 0 -> 4634 bytes superkaramba/examples/cleanbar/pics/slickbar.png | Bin 0 -> 1993 bytes superkaramba/examples/cleanbar/pics/startup.png | Bin 0 -> 2475 bytes superkaramba/examples/cleanbar/pics/task.png | Bin 0 -> 305 bytes superkaramba/examples/cleanbar/pics/task_new.png | Bin 0 -> 2382 bytes superkaramba/examples/globalMouse/CMakeLists.txt | 11 + superkaramba/examples/globalMouse/README | 2 +- .../examples/globalMouse/extension/setup.py | 8 +- superkaramba/examples/globalMouse/xcursor.so | Bin 27408 -> 0 bytes superkaramba/examples/mouseDrag/images/bar.png | Bin 0 -> 203 bytes superkaramba/examples/mouseDrag/images/bg.png | Bin 0 -> 4244 bytes superkaramba/examples/mouseDrag/karmix.py | 190 +++++++++++++++ superkaramba/examples/mouseDrag/karmix.theme | 17 ++ .../examples/mouseDrag/karmix/images/bar.png | Bin 203 -> 0 bytes .../examples/mouseDrag/karmix/images/bg.png | Bin 4244 -> 0 bytes superkaramba/examples/mouseDrag/karmix/karmix.py | 190 --------------- .../examples/mouseDrag/karmix/karmix.theme | 17 -- superkaramba/examples/taskBar/cleanbar/README | 25 -- superkaramba/examples/taskBar/cleanbar/cleanbar.py | 263 --------------------- .../examples/taskBar/cleanbar/cleanbar.theme | 14 -- .../examples/taskBar/cleanbar/pics/bar2.png | Bin 6801 -> 0 bytes .../examples/taskBar/cleanbar/pics/rightend.png | Bin 311 -> 0 bytes .../taskBar/cleanbar/pics/rightend_new.png | Bin 4634 -> 0 bytes .../examples/taskBar/cleanbar/pics/slickbar.png | Bin 1993 -> 0 bytes .../examples/taskBar/cleanbar/pics/startup.png | Bin 2475 -> 0 bytes .../examples/taskBar/cleanbar/pics/task.png | Bin 305 -> 0 bytes .../examples/taskBar/cleanbar/pics/task_new.png | Bin 2382 -> 0 bytes superkaramba/examples/test_all.sh | 51 ++-- 36 files changed, 566 insertions(+), 538 deletions(-) create mode 100644 superkaramba/examples/CMakeLists.txt create mode 100644 superkaramba/examples/cleanbar/README create mode 100644 superkaramba/examples/cleanbar/cleanbar.py create mode 100644 superkaramba/examples/cleanbar/cleanbar.theme create mode 100644 superkaramba/examples/cleanbar/pics/bar2.png create mode 100644 superkaramba/examples/cleanbar/pics/rightend.png create mode 100644 superkaramba/examples/cleanbar/pics/rightend_new.png create mode 100644 superkaramba/examples/cleanbar/pics/slickbar.png create mode 100644 superkaramba/examples/cleanbar/pics/startup.png create mode 100644 superkaramba/examples/cleanbar/pics/task.png create mode 100644 superkaramba/examples/cleanbar/pics/task_new.png create mode 100644 superkaramba/examples/globalMouse/CMakeLists.txt delete mode 100755 superkaramba/examples/globalMouse/xcursor.so create mode 100644 superkaramba/examples/mouseDrag/images/bar.png create mode 100644 superkaramba/examples/mouseDrag/images/bg.png create mode 100644 superkaramba/examples/mouseDrag/karmix.py create mode 100644 superkaramba/examples/mouseDrag/karmix.theme delete mode 100644 superkaramba/examples/mouseDrag/karmix/images/bar.png delete mode 100644 superkaramba/examples/mouseDrag/karmix/images/bg.png delete mode 100644 superkaramba/examples/mouseDrag/karmix/karmix.py delete mode 100644 superkaramba/examples/mouseDrag/karmix/karmix.theme delete mode 100644 superkaramba/examples/taskBar/cleanbar/README delete mode 100644 superkaramba/examples/taskBar/cleanbar/cleanbar.py delete mode 100644 superkaramba/examples/taskBar/cleanbar/cleanbar.theme delete mode 100644 superkaramba/examples/taskBar/cleanbar/pics/bar2.png delete mode 100644 superkaramba/examples/taskBar/cleanbar/pics/rightend.png delete mode 100644 superkaramba/examples/taskBar/cleanbar/pics/rightend_new.png delete mode 100644 superkaramba/examples/taskBar/cleanbar/pics/slickbar.png delete mode 100644 superkaramba/examples/taskBar/cleanbar/pics/startup.png delete mode 100644 superkaramba/examples/taskBar/cleanbar/pics/task.png delete mode 100644 superkaramba/examples/taskBar/cleanbar/pics/task_new.png diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 148884c..01e91ae 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -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 ) 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/cleanbar/README b/superkaramba/examples/cleanbar/README new file mode 100644 index 0000000..2c6b146 --- /dev/null +++ b/superkaramba/examples/cleanbar/README @@ -0,0 +1,25 @@ +Cleanbar for SuperKaramba, version 0.4 +Written by Adam Geitgey +Released under the GNU General Public License version 2 + + +Cleanbar requires SuperKaramba 0.31 or higher!! + + +Cleanbar is a simple taskbar, xmms control, and clock. Cleanbar is quick, +simple, and appealing. + +The Launch button brings up the TDE Menu. The play control buttons will control +XMMS (xmmsctrl is required). A clock is shown on the right. Tasks show up +along the middle and the taskbar works just like any other taskbar from the +last 10 years. + +I created this basically as a quick example of how to use the new +event-based task control API in SuperKaramba 0.31. + +It also demonstrates how to create themes that work at any resolution. You +should not have to change anything for this to work on your desktop. + +Please report any major problems you have. + +Thanks. diff --git a/superkaramba/examples/cleanbar/cleanbar.py b/superkaramba/examples/cleanbar/cleanbar.py new file mode 100644 index 0000000..16bd18f --- /dev/null +++ b/superkaramba/examples/cleanbar/cleanbar.py @@ -0,0 +1,263 @@ +#this import statement allows access to the karamba functions +import karamba +import os +import time + +###################################### +## Globals +###################################### + +init = 0 +numOfTasks = 0 + +## Default res +## You don't need to change it. It should auto-detect. +resX = 1024 +resY = 768 + +# list of tasks +taskList = [] + +# focused task +activeTask = 0 + +## Task display stuff +taskPanels = [] +taskText = [] +taskMenu = 0 +taskMenuLookup = {} +timeText = 0 + +## My code to detect resolution +havexwi = os.system("which xwininfo") + +if (havexwi == 0): + pass +else: + print("\nCan't find xwininfo in your path.") + +fp = os.popen("xwininfo -root -stats") +output = fp.read() +output = output.splitlines() +i = 0 +for x in output: + param = x.split() + if (len(param) > 1): + if param[0].find("Width:") != -1: + resX = int(param[1]) + if param[0].find("Height:") != -1: + resY = int(param[1]) + + +def drawTaskbar(widget): + global taskPanels + global taskText + global numOfTasks + + taskList = karamba.getTaskList(widget) + + for image in taskPanels: + karamba.hideImage(widget, image) + + for text in taskText: + karamba.changeText(widget, text, "") + karamba.changeTextShadow(widget, text, 0) + karamba.changeTextColor(widget,text,0,0,0) + + length = len(taskList) + if (numOfTasks < length): + length = numOfTasks + + + knownGroups = {} + groups = [] + groupRefs = {} + + activeGroup = 0 + groupCount = 0 + + #build groups list that contains sub-lists of taskInfo sorted by group + for j in range(len(taskList)): + taskinfo = karamba.getTaskInfo(widget, taskList[j]) + + if (taskinfo[2] in knownGroups) == 0: + groupCount = groupCount + 1 + if (taskinfo[7] == 1): + activeGroup = groupCount + knownGroups[taskinfo[2]] = 1 + thisGroup = [] + thisGroup.append(taskinfo) + groupRefs[taskinfo[2]] = len(groups) + groups.append(thisGroup) + else: + if (taskinfo[7] == 1): + activeGroup = groupRefs[taskinfo[2]] + 1 + knownGroups[taskinfo[2]] = knownGroups[taskinfo[2]] + 1 + thisGroup = groups[groupRefs[taskinfo[2]]] + thisGroup.append(taskinfo) + + #fill out the task bar + j = 0 + for group in groups: + #safety check (could be more task groups than bar is long) + if (j < length): + karamba.showImage(widget, taskPanels[j]) + if len(group) != 1: + karamba.changeText(widget, taskText[j], group[0][2].decode('utf-8') + ' [' + str(len(group)) + ']') + else: + karamba.changeText(widget, taskText[j], group[0][0].decode('utf-8')) + j = j + 1 + + if (activeGroup != 0): + karamba.changeTextShadow(widget, taskText[activeGroup - 1], 1) + karamba.changeTextColor(widget, taskText[activeGroup - 1], 239, 220, 11) + + karamba.moveWidget(widget, 0, resY - 32) + karamba.resizeWidget(widget, resX, resY) + karamba.redrawWidget(widget) + +#this is called when your widget is initialized +def initWidget(widget): + global resX + global numOfTasks + global taskPanels + global taskText + global timeText + + karamba.createImage(widget, resX - 149, 0, "pics/rightend_new.png") + numOfTasks = (resX - 198 - 149) // 121 + + timeText = karamba.createText(widget, resX - 149 + 54, 10, 140, 20, "time") + karamba.changeTextColor(widget, timeText, 0,0,0) + karamba.changeTextSize(widget, timeText, 9) + + for i in range(numOfTasks): + taskPanels.append(karamba.createImage(widget, 198 + (121*i), 3, "pics/task_new.png")) + taskText.append(karamba.createText(widget, 198 + (121*i) +9, 9, 100, 20, "")) + + for text in taskText: + karamba.changeTextSize(widget,text,9) + + drawTaskbar(widget) + +# called to indicate that a new task is currently started +def startupAdded(widget, startup): + pass + +# called whenever a startup is removed. Which either means the task is +# successfully started (and taskAdded will be called), or the task could +# not be started for some reason. +def startupRemoved(widget, startup): + pass + +# called whenever a new task has been started +def taskAdded(widget, task): + drawTaskbar(widget) + +# called whenever a task is removed +def taskRemoved(widget, task): + drawTaskbar(widget) + +# called whenever a new task has gained focus. +# task = the active task +def activeTaskChanged(widget, task): + drawTaskbar(widget) + +#this is called everytime your widget is updated +#the update inverval is specified in the .theme file +def widgetUpdated(widget): + global timeText + + karamba.changeText(widget, timeText, time.strftime("%I:%M %p %a",time.localtime(time.time()))) + karamba.redrawWidget(widget) + + +#This gets called everytime our widget is clicked. +#Notes: +# widget = reference to our widget +# x = x position (relative to our widget) +# y = y position (relative to our widget) +# botton = button clicked: +# 1 = Left Mouse Button +# 2 = Middle Mouse Button +# 3 = Right Mouse Button, but this will never happen +# because the right mouse button brings up the +# Karamba menu. +# 4,5 = Scroll wheel up and down +def widgetClicked(widget, x, y, button): + global numOfTasks + global taskMenu + global taskMenuLookup + + taskSelected = (x-198) // 121 + + ## Make sure its a valid task + if (0 <= taskSelected < numOfTasks): + taskList = karamba.getTaskList(widget) + + #free last menu + karamba.deleteMenu(widget, taskMenu) + + #create new menu + taskMenu = karamba.createMenu(widget) + taskMenuLoopup = {} + + length = len(taskList) + if (numOfTasks < length): + length = numOfTasks + + + knownGroups = {} + groups = [] + groupRefs = {} + for j in range(len(taskList)): + taskinfo = karamba.getTaskInfo(widget, taskList[j]) + + if (taskinfo[2] in knownGroups) == 0: + knownGroups[taskinfo[2]] = 1 + thisGroup = [] + thisGroup.append(taskinfo) + groupRefs[taskinfo[2]] = len(groups) + groups.append(thisGroup) + else: + knownGroups[taskinfo[2]] = knownGroups[taskinfo[2]] + 1 + thisGroup = groups[groupRefs[taskinfo[2]]] + thisGroup.append(taskinfo) + + if taskSelected < len(groups): + taskGroup = groups[taskSelected] + + if len(taskGroup) == 1: + #only one task in group - just switch to that app + ## perform the task action (see Task API for list of numbers) + karamba.performTaskAction(widget, taskGroup[0][8], 8) + else: + #more than one task in this group, make a popup + for task in taskGroup: + #if it's minimized, put []'s around name + if task[5] == 1: + item = karamba.addMenuItem(widget, taskMenu, "[ " + task[0].decode('utf-8') + " ]", task[2].decode('utf-8')) + else: + item = karamba.addMenuItem(widget, taskMenu, task[0].decode('utf-8'), task[2].decode('utf-8')) + #save the taskInfo item for later use + #so we will know info for the task that + #will be clicked in the callback + taskMenuLookup[item] = task + + numOfItems = len(taskGroup) + karamba.popupMenu(widget, taskMenu, 198 + (121*taskSelected), -1 * (numOfItems * 26)) + + if (taskSelected == numOfTasks): + karamba.toggleShowDesktop(widget) + + +#This gets called when an item is clicked in a popup menu you have created. +# menu = a reference to the menu +# id = the number of the item that was clicked. +def menuItemClicked(widget, menu, id): + global taskMenuLookup + + taskinfo = taskMenuLookup[id] + karamba.performTaskAction(widget, taskinfo[8], 8) + + diff --git a/superkaramba/examples/cleanbar/cleanbar.theme b/superkaramba/examples/cleanbar/cleanbar.theme new file mode 100644 index 0000000..0dc6faa --- /dev/null +++ b/superkaramba/examples/cleanbar/cleanbar.theme @@ -0,0 +1,14 @@ +KARAMBA X=0 Y=0 W=1600 H=31 LOCKED=true ONTOP=TRUE BOTTOMBAR=true INTERVAL=20000 + +IMAGE X=0 Y=0 PATH="pics/bar2.png" + +#TDE Menu +CLICKAREA X=4 Y=6 W=64 H=25 ONCLICK="dcop kicker kicker popupKMenu 0" + +#XMMS controls +CLICKAREA X=96 Y=6 W=15 H=23 ONCLICK="xmmsctrl prev" +CLICKAREA X=121 Y=6 W=10 H=23 ONCLICK="xmmsctrl play" +CLICKAREA X=140 Y=6 W=12 H=23 ONCLICK="xmmsctrl pause" +CLICKAREA X=159 Y=6 W=12 H=23 ONCLICK="xmmsctrl stop" +CLICKAREA X=180 Y=6 W=12 H=23 ONCLICK="xmmsctrl next" + diff --git a/superkaramba/examples/cleanbar/pics/bar2.png b/superkaramba/examples/cleanbar/pics/bar2.png new file mode 100644 index 0000000..aa1c4f5 Binary files /dev/null and b/superkaramba/examples/cleanbar/pics/bar2.png differ diff --git a/superkaramba/examples/cleanbar/pics/rightend.png b/superkaramba/examples/cleanbar/pics/rightend.png new file mode 100644 index 0000000..7f852bf Binary files /dev/null and b/superkaramba/examples/cleanbar/pics/rightend.png differ diff --git a/superkaramba/examples/cleanbar/pics/rightend_new.png b/superkaramba/examples/cleanbar/pics/rightend_new.png new file mode 100644 index 0000000..45adc7b Binary files /dev/null and b/superkaramba/examples/cleanbar/pics/rightend_new.png differ diff --git a/superkaramba/examples/cleanbar/pics/slickbar.png b/superkaramba/examples/cleanbar/pics/slickbar.png new file mode 100644 index 0000000..57f0830 Binary files /dev/null and b/superkaramba/examples/cleanbar/pics/slickbar.png differ diff --git a/superkaramba/examples/cleanbar/pics/startup.png b/superkaramba/examples/cleanbar/pics/startup.png new file mode 100644 index 0000000..a5a99f1 Binary files /dev/null and b/superkaramba/examples/cleanbar/pics/startup.png differ diff --git a/superkaramba/examples/cleanbar/pics/task.png b/superkaramba/examples/cleanbar/pics/task.png new file mode 100644 index 0000000..f9bc4eb Binary files /dev/null and b/superkaramba/examples/cleanbar/pics/task.png differ diff --git a/superkaramba/examples/cleanbar/pics/task_new.png b/superkaramba/examples/cleanbar/pics/task_new.png new file mode 100644 index 0000000..1ac95c8 Binary files /dev/null and b/superkaramba/examples/cleanbar/pics/task_new.png 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 Binary files a/superkaramba/examples/globalMouse/xcursor.so and /dev/null differ diff --git a/superkaramba/examples/mouseDrag/images/bar.png b/superkaramba/examples/mouseDrag/images/bar.png new file mode 100644 index 0000000..07ae19d Binary files /dev/null and b/superkaramba/examples/mouseDrag/images/bar.png differ diff --git a/superkaramba/examples/mouseDrag/images/bg.png b/superkaramba/examples/mouseDrag/images/bg.png new file mode 100644 index 0000000..6ac12bc Binary files /dev/null and b/superkaramba/examples/mouseDrag/images/bg.png differ diff --git a/superkaramba/examples/mouseDrag/karmix.py b/superkaramba/examples/mouseDrag/karmix.py new file mode 100644 index 0000000..bd167db --- /dev/null +++ b/superkaramba/examples/mouseDrag/karmix.py @@ -0,0 +1,190 @@ +# Karmix 0.1 +# Written by Tian ( http://www.c-sait.net ) +# Functionality moved by Ryan Nickell (p0z3r@mail.com) + +# This theme is demonstrates how to use mouse buttons +# being dragged in a theme. +# It shows how to use it for slider bars, but you can +# also apply this to anything you want like moving images +# and other things programmatically. + +#this import statement allows access to the karamba functions +import karamba + +import ossaudiodev + +mixer = "" +onLeftButton = 0 +onMidButton = 0 +#this is called when you widget is initialized +def initWidget(widget): + global mixer + mixer = ossaudiodev.openmixer() + + vol_main = karamba.getThemeImage(widget, "vol_main") + (l, r) = mixer.get(ossaudiodev.SOUND_MIXER_VOLUME) + vol_main_value = max(l, r) + karamba.resizeImage(widget, vol_main, vol_main_value, 10) + + vol_pcm = karamba.getThemeImage(widget, "vol_pcm") + (l, r) = mixer.get(ossaudiodev.SOUND_MIXER_PCM) + vol_pcm_value = max(l, r) + karamba.resizeImage(widget, vol_pcm, vol_pcm_value, 10) + + vol_cd = karamba.getThemeImage(widget, "vol_cd") + (l, r) = mixer.get(ossaudiodev.SOUND_MIXER_CD) + vol_cd_value = max(l, r) + karamba.resizeImage(widget, vol_cd, vol_cd_value, 10) + + vol_mic = karamba.getThemeImage(widget, "vol_mic") + (l, r) = mixer.get(ossaudiodev.SOUND_MIXER_MIC) + vol_mic_value = max(l, r) + karamba.resizeImage(widget, vol_mic, vol_mic_value, 10) + + karamba.redrawWidget(widget) + +#this is called everytime your widget is updated +#the update inverval is specified in the .theme file +def widgetUpdated(widget): + pass + +#This gets called everytime our widget is clicked. +#Notes: +# widget = reference to our widget +# x = x position (relative to our widget) +# y = y position (relative to our widget) +# botton = button clicked: +# 1 = Left Mouse Button +# 2 = Middle Mouse Button +# 3 = Right Mouse Button, but this will never happen +# because the right mouse button brings up the +# Karamba menu. +# 4,5 = Scroll wheel up and down +def widgetClicked(widget, x, y, button): + pass + +#This gets called everytime our widget is clicked. +#Notes +# widget = reference to our widget +# x = x position (relative to our widget) +# y = y position (relative to our widget) +# botton = button being held: +# 0 = No Mouse Button +# 1 = Left Mouse Button +# 2 = Middle Mouse Button +# 3 = Right Mouse Button, but this will never happen +# because the right mouse button brings up the +# Karamba menu. +def widgetMouseMoved(widget, x, y, button): + global onMidButton,onLeftButton + global mixer + if(button == 1 and onLeftButton == 0): + # We are holding the left button here + if ((y>=17) and (y<=28)): + vol_main = karamba.getThemeImage(widget, "vol_main") + vol_main_value = max(min(x-40,100),0) + karamba.resizeImage(widget, vol_main, vol_main_value, 10) + mixer.set(ossaudiodev.SOUND_MIXER_VOLUME, (vol_main_value, vol_main_value)) + karamba.redrawWidget(widget) + + if ((y>=47) and (y<=58)): + vol_pcm = karamba.getThemeImage(widget, "vol_pcm") + vol_pcm_value = max(min(x-40,100),0) + karamba.resizeImage(widget, vol_pcm, vol_pcm_value, 10) + mixer.set(ossaudiodev.SOUND_MIXER_PCM, (vol_pcm_value, vol_pcm_value)) + karamba.redrawWidget(widget) + + if ((y>=77) and (y<=88)): + vol_cd = karamba.getThemeImage(widget, "vol_cd") + vol_cd_value = max(min(x-40,100),0) + karamba.resizeImage(widget, vol_cd, vol_cd_value, 10) + mixer.set(ossaudiodev.SOUND_MIXER_CD, (vol_cd_value, vol_cd_value)) + karamba.redrawWidget(widget) + + if ((y>=107) and (y<=118)): + vol_mic = karamba.getThemeImage(widget, "vol_mic") + vol_mic_value = max(min(x-40,100),0) + karamba.resizeImage(widget, vol_mic, vol_mic_value, 10) + mixer.set(ossaudiodev.SOUND_MIXER_MIC, (vol_mic_value, vol_mic_value)) + karamba.redrawWidget(widget) + + if(button == 2 and onMidButton == 0): + # We are holding the middle button here + pass + +#This gets called when an item is clicked in a popup menu you have created. +# menu = a reference to the menu +# id = the number of the item that was clicked. +def menuItemClicked(widget, menu, id): + pass + +#This gets called when an item is clicked in the theme CONFIGURATION menu, +#not the popup menus that you create. +# key = the reference to the configuration key that was changed +# value = the new value (true or false) that was selected +def menuOptionChanged(widget, key, value): + pass + +#This gets called when a meter (image, text, etc) is clicked. +# NOTE you must use attachClickArea() to make a meter +# clickable. +# widget = reference to your theme +# meter = the meter clicked +# button = the button clicked (see widgetClicked for button numbers) +def meterClicked(widget, meter, button): + pass + +#This gets called when a command you have executed with executeInteractive() outputs something +#to stdout. This way you can get the output of for example kdialog without freezing up the widget +#waiting for kdialog to end. +# widget = reference to your theme +# pid = process number of the program outputting (use this if you execute more than out process) +# output = the text the program outputted to stdout +def commandOutput(widget, pid, output): + pass + +#This gets called when an item is dropped on this widget. +# NOTE you have to call acceptDrops() before your widget will accept drops. +# widget = reference to your theme +# dropText = the text of the dropped item (probably a URL to it's location in KDE) +def itemDropped(widget, dropText): + pass + + +#This gets called when a new program is LOADING in KDE. When it is done +#loading, startupRemoved() is called, followed by taskAdded(). +# widget = reference to your widget +# task = A refence to the task that is starting. +def startupAdded(widget, startup): + pass + +#This gets called when a new program is done LOADING in KDE. +# widget = reference to your widget +# task = A refence to the task that just finished loading. +def startupRemoved(widget, startup): + pass + +#This is called every time a new task (program) is started in KDE. +# widget = reference to your widget +# task = A refence to the new task. Call getTaskInfo() with this reference +# to get the name, etc of this new task. +def taskAdded(widget, task): + pass + +#This is called everytime a task (program) is closed in KDE. +# widget = reference to your widget +# task = A refence to the task. +def taskRemoved(widget, task): + pass + +#This is called everytime a different task gains focus (IE, the user clicks +#on a different window). +# widget = reference to your widget +# task = A refence to the task. Call getTaskInfo() with this reference +# to get the name, etc of this new task. +def activeTaskChanged(widget, task): + pass + +# This will be printed when the widget loads. +print("Loaded my python extension!") + diff --git a/superkaramba/examples/mouseDrag/karmix.theme b/superkaramba/examples/mouseDrag/karmix.theme new file mode 100644 index 0000000..3844663 --- /dev/null +++ b/superkaramba/examples/mouseDrag/karmix.theme @@ -0,0 +1,17 @@ +# Karmix 0.1 +# Written by Tian ( http://www.c-sait.net ) + +karamba x=0 y=0 w=160 h=139 locked=true +image x=0 y=0 path="images/bg.png" + +text x=10 y=15 value="Vol" color=252,252,252 fontsize=12 font="sans" +image x=40 y=17 path="images/bar.png" name="vol_main" + +text x=10 y=45 value="Pcm" color=252,252,252 fontsize=12 font="sans" +image x=40 y=47 path="images/bar.png" name="vol_pcm" + +text x=10 y=75 value="CD" color=252,252,252 fontsize=12 font="sans" +image x=40 y=77 path="images/bar.png" name="vol_cd" + +text x=10 y=105 value="Mic" color=252,252,252 fontsize=12 font="sans" +image x=40 y=107 path="images/bar.png" name="vol_mic" diff --git a/superkaramba/examples/mouseDrag/karmix/images/bar.png b/superkaramba/examples/mouseDrag/karmix/images/bar.png deleted file mode 100644 index 07ae19d..0000000 Binary files a/superkaramba/examples/mouseDrag/karmix/images/bar.png and /dev/null differ diff --git a/superkaramba/examples/mouseDrag/karmix/images/bg.png b/superkaramba/examples/mouseDrag/karmix/images/bg.png deleted file mode 100644 index 6ac12bc..0000000 Binary files a/superkaramba/examples/mouseDrag/karmix/images/bg.png and /dev/null differ diff --git a/superkaramba/examples/mouseDrag/karmix/karmix.py b/superkaramba/examples/mouseDrag/karmix/karmix.py deleted file mode 100644 index bd167db..0000000 --- a/superkaramba/examples/mouseDrag/karmix/karmix.py +++ /dev/null @@ -1,190 +0,0 @@ -# Karmix 0.1 -# Written by Tian ( http://www.c-sait.net ) -# Functionality moved by Ryan Nickell (p0z3r@mail.com) - -# This theme is demonstrates how to use mouse buttons -# being dragged in a theme. -# It shows how to use it for slider bars, but you can -# also apply this to anything you want like moving images -# and other things programmatically. - -#this import statement allows access to the karamba functions -import karamba - -import ossaudiodev - -mixer = "" -onLeftButton = 0 -onMidButton = 0 -#this is called when you widget is initialized -def initWidget(widget): - global mixer - mixer = ossaudiodev.openmixer() - - vol_main = karamba.getThemeImage(widget, "vol_main") - (l, r) = mixer.get(ossaudiodev.SOUND_MIXER_VOLUME) - vol_main_value = max(l, r) - karamba.resizeImage(widget, vol_main, vol_main_value, 10) - - vol_pcm = karamba.getThemeImage(widget, "vol_pcm") - (l, r) = mixer.get(ossaudiodev.SOUND_MIXER_PCM) - vol_pcm_value = max(l, r) - karamba.resizeImage(widget, vol_pcm, vol_pcm_value, 10) - - vol_cd = karamba.getThemeImage(widget, "vol_cd") - (l, r) = mixer.get(ossaudiodev.SOUND_MIXER_CD) - vol_cd_value = max(l, r) - karamba.resizeImage(widget, vol_cd, vol_cd_value, 10) - - vol_mic = karamba.getThemeImage(widget, "vol_mic") - (l, r) = mixer.get(ossaudiodev.SOUND_MIXER_MIC) - vol_mic_value = max(l, r) - karamba.resizeImage(widget, vol_mic, vol_mic_value, 10) - - karamba.redrawWidget(widget) - -#this is called everytime your widget is updated -#the update inverval is specified in the .theme file -def widgetUpdated(widget): - pass - -#This gets called everytime our widget is clicked. -#Notes: -# widget = reference to our widget -# x = x position (relative to our widget) -# y = y position (relative to our widget) -# botton = button clicked: -# 1 = Left Mouse Button -# 2 = Middle Mouse Button -# 3 = Right Mouse Button, but this will never happen -# because the right mouse button brings up the -# Karamba menu. -# 4,5 = Scroll wheel up and down -def widgetClicked(widget, x, y, button): - pass - -#This gets called everytime our widget is clicked. -#Notes -# widget = reference to our widget -# x = x position (relative to our widget) -# y = y position (relative to our widget) -# botton = button being held: -# 0 = No Mouse Button -# 1 = Left Mouse Button -# 2 = Middle Mouse Button -# 3 = Right Mouse Button, but this will never happen -# because the right mouse button brings up the -# Karamba menu. -def widgetMouseMoved(widget, x, y, button): - global onMidButton,onLeftButton - global mixer - if(button == 1 and onLeftButton == 0): - # We are holding the left button here - if ((y>=17) and (y<=28)): - vol_main = karamba.getThemeImage(widget, "vol_main") - vol_main_value = max(min(x-40,100),0) - karamba.resizeImage(widget, vol_main, vol_main_value, 10) - mixer.set(ossaudiodev.SOUND_MIXER_VOLUME, (vol_main_value, vol_main_value)) - karamba.redrawWidget(widget) - - if ((y>=47) and (y<=58)): - vol_pcm = karamba.getThemeImage(widget, "vol_pcm") - vol_pcm_value = max(min(x-40,100),0) - karamba.resizeImage(widget, vol_pcm, vol_pcm_value, 10) - mixer.set(ossaudiodev.SOUND_MIXER_PCM, (vol_pcm_value, vol_pcm_value)) - karamba.redrawWidget(widget) - - if ((y>=77) and (y<=88)): - vol_cd = karamba.getThemeImage(widget, "vol_cd") - vol_cd_value = max(min(x-40,100),0) - karamba.resizeImage(widget, vol_cd, vol_cd_value, 10) - mixer.set(ossaudiodev.SOUND_MIXER_CD, (vol_cd_value, vol_cd_value)) - karamba.redrawWidget(widget) - - if ((y>=107) and (y<=118)): - vol_mic = karamba.getThemeImage(widget, "vol_mic") - vol_mic_value = max(min(x-40,100),0) - karamba.resizeImage(widget, vol_mic, vol_mic_value, 10) - mixer.set(ossaudiodev.SOUND_MIXER_MIC, (vol_mic_value, vol_mic_value)) - karamba.redrawWidget(widget) - - if(button == 2 and onMidButton == 0): - # We are holding the middle button here - pass - -#This gets called when an item is clicked in a popup menu you have created. -# menu = a reference to the menu -# id = the number of the item that was clicked. -def menuItemClicked(widget, menu, id): - pass - -#This gets called when an item is clicked in the theme CONFIGURATION menu, -#not the popup menus that you create. -# key = the reference to the configuration key that was changed -# value = the new value (true or false) that was selected -def menuOptionChanged(widget, key, value): - pass - -#This gets called when a meter (image, text, etc) is clicked. -# NOTE you must use attachClickArea() to make a meter -# clickable. -# widget = reference to your theme -# meter = the meter clicked -# button = the button clicked (see widgetClicked for button numbers) -def meterClicked(widget, meter, button): - pass - -#This gets called when a command you have executed with executeInteractive() outputs something -#to stdout. This way you can get the output of for example kdialog without freezing up the widget -#waiting for kdialog to end. -# widget = reference to your theme -# pid = process number of the program outputting (use this if you execute more than out process) -# output = the text the program outputted to stdout -def commandOutput(widget, pid, output): - pass - -#This gets called when an item is dropped on this widget. -# NOTE you have to call acceptDrops() before your widget will accept drops. -# widget = reference to your theme -# dropText = the text of the dropped item (probably a URL to it's location in KDE) -def itemDropped(widget, dropText): - pass - - -#This gets called when a new program is LOADING in KDE. When it is done -#loading, startupRemoved() is called, followed by taskAdded(). -# widget = reference to your widget -# task = A refence to the task that is starting. -def startupAdded(widget, startup): - pass - -#This gets called when a new program is done LOADING in KDE. -# widget = reference to your widget -# task = A refence to the task that just finished loading. -def startupRemoved(widget, startup): - pass - -#This is called every time a new task (program) is started in KDE. -# widget = reference to your widget -# task = A refence to the new task. Call getTaskInfo() with this reference -# to get the name, etc of this new task. -def taskAdded(widget, task): - pass - -#This is called everytime a task (program) is closed in KDE. -# widget = reference to your widget -# task = A refence to the task. -def taskRemoved(widget, task): - pass - -#This is called everytime a different task gains focus (IE, the user clicks -#on a different window). -# widget = reference to your widget -# task = A refence to the task. Call getTaskInfo() with this reference -# to get the name, etc of this new task. -def activeTaskChanged(widget, task): - pass - -# This will be printed when the widget loads. -print("Loaded my python extension!") - diff --git a/superkaramba/examples/mouseDrag/karmix/karmix.theme b/superkaramba/examples/mouseDrag/karmix/karmix.theme deleted file mode 100644 index 3844663..0000000 --- a/superkaramba/examples/mouseDrag/karmix/karmix.theme +++ /dev/null @@ -1,17 +0,0 @@ -# Karmix 0.1 -# Written by Tian ( http://www.c-sait.net ) - -karamba x=0 y=0 w=160 h=139 locked=true -image x=0 y=0 path="images/bg.png" - -text x=10 y=15 value="Vol" color=252,252,252 fontsize=12 font="sans" -image x=40 y=17 path="images/bar.png" name="vol_main" - -text x=10 y=45 value="Pcm" color=252,252,252 fontsize=12 font="sans" -image x=40 y=47 path="images/bar.png" name="vol_pcm" - -text x=10 y=75 value="CD" color=252,252,252 fontsize=12 font="sans" -image x=40 y=77 path="images/bar.png" name="vol_cd" - -text x=10 y=105 value="Mic" color=252,252,252 fontsize=12 font="sans" -image x=40 y=107 path="images/bar.png" name="vol_mic" diff --git a/superkaramba/examples/taskBar/cleanbar/README b/superkaramba/examples/taskBar/cleanbar/README deleted file mode 100644 index 2c6b146..0000000 --- a/superkaramba/examples/taskBar/cleanbar/README +++ /dev/null @@ -1,25 +0,0 @@ -Cleanbar for SuperKaramba, version 0.4 -Written by Adam Geitgey -Released under the GNU General Public License version 2 - - -Cleanbar requires SuperKaramba 0.31 or higher!! - - -Cleanbar is a simple taskbar, xmms control, and clock. Cleanbar is quick, -simple, and appealing. - -The Launch button brings up the TDE Menu. The play control buttons will control -XMMS (xmmsctrl is required). A clock is shown on the right. Tasks show up -along the middle and the taskbar works just like any other taskbar from the -last 10 years. - -I created this basically as a quick example of how to use the new -event-based task control API in SuperKaramba 0.31. - -It also demonstrates how to create themes that work at any resolution. You -should not have to change anything for this to work on your desktop. - -Please report any major problems you have. - -Thanks. diff --git a/superkaramba/examples/taskBar/cleanbar/cleanbar.py b/superkaramba/examples/taskBar/cleanbar/cleanbar.py deleted file mode 100644 index 16bd18f..0000000 --- a/superkaramba/examples/taskBar/cleanbar/cleanbar.py +++ /dev/null @@ -1,263 +0,0 @@ -#this import statement allows access to the karamba functions -import karamba -import os -import time - -###################################### -## Globals -###################################### - -init = 0 -numOfTasks = 0 - -## Default res -## You don't need to change it. It should auto-detect. -resX = 1024 -resY = 768 - -# list of tasks -taskList = [] - -# focused task -activeTask = 0 - -## Task display stuff -taskPanels = [] -taskText = [] -taskMenu = 0 -taskMenuLookup = {} -timeText = 0 - -## My code to detect resolution -havexwi = os.system("which xwininfo") - -if (havexwi == 0): - pass -else: - print("\nCan't find xwininfo in your path.") - -fp = os.popen("xwininfo -root -stats") -output = fp.read() -output = output.splitlines() -i = 0 -for x in output: - param = x.split() - if (len(param) > 1): - if param[0].find("Width:") != -1: - resX = int(param[1]) - if param[0].find("Height:") != -1: - resY = int(param[1]) - - -def drawTaskbar(widget): - global taskPanels - global taskText - global numOfTasks - - taskList = karamba.getTaskList(widget) - - for image in taskPanels: - karamba.hideImage(widget, image) - - for text in taskText: - karamba.changeText(widget, text, "") - karamba.changeTextShadow(widget, text, 0) - karamba.changeTextColor(widget,text,0,0,0) - - length = len(taskList) - if (numOfTasks < length): - length = numOfTasks - - - knownGroups = {} - groups = [] - groupRefs = {} - - activeGroup = 0 - groupCount = 0 - - #build groups list that contains sub-lists of taskInfo sorted by group - for j in range(len(taskList)): - taskinfo = karamba.getTaskInfo(widget, taskList[j]) - - if (taskinfo[2] in knownGroups) == 0: - groupCount = groupCount + 1 - if (taskinfo[7] == 1): - activeGroup = groupCount - knownGroups[taskinfo[2]] = 1 - thisGroup = [] - thisGroup.append(taskinfo) - groupRefs[taskinfo[2]] = len(groups) - groups.append(thisGroup) - else: - if (taskinfo[7] == 1): - activeGroup = groupRefs[taskinfo[2]] + 1 - knownGroups[taskinfo[2]] = knownGroups[taskinfo[2]] + 1 - thisGroup = groups[groupRefs[taskinfo[2]]] - thisGroup.append(taskinfo) - - #fill out the task bar - j = 0 - for group in groups: - #safety check (could be more task groups than bar is long) - if (j < length): - karamba.showImage(widget, taskPanels[j]) - if len(group) != 1: - karamba.changeText(widget, taskText[j], group[0][2].decode('utf-8') + ' [' + str(len(group)) + ']') - else: - karamba.changeText(widget, taskText[j], group[0][0].decode('utf-8')) - j = j + 1 - - if (activeGroup != 0): - karamba.changeTextShadow(widget, taskText[activeGroup - 1], 1) - karamba.changeTextColor(widget, taskText[activeGroup - 1], 239, 220, 11) - - karamba.moveWidget(widget, 0, resY - 32) - karamba.resizeWidget(widget, resX, resY) - karamba.redrawWidget(widget) - -#this is called when your widget is initialized -def initWidget(widget): - global resX - global numOfTasks - global taskPanels - global taskText - global timeText - - karamba.createImage(widget, resX - 149, 0, "pics/rightend_new.png") - numOfTasks = (resX - 198 - 149) // 121 - - timeText = karamba.createText(widget, resX - 149 + 54, 10, 140, 20, "time") - karamba.changeTextColor(widget, timeText, 0,0,0) - karamba.changeTextSize(widget, timeText, 9) - - for i in range(numOfTasks): - taskPanels.append(karamba.createImage(widget, 198 + (121*i), 3, "pics/task_new.png")) - taskText.append(karamba.createText(widget, 198 + (121*i) +9, 9, 100, 20, "")) - - for text in taskText: - karamba.changeTextSize(widget,text,9) - - drawTaskbar(widget) - -# called to indicate that a new task is currently started -def startupAdded(widget, startup): - pass - -# called whenever a startup is removed. Which either means the task is -# successfully started (and taskAdded will be called), or the task could -# not be started for some reason. -def startupRemoved(widget, startup): - pass - -# called whenever a new task has been started -def taskAdded(widget, task): - drawTaskbar(widget) - -# called whenever a task is removed -def taskRemoved(widget, task): - drawTaskbar(widget) - -# called whenever a new task has gained focus. -# task = the active task -def activeTaskChanged(widget, task): - drawTaskbar(widget) - -#this is called everytime your widget is updated -#the update inverval is specified in the .theme file -def widgetUpdated(widget): - global timeText - - karamba.changeText(widget, timeText, time.strftime("%I:%M %p %a",time.localtime(time.time()))) - karamba.redrawWidget(widget) - - -#This gets called everytime our widget is clicked. -#Notes: -# widget = reference to our widget -# x = x position (relative to our widget) -# y = y position (relative to our widget) -# botton = button clicked: -# 1 = Left Mouse Button -# 2 = Middle Mouse Button -# 3 = Right Mouse Button, but this will never happen -# because the right mouse button brings up the -# Karamba menu. -# 4,5 = Scroll wheel up and down -def widgetClicked(widget, x, y, button): - global numOfTasks - global taskMenu - global taskMenuLookup - - taskSelected = (x-198) // 121 - - ## Make sure its a valid task - if (0 <= taskSelected < numOfTasks): - taskList = karamba.getTaskList(widget) - - #free last menu - karamba.deleteMenu(widget, taskMenu) - - #create new menu - taskMenu = karamba.createMenu(widget) - taskMenuLoopup = {} - - length = len(taskList) - if (numOfTasks < length): - length = numOfTasks - - - knownGroups = {} - groups = [] - groupRefs = {} - for j in range(len(taskList)): - taskinfo = karamba.getTaskInfo(widget, taskList[j]) - - if (taskinfo[2] in knownGroups) == 0: - knownGroups[taskinfo[2]] = 1 - thisGroup = [] - thisGroup.append(taskinfo) - groupRefs[taskinfo[2]] = len(groups) - groups.append(thisGroup) - else: - knownGroups[taskinfo[2]] = knownGroups[taskinfo[2]] + 1 - thisGroup = groups[groupRefs[taskinfo[2]]] - thisGroup.append(taskinfo) - - if taskSelected < len(groups): - taskGroup = groups[taskSelected] - - if len(taskGroup) == 1: - #only one task in group - just switch to that app - ## perform the task action (see Task API for list of numbers) - karamba.performTaskAction(widget, taskGroup[0][8], 8) - else: - #more than one task in this group, make a popup - for task in taskGroup: - #if it's minimized, put []'s around name - if task[5] == 1: - item = karamba.addMenuItem(widget, taskMenu, "[ " + task[0].decode('utf-8') + " ]", task[2].decode('utf-8')) - else: - item = karamba.addMenuItem(widget, taskMenu, task[0].decode('utf-8'), task[2].decode('utf-8')) - #save the taskInfo item for later use - #so we will know info for the task that - #will be clicked in the callback - taskMenuLookup[item] = task - - numOfItems = len(taskGroup) - karamba.popupMenu(widget, taskMenu, 198 + (121*taskSelected), -1 * (numOfItems * 26)) - - if (taskSelected == numOfTasks): - karamba.toggleShowDesktop(widget) - - -#This gets called when an item is clicked in a popup menu you have created. -# menu = a reference to the menu -# id = the number of the item that was clicked. -def menuItemClicked(widget, menu, id): - global taskMenuLookup - - taskinfo = taskMenuLookup[id] - karamba.performTaskAction(widget, taskinfo[8], 8) - - diff --git a/superkaramba/examples/taskBar/cleanbar/cleanbar.theme b/superkaramba/examples/taskBar/cleanbar/cleanbar.theme deleted file mode 100644 index 0dc6faa..0000000 --- a/superkaramba/examples/taskBar/cleanbar/cleanbar.theme +++ /dev/null @@ -1,14 +0,0 @@ -KARAMBA X=0 Y=0 W=1600 H=31 LOCKED=true ONTOP=TRUE BOTTOMBAR=true INTERVAL=20000 - -IMAGE X=0 Y=0 PATH="pics/bar2.png" - -#TDE Menu -CLICKAREA X=4 Y=6 W=64 H=25 ONCLICK="dcop kicker kicker popupKMenu 0" - -#XMMS controls -CLICKAREA X=96 Y=6 W=15 H=23 ONCLICK="xmmsctrl prev" -CLICKAREA X=121 Y=6 W=10 H=23 ONCLICK="xmmsctrl play" -CLICKAREA X=140 Y=6 W=12 H=23 ONCLICK="xmmsctrl pause" -CLICKAREA X=159 Y=6 W=12 H=23 ONCLICK="xmmsctrl stop" -CLICKAREA X=180 Y=6 W=12 H=23 ONCLICK="xmmsctrl next" - diff --git a/superkaramba/examples/taskBar/cleanbar/pics/bar2.png b/superkaramba/examples/taskBar/cleanbar/pics/bar2.png deleted file mode 100644 index aa1c4f5..0000000 Binary files a/superkaramba/examples/taskBar/cleanbar/pics/bar2.png and /dev/null differ diff --git a/superkaramba/examples/taskBar/cleanbar/pics/rightend.png b/superkaramba/examples/taskBar/cleanbar/pics/rightend.png deleted file mode 100644 index 7f852bf..0000000 Binary files a/superkaramba/examples/taskBar/cleanbar/pics/rightend.png and /dev/null differ diff --git a/superkaramba/examples/taskBar/cleanbar/pics/rightend_new.png b/superkaramba/examples/taskBar/cleanbar/pics/rightend_new.png deleted file mode 100644 index 45adc7b..0000000 Binary files a/superkaramba/examples/taskBar/cleanbar/pics/rightend_new.png and /dev/null differ diff --git a/superkaramba/examples/taskBar/cleanbar/pics/slickbar.png b/superkaramba/examples/taskBar/cleanbar/pics/slickbar.png deleted file mode 100644 index 57f0830..0000000 Binary files a/superkaramba/examples/taskBar/cleanbar/pics/slickbar.png and /dev/null differ diff --git a/superkaramba/examples/taskBar/cleanbar/pics/startup.png b/superkaramba/examples/taskBar/cleanbar/pics/startup.png deleted file mode 100644 index a5a99f1..0000000 Binary files a/superkaramba/examples/taskBar/cleanbar/pics/startup.png and /dev/null differ diff --git a/superkaramba/examples/taskBar/cleanbar/pics/task.png b/superkaramba/examples/taskBar/cleanbar/pics/task.png deleted file mode 100644 index f9bc4eb..0000000 Binary files a/superkaramba/examples/taskBar/cleanbar/pics/task.png and /dev/null differ diff --git a/superkaramba/examples/taskBar/cleanbar/pics/task_new.png b/superkaramba/examples/taskBar/cleanbar/pics/task_new.png deleted file mode 100644 index 1ac95c8..0000000 Binary files a/superkaramba/examples/taskBar/cleanbar/pics/task_new.png and /dev/null differ 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 -- cgit v1.2.3