|
|
@ -27,6 +27,7 @@
|
|
|
|
#include <kipc.h>
|
|
|
|
#include <kipc.h>
|
|
|
|
#include <klocale.h>
|
|
|
|
#include <klocale.h>
|
|
|
|
#include <kseparator.h>
|
|
|
|
#include <kseparator.h>
|
|
|
|
|
|
|
|
#include <kglobalsettings.h>
|
|
|
|
#include <dcopclient.h>
|
|
|
|
#include <dcopclient.h>
|
|
|
|
|
|
|
|
|
|
|
|
#include "icons.h"
|
|
|
|
#include "icons.h"
|
|
|
@ -94,6 +95,10 @@ KIconConfig::KIconConfig(TQWidget *parent, const char *name)
|
|
|
|
connect(mpAnimatedCheck, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotAnimatedCheck(bool)));
|
|
|
|
connect(mpAnimatedCheck, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotAnimatedCheck(bool)));
|
|
|
|
grid->addMultiCellWidget(mpAnimatedCheck, 2, 2, 0, 1, Qt::AlignLeft);
|
|
|
|
grid->addMultiCellWidget(mpAnimatedCheck, 2, 2, 0, 1, Qt::AlignLeft);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mpRoundedCheck = new TQCheckBox(i18n("Rounded text selection"), m_pTab1);
|
|
|
|
|
|
|
|
connect(mpRoundedCheck, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotRoundedCheck(bool)));
|
|
|
|
|
|
|
|
grid->addMultiCellWidget(mpRoundedCheck, 3, 3, 0, 1, Qt::AlignLeft);
|
|
|
|
|
|
|
|
|
|
|
|
top->activate();
|
|
|
|
top->activate();
|
|
|
|
|
|
|
|
|
|
|
|
mpSystrayConfig = new KSimpleConfig( TQString::fromLatin1( "systemtray_panelappletrc" ));
|
|
|
|
mpSystrayConfig = new KSimpleConfig( TQString::fromLatin1( "systemtray_panelappletrc" ));
|
|
|
@ -279,6 +284,9 @@ void KIconConfig::read()
|
|
|
|
|
|
|
|
|
|
|
|
mpKickerConfig->setGroup("General");
|
|
|
|
mpKickerConfig->setGroup("General");
|
|
|
|
mQuickLaunchSize = mpKickerConfig->readNumEntry("panelIconWidth", KIcon::SizeLarge);
|
|
|
|
mQuickLaunchSize = mpKickerConfig->readNumEntry("panelIconWidth", KIcon::SizeLarge);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mpConfig->setGroup("KDE");
|
|
|
|
|
|
|
|
mpRoundedCheck.setChecked(config->readBoolEntry("IconsUseRoundedRect", KDE_DEFAULT_ICONTEXTROUNDED));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void KIconConfig::apply()
|
|
|
|
void KIconConfig::apply()
|
|
|
@ -459,6 +467,8 @@ void KIconConfig::save()
|
|
|
|
mpSystrayConfig->writeEntry("systrayIconWidth", mSysTraySize);
|
|
|
|
mpSystrayConfig->writeEntry("systrayIconWidth", mSysTraySize);
|
|
|
|
mpKickerConfig->setGroup("General");
|
|
|
|
mpKickerConfig->setGroup("General");
|
|
|
|
mpKickerConfig->writeEntry("panelIconWidth", mQuickLaunchSize);
|
|
|
|
mpKickerConfig->writeEntry("panelIconWidth", mQuickLaunchSize);
|
|
|
|
|
|
|
|
mpConfig->setGroup("KDE");
|
|
|
|
|
|
|
|
mpConfig->writeEntry("IconsUseRoundedRect", mpRoundedCheck.isChecked());
|
|
|
|
|
|
|
|
|
|
|
|
mpConfig->sync();
|
|
|
|
mpConfig->sync();
|
|
|
|
mpSystrayConfig->sync();
|
|
|
|
mpSystrayConfig->sync();
|
|
|
@ -632,6 +642,11 @@ void KIconConfig::slotAnimatedCheck(bool check)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void KIconConfig::slotRoundedCheck(bool check)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// Do nothing
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KIconEffectSetupDialog::KIconEffectSetupDialog(const Effect &effect,
|
|
|
|
KIconEffectSetupDialog::KIconEffectSetupDialog(const Effect &effect,
|
|
|
|
const Effect &defaultEffect,
|
|
|
|
const Effect &defaultEffect,
|
|
|
|
const TQString &caption, const TQImage &image,
|
|
|
|
const TQString &caption, const TQImage &image,
|
|
|
|