25 #if defined(_XOPEN_SOURCE) && !defined(__SUNPRO_CC)
33 #include "../karamba.h"
34 #include "../meters/meter.h"
40 long moveSystray(
long widget,
long x,
long y,
long w,
long h)
46 currTheme->
systemTray()->setMinimumSize((
int)w, (
int)h);
58 static bool firstMessage =
false;
61 kWarning() <<
"Call to \"moveSystray\" not available in this version of SuperKaramba" ;
68 long widget, x, y, w, h;
69 if (!PyArg_ParseTuple(args, (
char*)
"lllll:moveSystray", &widget, &x, &y, &w, &h))
73 return Py_BuildValue((
char*)
"l", moveSystray(widget, x, y, w, h));
79 long showSystray(
long widget)
94 static bool firstMessage =
false;
97 kWarning() <<
"Call to \"moveSystray\" not available in this version of SuperKaramba" ;
105 if (!PyArg_ParseTuple(args, (
char*)
"l:showSystray", &widget))
109 return Py_BuildValue((
char*)
"l", showSystray(widget));
115 long hideSystray(
long widget)
130 static bool firstMessage =
false;
133 kWarning() <<
"Call to \"moveSystray\" not available in this version of SuperKaramba" ;
141 if (!PyArg_ParseTuple(args, (
char*)
"l:hideSystray", &widget))
145 return Py_BuildValue((
char*)
"l", hideSystray(widget));
151 long createSystray(
long widget,
long x,
long y,
long w,
long h)
158 currTheme->
systemTray()->move((
int)x, (
int)y);
159 currTheme->
systemTray()->setMinimumSize((
int)w, (
int)h);
161 QObject::connect(currTheme->
systemTray(), SIGNAL(updated()),
162 currTheme, SLOT(systrayUpdated()));
174 static bool firstMessage =
false;
177 kWarning() <<
"Call to \"moveSystray\" not available in this version of SuperKaramba" ;
184 long widget, x, y, w, h;
185 if (!PyArg_ParseTuple(args, (
char*)
"lllll:createSystray", &widget, &x, &y, &w, &h))
189 return Py_BuildValue((
char*)
"l", createSystray(widget, x, y, w, h));
195 long getCurrentWindowCount(
long widget)
213 static bool firstMessage =
false;
216 kWarning() <<
"Call to \"moveSystray\" not available in this version of SuperKaramba" ;
224 if (!PyArg_ParseTuple(args, (
char*)
"l:getCurrentWindowCount", &widget))
228 return Py_BuildValue((
char*)
"l", getCurrentWindowCount(widget));
234 long updateSystrayLayout(
long widget)
249 static bool firstMessage =
false;
252 kWarning() <<
"Call to \"moveSystray\" not available in this version of SuperKaramba" ;
260 if (!PyArg_ParseTuple(args, (
char*)
"l:updateSystrayLayout", &widget))
264 return Py_BuildValue((
char*)
"l", updateSystrayLayout(widget));
270 int getSystraySize(
long widget)
286 static bool firstMessage =
false;
289 kWarning() <<
"Call to \"moveSystray\" not available in this version of SuperKaramba" ;
298 if (!PyArg_ParseTuple(args,
"l:getSystraySize", &widget))
301 return Py_BuildValue(
"l", getSystraySize(widget));
PyObject * py_create_systray(PyObject *, PyObject *args)
Systray/createSystray.
PyObject * py_get_current_window_count(PyObject *, PyObject *args)
Systray/getCurrentWindowCount.
bool checkKaramba(long widget)
PyObject * py_hide_systray(PyObject *, PyObject *args)
Systray/hideSystray.
int getCurrentWindowCount()
PyObject * py_get_systray_size(PyObject *, PyObject *args)
Systemtray * systemTray()
PyObject * py_move_systray(PyObject *, PyObject *args)
Systray/moveSystray.
PyObject * py_update_systray_layout(PyObject *, PyObject *args)
Systray/updateSystrayLayout.
PyObject * py_show_systray(PyObject *, PyObject *args)
Systray/showSystray.