|
|
@ -102,18 +102,18 @@ void KBConfig::load(TDEConfig *config){
|
|
|
|
m_keys->insert(TQString::fromLatin1("SetGroup %1").arg(i),
|
|
|
|
m_keys->insert(TQString::fromLatin1("SetGroup %1").arg(i),
|
|
|
|
i18n("Activate %1 keyboard layout").arg(m_groups[i]->getName()),
|
|
|
|
i18n("Activate %1 keyboard layout").arg(m_groups[i]->getName()),
|
|
|
|
TQString::null, TQt::ALT+TQt::CTRL+TQt::Key_1 + i, KKey::QtWIN+TQt::CTRL+TQt::Key_1 + i,
|
|
|
|
TQString::null, TQt::ALT+TQt::CTRL+TQt::Key_1 + i, KKey::QtWIN+TQt::CTRL+TQt::Key_1 + i,
|
|
|
|
kapp, TQ_SLOT(slotGroupSelected(int)));
|
|
|
|
tdeApp, TQ_SLOT(slotGroupSelected(int)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m_keys->insert("NextGroup", i18n("Cycle keyboard layouts"),
|
|
|
|
m_keys->insert("NextGroup", i18n("Cycle keyboard layouts"),
|
|
|
|
i18n("Activates the next keyboard layout or, if the current layout is the last one, "
|
|
|
|
i18n("Activates the next keyboard layout or, if the current layout is the last one, "
|
|
|
|
"activates the first layout."),
|
|
|
|
"activates the first layout."),
|
|
|
|
TQt::SHIFT+TQt::CTRL+TQt::Key_Plus, TQt::SHIFT+TQt::CTRL+TQt::Key_Plus,
|
|
|
|
TQt::SHIFT+TQt::CTRL+TQt::Key_Plus, TQt::SHIFT+TQt::CTRL+TQt::Key_Plus,
|
|
|
|
kapp, TQ_SLOT(slotSelectNextGroup()));
|
|
|
|
tdeApp, TQ_SLOT(slotSelectNextGroup()));
|
|
|
|
m_keys->insert("PrevGroup", i18n("Cycle keyboard layouts (reverse)"),
|
|
|
|
m_keys->insert("PrevGroup", i18n("Cycle keyboard layouts (reverse)"),
|
|
|
|
i18n("Activates the previous keyboard layout or, if the current layout is the first one, "
|
|
|
|
i18n("Activates the previous keyboard layout or, if the current layout is the first one, "
|
|
|
|
"activates the last layout."),
|
|
|
|
"activates the last layout."),
|
|
|
|
TQt::SHIFT+TQt::CTRL+TQt::Key_Minus, TQt::SHIFT+TQt::CTRL+TQt::Key_Minus,
|
|
|
|
TQt::SHIFT+TQt::CTRL+TQt::Key_Minus, TQt::SHIFT+TQt::CTRL+TQt::Key_Minus,
|
|
|
|
kapp, TQ_SLOT(slotSelectPrevGroup()));
|
|
|
|
tdeApp, TQ_SLOT(slotSelectPrevGroup()));
|
|
|
|
m_keys->readSettings(config);
|
|
|
|
m_keys->readSettings(config);
|
|
|
|
checkKeysEnabled();
|
|
|
|
checkKeysEnabled();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -139,7 +139,7 @@ void KBConfig::drawIcons(IconStyle icon_style, TQValueVector<TQPixmap> *icons,
|
|
|
|
|
|
|
|
|
|
|
|
TDEGlobal::dirs()->addResourceDir("appdata", ".");
|
|
|
|
TDEGlobal::dirs()->addResourceDir("appdata", ".");
|
|
|
|
TDEConfig map("group_names", true, true, "appdata");
|
|
|
|
TDEConfig map("group_names", true, true, "appdata");
|
|
|
|
TDEConfig *config = kapp->config();
|
|
|
|
TDEConfig *config = tdeApp->config();
|
|
|
|
config->setGroup(ICONS_SECTION);
|
|
|
|
config->setGroup(ICONS_SECTION);
|
|
|
|
getXkbLayouts(layouts);
|
|
|
|
getXkbLayouts(layouts);
|
|
|
|
|
|
|
|
|
|
|
|