|
|
|
|
@ -54,7 +54,7 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
|
|
|
|
|
TQWidget(0,"karamba", TQt::WGroupLeader | WStyle_Customize |
|
|
|
|
|
WRepaintNoErase| WStyle_NoBorder | WDestructiveClose ),
|
|
|
|
|
meterList(0), imageList(0), clickList(0), kpop(0), widgetMask(0),
|
|
|
|
|
config(0), kWinModule(0), tempUnit('C'), m_instance(instance),
|
|
|
|
|
config(0), tWinModule(0), tempUnit('C'), m_instance(instance),
|
|
|
|
|
sensorList(0), timeList(0),
|
|
|
|
|
themeConfMenu(0), toDesktopMenu(0), kglobal(0), clickPos(0, 0), accColl(0),
|
|
|
|
|
menuAccColl(0), toggleLocked(0), pythonIface(0), defaultTextField(0),
|
|
|
|
|
@ -139,10 +139,10 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
|
|
|
|
|
info = new NETWinInfo( tqt_xdisplay(), winId(), tqt_xrootwin(), NET::WMState );
|
|
|
|
|
|
|
|
|
|
// could be replaced with TaskManager
|
|
|
|
|
kWinModule = new KWinModule();
|
|
|
|
|
tWinModule = new TWinModule();
|
|
|
|
|
desktop = 0;
|
|
|
|
|
|
|
|
|
|
connect( kWinModule,TQ_SIGNAL(currentDesktopChanged(int)), this,
|
|
|
|
|
connect( tWinModule,TQ_SIGNAL(currentDesktopChanged(int)), this,
|
|
|
|
|
TQ_SLOT(currentDesktopChanged(int)) );
|
|
|
|
|
connect( tdeApp, TQ_SIGNAL(backgroundChanged(int)), this,
|
|
|
|
|
TQ_SLOT(currentWallpaperChanged(int)));
|
|
|
|
|
@ -175,7 +175,7 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
|
|
|
|
|
dslot->setMenuId(mid);
|
|
|
|
|
|
|
|
|
|
toDesktopMenu -> insertSeparator();
|
|
|
|
|
for (int ndesktop=1; ndesktop <= kWinModule->numberOfDesktops(); ndesktop++)
|
|
|
|
|
for (int ndesktop=1; ndesktop <= tWinModule->numberOfDesktops(); ndesktop++)
|
|
|
|
|
{
|
|
|
|
|
TQString name = i18n("Desktop &");
|
|
|
|
|
name += ('0' + ndesktop);
|
|
|
|
|
@ -284,7 +284,7 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
desktop = config -> readNumEntry("desktop", desktop);
|
|
|
|
|
if (desktop > kWinModule->numberOfDesktops())
|
|
|
|
|
if (desktop > tWinModule->numberOfDesktops())
|
|
|
|
|
{
|
|
|
|
|
desktop = 0;
|
|
|
|
|
}
|
|
|
|
|
@ -365,7 +365,7 @@ karamba::~karamba()
|
|
|
|
|
delete themeConfMenu;
|
|
|
|
|
delete kpop;
|
|
|
|
|
delete widgetMask;
|
|
|
|
|
delete kWinModule;
|
|
|
|
|
delete tWinModule;
|
|
|
|
|
delete defaultTextField;
|
|
|
|
|
if (pythonIface != NULL)
|
|
|
|
|
delete pythonIface;
|
|
|
|
|
|