From bcb704366cb5e333a626c18c308c7e0448a8e69f Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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 --- ksirc/puke/commands-handler.pl | 61 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 ksirc/puke/commands-handler.pl (limited to 'ksirc/puke/commands-handler.pl') 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; -- cgit v1.2.1