Module conversation_textview :: Class ConversationTextview
[hide private]
[frames] | no frames]

Class ConversationTextview

source code


Class for the conversation textview (where user reads already said messages) for chat/groupchat windows
Instance Methods [hide private]
 
__init__(self, account, used_in_history_window=False)
If used_in_history_window is True, then we do not show Clear menuitem in context menu
source code
 
del_handlers(self) source code
 
update_tags(self) source code
 
at_the_end(self) source code
 
smooth_scroll(self) source code
 
smooth_scroll_timeout(self) source code
 
do_smooth_scroll_timeout(self) source code
 
smooth_scroll_to_end(self) source code
 
scroll_to_end(self) source code
 
bring_scroll_to_end(self, diff_y=0, use_smooth=gajim.config.get('use_smooth_scrolling'))
scrolls to the end of textview if end is not visible
source code
 
scroll_to_end_iter(self) source code
 
stop_scrolling(self) source code
 
show_xep0184_warning(self, id_) source code
 
hide_xep0184_warning(self, id_) source code
 
show_focus_out_line(self) source code
 
show_xep0184_warning_tooltip(self) source code
 
show_line_tooltip(self) source code
 
on_textview_expose_event(self, widget, event) source code
 
on_textview_motion_notify_event(self, widget, event)
Change the cursor to a hand when we are over a mail or an url
source code
 
clear(self, tv=None)
Clear text in the textview
source code
 
visit_url_from_menuitem(self, widget, link)
Basically it filters out the widget instance
source code
 
on_textview_populate_popup(self, textview, menu)
Override the default context menu and we prepend Clear (only if used_in_history_window is False) and if we have sth selected we show a submenu with actions on the phrase (see on_conversation_textview_button_press_event)
source code
 
on_quote(self, widget) source code
 
on_textview_button_press_event(self, widget, event) source code
 
on_open_link_activate(self, widget, kind, text) source code
 
on_copy_link_activate(self, widget, text) source code
 
on_start_chat_activate(self, widget, jid) source code
 
on_join_group_chat_menuitem_activate(self, widget, room_jid) source code
 
on_add_to_roster_activate(self, widget, jid) source code
 
make_link_menu(self, event, kind, text) source code
 
hyperlink_handler(self, texttag, widget, event, iter_, kind) source code
 
html_hyperlink_handler(self, texttag, widget, event, iter_, kind, href) source code
 
detect_and_print_special_text(self, otext, other_tags, graphics=True)
Detect special text (emots & links & formatting), print normal text before any special text it founds, then print special text (that happens many times until last special text is printed) and then return the index after last special text, so we can print it in print_conversation_line()
source code
 
print_special_text(self, special_text, other_tags, graphics=True)
Is called by detect_and_print_special_text and prints special text (emots, links, formatting)
source code
 
print_empty_line(self) source code
 
print_conversation_line(self, text, jid, kind, name, tim, other_tags_for_name=[], other_tags_for_time=[], other_tags_for_text=[], subject=None, old_kind=None, xhtml=None, simple=False, graphics=True, displaymarking=None)
Print 'chat' type messages
source code
 
get_time_to_show(self, tim)
Get the time, with the day before if needed and return it.
source code
 
detect_other_text_tag(self, text, kind) source code
 
print_displaymarking(self, displaymarking) source code
 
print_name(self, name, kind, other_tags_for_name) source code
 
print_subject(self, subject) source code
 
