otr: removed TLV parsing code (i still has to fix SMP queries in callback)
[dyskinesia.git] / src / eng_bindings.h
blob88173b92ac5e8598ed25d7f924f0f7b7c800b617
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.
9 */
10 #ifndef ENG_BINDINGS_H
11 #define ENG_BINDINGS_H
13 #include <QContextMenuEvent>
14 #include <QDesktopServices>
15 #include <QHash>
16 #include <QLabel>
17 #include <QList>
18 #include <QMap>
19 #include <QNetworkAccessManager>
20 #include <QNetworkReply>
21 #include <QNetworkRequest>
22 #include <QSet>
23 #include <QShortcut>
24 #include <QString>
25 #include <QSystemTrayIcon>
26 #include <QWebFrame>
27 #include <QWidget>
28 #include <QWidgetAction>
30 #include "chatform.h"
31 #include "keycmb.h"
34 ///////////////////////////////////////////////////////////////////////////////
35 class EngineBindings : public QObject {
36 Q_OBJECT
38 public:
39 EngineBindings (ChatForm *aChat);
40 ~EngineBindings ();
42 bool dispatchBinding (const QString &cmd, const QString &combo, const QString &ctext);
43 bool defaultBinding (const QString &cmd, const QString &combo, const QString &ctext);
45 private slots:
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);
109 private:
110 ChatForm *mChat;
114 #endif