10.12.2010 - light modifies in headers

This commit is contained in:
peri4
2010-12-10 23:42:53 +03:00
parent 480eb64f62
commit 8926fe2f69
8 changed files with 14 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
#include "piconsole.h"
PIConsole::PIConsole(bool startNow, KeyFunc slot): PIThread() {
PIConsole::PIConsole(bool startNow, KBFunc slot): PIThread() {
setPriority(piLow);
needLockRun(true);
ret_func = slot;
@@ -110,7 +110,7 @@ bool PIConsole::setTabBindKey(PIString name, char bind_key) {
}
void PIConsole::key_event(void * t, char key) {
void PIConsole::key_event(char key, void * t) {
PIConsole * p = (PIConsole * )t;
for (uint i = 0; i < p->tabsCount(); ++i) {
if (p->tabs[i].key == key) {
@@ -118,7 +118,7 @@ void PIConsole::key_event(void * t, char key) {
return;
}
}
if (p->ret_func != 0) p->ret_func(t, key);
if (p->ret_func != 0) p->ret_func(key, t);
}