print_real_text(self, text, text_tags=[], name=None, xhtml=None, graphics=True)
Add normal and special text.
source code
Class Variables [hide private]
  __gsignals__ = dict(quote= (gobject.SIGNAL_RUN_LAST | gobject....
  FOCUS_OUT_LINE_PIXBUF = gtkgui_helpers.get_icon_pixmap('gajim-...
  XEP0184_WARNING_PIXBUF = gtkgui_helpers.get_icon_pixmap('gajim...
  MAX_SCROLL_TIME = 0.4
  SCROLL_DELAY = 33
Method Details [hide private]

__init__(self, account, used_in_history_window=False)
(Constructor)

source code 
If used_in_history_window is True, then we do not show Clear menuitem in context menu

del_handlers(self)

source code 

update_tags(self)

source code 

at_the_end(self)

source code 

smooth_scroll(self)

source code 

smooth_scroll_timeout(self)

source code 

do_smooth_scroll_timeout(self)

source code 

smooth_scroll_to_end(self)

source code 

scroll_to_end(self)

source code 

bring_scroll_to_end(self, diff_y=0, use_smooth=gajim.config.get('use_smooth_scrolling'))

source code 
scrolls to the end of textview if end is not visible

scroll_to_end_iter(self)

source code 

stop_scrolling(self)

source code 

show_xep0184_warning(self, id_)

source code 

hide_xep0184_warning(self, id_)

source code 

show_focus_out_line(self)

source code 

show_xep0184_warning_tooltip(self)

source code 

show_line_tooltip(self)

source code 

on_textview_expose_event(self, widget, event)

source code 

on_textview_motion_notify_event(self, widget, event)

source code 
Change the cursor to a hand when we are over a mail or an url

clear(self, tv=None)

source code 
Clear text in the textview

visit_url_from_menuitem(self, widget, link)

source code 
Basically it filters out the widget instance

on_textview_populate_popup(self, textview, menu)

source code 
Override the default context menu and we prepend Clear (only if used_in_history_window is False) and if we have sth selected we show a submenu with actions on the phrase (see on_conversation_textview_button_press_event)

on_quote(self, widget)

source code 

on_textview_button_press_event(self, widget, event)

source code 

on_open_link_activate(self, widget, kind, text)

source code 

on_copy_link_activate(self, widget, text)

source code 

on_start_chat_activate(self, widget, jid)

source code 

on_join_group_chat_menuitem_activate(self, widget, room_jid)

source code 

on_add_to_roster_activate(self, widget, jid)

source code 

make_link_menu(self, event, kind, text)

source code 

hyperlink_handler(self, texttag, widget, event, iter_, kind)

source code 

html_hyperlink_handler(self, texttag, widget, event, iter_, kind, href)

source code 

detect_and_print_special_text(self, otext, other_tags, graphics=True)

source code 
Detect special text (emots & links & formatting), print normal text before any special text it founds, then print special text (that happens many times until last special text is printed) and then return the index after last special text, so we can print it in print_conversation_line()

print_special_text(self, special_text, other_tags, graphics=True)

source code 
Is called by detect_and_print_special_text and prints special text (emots, links, formatting)

print_empty_line(self)

source code 

print_conversation_line(self, text, jid, kind, name, tim, other_tags_for_name=[], other_tags_for_time=[], other_tags_for_text=[], subject=None, old_kind=None, xhtml=None, simple=False, graphics=True, displaymarking=None)

source code 
Print 'chat' type messages

get_time_to_show(self, tim)

source code 
Get the time, with the day before if needed and return it. It DOESN'T format a fuzzy time

detect_other_text_tag(self, text, kind)

source code 

print_displaymarking(self, displaymarking)

source code 

print_name(self, name, kind, other_tags_for_name)

source code 

print_subject(self, subject)

source code 

print_real_text(self, text, text_tags=[], name=None, xhtml=None, graphics=True)

source code 
Add normal and special text. call this to add text

Class Variable Details [hide private]

__gsignals__

Value:
dict(quote= (gobject.SIGNAL_RUN_LAST | gobject.SIGNAL_ACTION, None, (s\
tr,)))

FOCUS_OUT_LINE_PIXBUF

Value:
gtkgui_helpers.get_icon_pixmap('gajim-muc_separator')

XEP0184_WARNING_PIXBUF

Value:
gtkgui_helpers.get_icon_pixmap('gajim-receipt_missing')

MAX_SCROLL_TIME

Value:
0.4

SCROLL_DELAY

Value:
33