|
|
|
@ -227,7 +227,7 @@ void KBConfigDlg::setupShortcutsPage()
|
|
|
|
|
void KBConfigDlg::showConfig(){
|
|
|
|
|
int i;
|
|
|
|
|
KBGroup *group;
|
|
|
|
|
TDEConfig *conf = kapp->config();
|
|
|
|
|
TDEConfig *conf = tdeApp->config();
|
|
|
|
|
|
|
|
|
|
m_iconpaths.clear();
|
|
|
|
|
conf->setGroup(ICONS_SECTION);
|
|
|
|
@ -259,7 +259,7 @@ void KBConfigDlg::slotPickIcon(){
|
|
|
|
|
TQString path = dlg.getIconPath();
|
|
|
|
|
KBGroup *group = m_kbconf->getGroup(index);
|
|
|
|
|
if (!path.isEmpty() && path != group->getIconPath()) {
|
|
|
|
|
kapp->config()->writeEntry(group->getName()/*KBConfig::entryForGroup(index)*/, path);
|
|
|
|
|
tdeApp->config()->writeEntry(group->getName()/*KBConfig::entryForGroup(index)*/, path);
|
|
|
|
|
redrawIcons(KBConfig::IconStyle(cbxIconType->currentItem()));
|
|
|
|
|
checkIconDefault(index);
|
|
|
|
|
}
|
|
|
|
@ -303,7 +303,7 @@ void KBConfigDlg::slotListBoxExecuted(TQListBoxItem *){
|
|
|
|
|
void KBConfigDlg::saveConfig(){
|
|
|
|
|
TQString path;
|
|
|
|
|
const TQPixmap *pix;
|
|
|
|
|
TDEConfig *conf = kapp->config();
|
|
|
|
|
TDEConfig *conf = tdeApp->config();
|
|
|
|
|
conf->setGroup(ICONS_SECTION);
|
|
|
|
|
for (int i = 0; i < m_kbconf->groupCount(); i++) {
|
|
|
|
|
path = m_iconpaths[i];
|
|
|
|
@ -364,7 +364,7 @@ void KBConfigDlg::redrawIcons(KBConfig::IconStyle icon_style)
|
|
|
|
|
|
|
|
|
|
void KBConfigDlg::slotCancel()
|
|
|
|
|
{
|
|
|
|
|
TDEConfig *config = kapp->config();
|
|
|
|
|
TDEConfig *config = tdeApp->config();
|
|
|
|
|
config->rollback();
|
|
|
|
|
config->reparseConfiguration();
|
|
|
|
|
KDialogBase::slotCancel();
|
|
|
|
@ -382,8 +382,8 @@ void KBConfigDlg::slotUseShortcutsToggled(bool on)
|
|
|
|
|
void KBConfigDlg::slotSetDefaultIcon()
|
|
|
|
|
{
|
|
|
|
|
int index = lbGroups->currentItem();
|
|
|
|
|
kapp->config()->setGroup(ICONS_SECTION);
|
|
|
|
|
kapp->config()->deleteEntry(m_kbconf->getGroup(index)->getName()/*KBConfig::entryForGroup(index)*/);
|
|
|
|
|
tdeApp->config()->setGroup(ICONS_SECTION);
|
|
|
|
|
tdeApp->config()->deleteEntry(m_kbconf->getGroup(index)->getName()/*KBConfig::entryForGroup(index)*/);
|
|
|
|
|
redrawIcons(KBConfig::IconStyle(cbxIconType->currentItem()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -393,7 +393,7 @@ void KBConfigDlg::slotSetDefaultIcon()
|
|
|
|
|
*/
|
|
|
|
|
void KBConfigDlg::checkIconDefault(int index)
|
|
|
|
|
{
|
|
|
|
|
TDEConfig *conf = kapp->config();
|
|
|
|
|
TDEConfig *conf = tdeApp->config();
|
|
|
|
|
if (index == -1 || ! iconTypeShowsFlag(KBConfig::IconStyle(cbxIconType->currentItem()))) {
|
|
|
|
|
btnSetDefaultIcon->setEnabled(false);
|
|
|
|
|
}
|
|
|
|
|