25 #ifndef KARAMBA_PYTHON_H 26 #define KARAMBA_PYTHON_H 35 typedef struct _object PyObject;
37 typedef struct _ts PyThreadState;
43 bool pythonThemeExtensionLoaded;
44 PyObject *pName, *pModule;
46 static PyThreadState* mainThreadState;
48 PyObject* getFunc(
const char*
function);
49 bool callObject(
const char* func, PyObject* pArgs);
52 KarambaPython(
const ThemeFile& theme,
bool reloading);
55 static void initPython();
56 static void shutdownPython();
58 bool isExtensionLoaded() {
return pythonThemeExtensionLoaded; };
59 bool initWidget(karamba* k);
60 bool widgetUpdated(karamba* k);
61 bool widgetClosed(karamba* k);
62 bool menuOptionChanged(karamba* k, TQString key,
bool value);
63 bool meterClicked(karamba* k, Meter* meter,
int button);
64 bool meterClicked(karamba* k, TQString anchor,
int button);
65 bool widgetClicked(karamba* k,
int x,
int y,
int button);
66 bool keyPressed(karamba* k,
const Meter* meter,
const TQString& text);
67 bool widgetMouseMoved(karamba* k,
int x,
int y,
int button);
68 bool menuItemClicked(karamba* k, TDEPopupMenu* menu,
long id);
69 bool activeTaskChanged(karamba* k,
Task* t);
70 bool taskAdded(karamba* k,
Task* t);
71 bool taskRemoved(karamba* k,
Task* t);
72 bool startupAdded(karamba* k,
Startup* t);
73 bool startupRemoved(karamba* k,
Startup* t);
74 bool commandOutput(karamba* k,
int pid,
char *buffer);
75 bool commandFinished(karamba* k,
int pid);
76 bool itemDropped(karamba* k, TQString text,
int x,
int y);
77 bool themeNotify(karamba* k,
const char *from,
const char *txt);
78 bool systrayUpdated(karamba* k);
79 bool desktopChanged(karamba* k,
int desktop);
80 bool wallpaperChanged(karamba* k,
int desktop);
83 #endif // KARAMBA_PYTHON_H
Represents a task which is in the process of starting.
A dynamic interface to a task (main window).