Commit graph

121 commits

Author SHA1 Message Date
Florent Le Coz
fb40ac54fc Kind of big cleanup.
Core and Connection classes are now used as singletons, we do not need to pass them to each Tab and Win. This remove a lot of arguments to varius methods.
2011-03-05 21:42:56 +01:00
Florent Le Coz
5a90c70568 Send chatstates to MUC only if the room is joined 2011-02-26 14:19:15 +01:00
Florent Le Coz
001a20c91a Display chatstates in the user list in MucTabs 2011-02-24 21:56:16 +01:00
Florent Le Coz
cccbad13d5 end and handle chatstates in privateconversations 2011-02-24 21:39:49 +01:00
Florent Le Coz
e4b96eb752 Send chat states in muc and private conversations.
Also, do not send active/inactive states if we switch tab
while we are composing a message
2011-02-24 21:03:30 +01:00
Florent Le Coz
1d94e80da7 Send active/inactive if we are focused on the tab or not. And send
"gone" when we close the tab
2011-02-24 20:50:21 +01:00
Florent Le Coz
3084a9cff7 Do not send chat states if send_chat_states = false in config 2011-02-24 20:41:52 +01:00
Florent Le Coz
d0b1349cf4 Better handle the 'not composing, just typing a command',
the user cannot trick the system by doing (e.g), "w, ←, /, ENTER"
2011-02-24 20:27:53 +01:00
Florent Le Coz
6f87306a7e Do not send the composing chatstate if we are typing a command 2011-02-24 20:13:45 +01:00
Florent Le Coz
138b17cdb3 In normal conversations: Send composing and active chat states
and display the state of the remote contact
2011-02-24 20:02:18 +01:00
Florent Le Coz
2f864c9fc1 Re-add the /configure command 2011-02-17 19:00:40 +01:00
Florent Le Coz
8aede04f5b Fix the info_win of the InfoTab (anon mode) 2011-02-16 02:54:02 +01:00
Florent Le Coz
adf5a977a9 Remove ^J from the shortcuts triggering the Enter event, because
we’ll use it to add a (real) \n into the input’s text.
Also remove "\n" because it’s useless
2011-02-15 20:49:54 +01:00
Florent Le Coz
7103a102bb Ctrl+up and down go to the next/previous group in the roster 2011-02-15 20:34:50 +01:00
Florent Le Coz
690d449560 PgUp and PgDown scroll one page in the roster
M-u, M-y Moves to the next/previous roster group
2011-02-15 17:24:35 +01:00
Florent Le Coz
68f784e5c2 Make the resize faster by resizing each tab
only at its next refresh
2011-02-15 15:20:34 +01:00
Florent Le Coz
4b31e5acf1 Make the number of lines and messages kept in memory configurable
and lower (a lot) the number of lines kept in the info_win buffers
This lower the memory usage.
2011-02-14 14:54:26 +01:00
Florent Le Coz
3e550f4ae7 Properly remove the info_win from the list of the
global information_buffer to make it Garbage Collected
when we close the tab
2011-02-14 14:37:36 +01:00
Florent Le Coz
ac99467965 Make the tab collectable by remove self references when closing
them.
2011-02-13 22:28:35 +01:00
Florent Le Coz
ad7e9b749d /win completion and fix the return values of other completions 2011-02-10 16:08:17 +01:00
Florent Le Coz
e7418bb867 /unignore completion 2011-02-10 12:54:51 +01:00
Florent Le Coz
bd1733355b Topic completion 2011-02-10 12:49:11 +01:00
Florent Le Coz
3dbb6590d3 Make the shell split do a normal split if the syntax is wrong 2011-02-10 12:39:15 +01:00
Florent Le Coz
5da23e07d1 euh ok 2011-02-02 01:39:57 +01:00
Florent Le Coz
b737c09c4e Disable /configure while it's broken with sleekxmpp 2011-02-02 01:39:05 +01:00
mathieui
01f3409505 fixed #2115 2011-02-02 00:51:34 +01:00
Florent Le Coz
89f337a457 Avoid crash if info_win_size is over the window height. fixed #2114 2011-01-31 15:15:16 +01:00
Florent Le Coz
7c531eeec1 Fix on_user_join issue, and displays the jid if available on /info 2011-01-21 19:39:41 +01:00
Florent Le Coz
d8f92a67e4 Avoid traceback when configuration is forbidden… 2011-01-21 04:54:01 +01:00
Florent Le Coz
1b995e4bf0 Data form support.
supported yet:
text-single, text-private, list-single, boolean

