1 /* coded by Ketmar // Vampire Avalon (psyc://ketmar.no-ip.org/~Ketmar)
2 * Understanding is not required. Only obedience.
4 * This program is free software. It comes without any warranty, to
5 * the extent permitted by applicable law. You can redistribute it
6 * and/or modify it under the terms of the Do What The Fuck You Want
7 * To Public License, Version 2, as published by Sam Hocevar. See
8 * http://sam.zoy.org/wtfpl/COPYING for more details.
10 #ifndef ENG_BINDINGS_H
11 #define ENG_BINDINGS_H
13 #include <QContextMenuEvent>
14 #include <QDesktopServices>
19 #include <QNetworkAccessManager>
20 #include <QNetworkReply>
21 #include <QNetworkRequest>
25 #include <QSystemTrayIcon>
28 #include <QWidgetAction>
34 ///////////////////////////////////////////////////////////////////////////////
35 class EngineBindings
: public QObject
{
39 EngineBindings (ChatForm
*aChat
);
42 bool dispatchBinding (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
43 bool defaultBinding (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
46 void binding_editor_activate (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
47 void binding_clist_activate (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
48 void binding_chat_activate (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
50 void binding_chat_send (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
51 void binding_edit_clear (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
53 void binding_window_minimize (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
54 void binding_window_hide (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
56 void binding_edit_select_all (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
57 void binding_edit_cut (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
58 void binding_edit_copy (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
59 void binding_edit_paste (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
60 void binding_edit_undo (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
61 void binding_edit_redo (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
63 void binding_edit_move_home (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
64 void binding_edit_move_end (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
65 void binding_edit_move_top (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
66 void binding_edit_move_bottom (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
67 void binding_edit_move_left (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
68 void binding_edit_move_right (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
69 void binding_edit_move_up (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
70 void binding_edit_move_down (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
71 void binding_edit_move_word_left (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
72 void binding_edit_move_word_right (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
74 void binding_edit_recode_text (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
76 void binding_edit_insert_new_line (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
77 void binding_edit_insert_smile_oo (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
78 void binding_edit_insert_smile_oo_weird (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
79 void binding_edit_insert_desu (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
81 void binding_edit_autocomplete (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
83 void binding_chat_close (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
84 void binding_chat_quote (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
86 void binding_go_to_unread (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
87 void binding_set_status_text (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
89 void binding_activate_menu_status (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
90 void binding_activate_menu_main (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
92 void binding_action_quit (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
93 void binding_action_edit_account (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
94 void binding_action_join_place (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
95 void binding_action_send_raw_packet (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
96 void binding_action_show_packet_console (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
98 /* rewrite! make one function to set status by number/name! */
99 void binding_action_status_offline (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
100 void binding_action_status_vacation (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
101 void binding_action_status_away (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
102 void binding_action_status_dnd (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
103 void binding_action_status_nearby (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
104 void binding_action_status_busy (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
105 void binding_action_status_here (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
106 void binding_action_status_ffc (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);
107 void binding_action_status_realtime (const QString
&cmd
, const QString
&combo
, const QString
&ctext
);