summaryrefslogtreecommitdiffstats
path: root/ksirc/puke/commands-handler.pl
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /ksirc/puke/commands-handler.pl
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/puke/commands-handler.pl')
-rw-r--r--ksirc/puke/commands-handler.pl61
1 files changed, 61 insertions, 0 deletions
diff --git a/ksirc/puke/commands-handler.pl b/ksirc/puke/commands-handler.pl
new file mode 100644
index 00000000..191353cf
--- /dev/null
+++ b/ksirc/puke/commands-handler.pl
@@ -0,0 +1,61 @@
+sub puke_invalid_cmd {
+ print "*E* Puke: Invalid command 0 ack'ed\n";
+ #
+ # Stop waiting, things are messed up
+ #
+ $wait = 0;
+}
+$PUKE_DEF_HANDLER{"$PUKE_INVALID"} = \&puke_invalid_cmd;
+
+
+#sub puke_widget_create_ack {
+# my %ARG = %{$_[0]};
+#
+# $ARG{cArg} =~ /^(.{8,8})/;
+# my $string = $1;
+#
+# if($PUKE_CREATOR{$string}){
+# &{$PUKE_CREATOR{$string}}(%ARG); # added %ARG
+# }
+# else {
+# print "*E* Widget created: $string but no handler\n";
+# }
+#}
+
+#$PUKE_DEF_HANDLER{"$PUKE_WIDGET_CREATE_ACK"} = \&puke_widget_create_ack;
+#$PUKE_DEF_HANDLER{"$PUKE_LAYOUT_NEW_ACK"} = \&puke_widget_create_ack;
+
+
+# By default we ignore all the EVENT's we get sent at us.
+
+$PUKE_DEF_HANDLER{"$PUKE_WIDGET_EVENT_NONE"} = sub {};
+$PUKE_DEF_HANDLER{"$PUKE_WIDGET_EVENT_TIME"} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_MOUSEBUTTONPRESS} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_MOUSEBUTTONRELEASE} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_MOUSEDBLCLICK} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_MOUSEMOVE} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_KEYPRESS} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_KEYRELEASE} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_KEYPRESS} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_FOCUSIN} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_FOCUSOUT} = sub {};
+$PUKE_DEF_HANDLER{"$PUKE_WIDGET_EVENT_ENTER"} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_LEAVE} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_PAINT} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_MOVE} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_RESIZE} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_CREATE} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_DESTORY} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_SHOW} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_HIDE} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_CLOSE} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_EVENT_TIMER} = sub {};
+
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_RESIZE_ACK} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_REPAINT_ACK} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_MOVE_ACK} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_SHOW_ACK} = sub {};
+$PUKE_DEF_HANDLER{$PUKE_WIDGET_HIDE_ACK} = sub {};
+
+$PUKE_DEF_HANDLER{$PUKE_LINED_SET_TEXT_ACK} = sub {};
+1;