The interface is really ugly, but, well, it works
2011-01-21 04:46:21 +01:00
Florent Le Coz
33c69df12b /info command (to see user's affiliation, role, etc) 2011-01-17 16:25:15 +01:00
Florent Le Coz
086cc82e1e /close command closes MucListTab 2011-01-13 00:25:43 +01:00
Florent Le Coz
7b5407b7b7 Correctly refresh the screen on ^G on roster commands 2011-01-12 21:27:43 +01:00
Florent Le Coz
7a9b9edee8 Fix // 2011-01-12 21:08:17 +01:00
Florent Le Coz
28b2dbcc84 Fix InfoTab 2011-01-12 20:18:34 +01:00
Florent Le Coz
ce1fc18e10 Log messages from normal and private conversations as well 2011-01-12 18:34:04 +01:00
Florent Le Coz
22ad96e7aa Clean up the on_enter methods. fixed #2101 2011-01-12 17:19:14 +01:00
Florent Le Coz
7f6957b906 Avoid various crashes by denying the resize AND the refresh on too small size 2011-01-12 16:45:40 +01:00
Florent Le Coz
fce9a60f9a Fix M-b and M-f, fixed #2102 2011-01-12 07:13:02 +01:00
Florent Le Coz
469bbd2900 /add and /remove commands, yay 2011-01-12 06:49:33 +01:00
Florent Le Coz
e016305c2b And fix the on_enter again (for commands) 2011-01-11 19:56:40 +01:00
Florent Le Coz
a8630190fd Avoid traceback on Enter in ChatTabs 2011-01-11 19:50:47 +01:00
Florent Le Coz
749933fc16 /accept and /deny commands
User can now decide to accept or deny a subscription, in
the roster
2011-01-11 06:43:31 +01:00
Florent Le Coz
6bb94cdf0b Displays the subscription and Ask states in the roster 2011-01-11 03:41:06 +01:00
Florent Le Coz
5d4b0a9e2b Move the Contact Window in the left part of the roster tab 2011-01-11 02:49:43 +01:00
Florent Le Coz
63d2b8f06f Avoid traceback on text_win refresh 2011-01-10 18:59:34 +01:00
Florent Le Coz
97ee65fcb8 use fast search by default (s), and possibly use slow search (S) 2011-01-10 18:54:21 +01:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
02a805679c remove the separator when it is at the bottom (unles the user maid M-v) 2011-01-09 02:23:04 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
073972a5c0 ask for NO history message when using /cycle 2011-01-04 03:36:04 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
81e71fee30 use the argument of /cycle as the part message 2011-01-04 03:08:44 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
ea7fe6bb96 /cycle command 2011-01-04 03:05:49 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
1135716518 fix /list with new SleekXMPP xep_0030 version. Also add some error handling and a '(loading)' information while waiting for the answer 2011-01-02 15:50:01 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
15f7340661 fixed #1901 Alt-U and Alt-Y scrolls the participant-list in MUCs 2011-01-01 15:37:35 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
d712d2e1c9 update copyright date 2011-01-01 13:27:07 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
94f44a5254 show_inactive_tabs lets the other chose if she wants to display ALL tabs or just those with activity 2011-01-01 13:17:54 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
61245f40eb fix InfoTab, fixed #2087 2010-12-31 13:05:06 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
b815cbf055 fix some stuff, maybe 2010-12-31 11:23:56 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
3b2d28e6ee remote nickname is colored in ConversationTab 2010-12-31 10:52:15 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
cdb8128d32 fixed #1988 Traceback handler 2010-12-26 20:51:14 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
ac3e0f7099 datetime.strftime seems (according to cProfile) to be VERY slow. Improve the refresh performances by reducing A LOT the number of call of this method 2010-12-21 05:43:57 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
e07f631609 fix the Enter key on roster search 2010-12-17 18:58:07 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
23aa5542b2 fixed #2037 2010-12-15 21:21:33 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
7401c8ba57 do not complete our own nickname. fixed #2061 2010-12-15 19:32:51 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
289f5e65b8 fixed #2058 2010-12-15 17:26:34 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
c38cb65080 fix print_scroll_position for private and conversation tabs 2010-12-15 17:15:46 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
883c0ec812 fix the /recolor command 2010-12-15 17:05:52 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
ff24960b6a fix the ---- that I just broke 2010-12-15 16:10:53 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
0db8bf7d46 HUGE performance improvement on refresh. fixed #1855 2010-12-15 15:40:43 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
24d6894b64 enter in MucListTab does like 'j' 2010-12-07 19:45:08 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
190fc0a1f7 fix 'j' on MucListTab when row number 0 is selected 2010-12-07 19:37:30 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
d837ce2381 /list command, can join the room with J (cannot sort, search or filter yet, and lacks some information) 2010-12-07 16:20:30 +00:00
Renamed from src/tab.py (Browse further)