Commit graph

104 commits

Author SHA1 Message Date
mathieui
c93aafa8f5 fixes #2148, #2156, #2155 2011-05-04 22:05:02 +02:00
Florent Le Coz
d913e71513 Refresh optimization on chatstates 2011-04-18 03:34:51 +02:00
Florent Le Coz
3aa6e891a5 Add some more debug and optimze the general refresh again 2011-04-18 03:07:28 +02:00
Florent Le Coz
78d8d3e74b Great roster refresh optimization 2011-04-18 02:27:46 +02:00
Florent Le Coz
da76355af0 Remove the paused timed event when we send the message 2011-04-17 15:49:38 +02:00
Florent Le Coz
f509c3ee22 idem etc 2011-04-17 00:49:49 +02:00
Florent Le Coz
bf2bd33bd3 Idem 2011-04-16 22:55:30 +02:00
Florent Le Coz
1c4867b180 Fix some refresh issues 2011-04-16 22:03:11 +02:00
Florent Le Coz
3711c258a8 Optimize refresh by doing only when strictly required and on the concerned part of the screen.
Also remove the \n at the end of /info when status message is empty
2011-04-16 21:46:07 +02:00
Florent Le Coz
8167f9d3a4 Fix a typo that made the ban messages not appear at all 2011-04-16 01:19:53 +02:00
Florent Le Coz
01509b463b Fix the *args of timed events 2011-04-10 04:08:33 +02:00
Florent Le Coz
a6c56682b7 Implement paused chate state. fixed #2124 2011-04-10 03:52:46 +02:00
Florent Le Coz
f4c138e444 Save the last presence. Fix #2133 2011-04-05 05:27:52 +02:00
Florent Le Coz
5aa5a25b8a Fix that again 2011-04-04 02:31:46 +02:00
Florent Le Coz
22832b339b Fix colors of reason in a kick message 2011-04-04 02:29:35 +02:00
Florent Le Coz
92e63829a6 Finish colors support with xhtml (clean the elinks dump, handle the input etc) 2011-03-30 04:34:45 +02:00
Florent Le Coz
51cebe7bdc Remove the xhtml-im that was inserted for debug, add the start of a method to enter attributes in Inputs, convert \n to <br /> in xhtml_im bodies and put that body in a <p> element 2011-03-29 21:07:53 +02:00
Florent Le Coz
ba02b51554 Convert html markup received in xhtml_im elements to poezio colors
and use that as the body
2011-03-29 20:36:02 +02:00
Florent Le Coz
a799e5c16f Fix some colors, again... 2011-03-29 16:43:33 +02:00
Florent Le Coz
8108b703a8 Fix the color in join message 2011-03-29 14:48:27 +02:00
Florent Le Coz
c2cb61da06 Cleanup some code not used anymore 2011-03-29 14:15:02 +02:00
Florent Le Coz
dcd29c636f Change how colors are handled. With \x19x etc
Should work like before and be a little lighter on the RA
2011-03-29 12:44:19 +02:00
Florent Le Coz
1916eedcde 2011-03-21 21:25:51 +01:00
Florent Le Coz
3ad429f00b Hix a crash on last word completion 2011-03-21 21:24:39 +01:00
Florent Le Coz
8ab4af1082 Send chatstate composing if we are starting our message with // 2011-03-11 01:18:35 +01:00
Florent Le Coz
e835bd2d20 Fix the search (the enter key opens the conversation BEFORE restoring the roster list) 2011-03-10 05:11:12 +01:00
Florent Le Coz
769b6ec33b little fixes and (very little) optimization 2011-03-09 05:27:10 +01:00
Florent Le Coz
a516e78bcf Some optimizations in build_new_message. Also cleaned up. Added an optimized way to do "wcswidth(string) > n": wcsislonger. And should use less memory because the dict replacing Message and Lines object stores ONLY the needed attributes. 2011-03-09 04:56:53 +01:00
Florent Le Coz
1a2252b3e5 Have a single TextWin in common for each tab, reducing the needed memory, and simplifying its resize (F7 and F8 stuff) 2011-03-08 04:20:46 +01:00
Florent Le Coz
8f48c5ede7 Inputs are garbage collected, making MucListTab collectable.
Memory improvement issues.
2011-03-07 21:41:13 +01:00
Florent Le Coz
a769babf0a Typo 2011-03-07 20:58:12 +01:00
Florent Le Coz
b6a5ed7286 very little cleanup 2011-03-07 20:11:47 +01:00
Florent Le Coz
83fbf8dae1 Move a lot of muc-only-related stuff insid the MucTab class
instead of core.
May break some stuff, maybe
2011-03-05 22:39:35 +01:00
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