Source Code (Use browser search to find items of interest.)
Class Index
kdevelop'KGuiCmdCategoryActivator (./kdevelop/kdevelop/kwrite/kguicommand.h:207)
class KGuiCmdCategoryActivator : public QObject {
Q_OBJECT
friend KGuiCmdCategory;
friend KGuiCmdActivator;
friend KGuiCmdDispatcher;
public:
KGuiCmdCategoryActivator(KGuiCmdCategory *);
~KGuiCmdCategoryActivator() {}
void matchKey(int keyCode, int modifiers, KGuiCmdMatch &match);
signals:
void activated(int cmdNum);
protected:
void addCommand(KGuiCmdActivator *a) {commandList.append(a);}
KGuiCmdActivator *getCommand(int cmdNum);
QList<KGuiCmdActivator> commandList;
KGuiCmdCategory *category;
};
/** This is the gui command dispatcher. It installs an event filter to the
host to get all key events. This should exist once per instance (in
other words once per main window)
*/
kdevelop'KGuiCmdCategoryActivator::KGuiCmdCategoryActivator() (./kdevelop/kdevelop/kwrite/kguicommand.cpp:764)
KGuiCmdCategoryActivator::KGuiCmdCategoryActivator(KGuiCmdCategory *category)
: category(category) {
commandList.setAutoDelete(true);
category->getCommands(this);
}
kdevelop'KGuiCmdCategoryActivator::matchKey() (./kdevelop/kdevelop/kwrite/kguicommand.cpp:771)
void KGuiCmdCategoryActivator::matchKey(int keyCode, int modifiers, KGuiCmdMatch &match) {
int z;
for (z = 0; z < (int) commandList.count(); z++) {
commandList.at(z)->matchKey(keyCode, modifiers, match);
}
}
kdevelop'KGuiCmdCategoryActivator::getCommand() (./kdevelop/kdevelop/kwrite/kguicommand.cpp:779)
KGuiCmdActivator *KGuiCmdCategoryActivator::getCommand(int cmdNum) {
int z;
KGuiCmdActivator *command;
for (z = 0; z < (int) commandList.count(); z++) {
command = commandList.at(z);
if (command->command->cmdNum == cmdNum) return command;
}
return 0L;
}