Module message_window :: Class MessageWindow
[hide private]
[frames] | no frames]

Class MessageWindow

source code


Class for windows which contain message like things; chats, groupchats, etc
Instance Methods [hide private]
 
__init__(self, acct, type_, parent_window=None, parent_paned=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
change_account_name(self, old_name, new_name) source code
 
change_jid(self, account, old_jid, new_jid)
Called when the full jid of the control is changed
source code
 
get_num_controls(self) source code
 
resize(self, width, height) source code
 
_on_window_focus(self, widget, event) source code
 
_on_window_delete(self, win, event) source code
 
_on_window_destroy(self, win) source code
 
new_tab(self, control) source code
 
on_tab_eventbox_button_press_event(self, widget, event, child) source code
 
_on_message_textview_mykeypress_event(self, widget, event_keyval, event_keymod) source code
 
accel_group_func(self, accel_group, acceleratable, keyval, modifier) source code
 
_on_close_button_clicked(self, button, control)
When close button is pressed: close a tab
source code
 
show_icon(self) source code
 
show_title(self, urgent=True, control=None)
Redraw the window's title
source code
 
set_active_tab(self, ctrl) source code
 
remove_tab(self, ctrl, method, reason=None, force=False)
Reason is only for gc (offline status message) if force is True, do not ask any confirmation
source code
 
check_tabs(self) source code
 
redraw_tab(self, ctrl, chatstate=None) source code
 
repaint_themed_widgets(self)
Repaint controls in the window with theme color
source code
 
_widget_to_control(self, widget) source code
 
get_active_control(self) source code
 
get_active_contact(self) source code
 
get_active_jid(self) source code
 
is_active(self) source code
 
get_origin(self) source code
 
get_control(self, key, acct)
Return the MessageControl for jid or n, where n is a notebook page index.
source code
 
has_control(self, jid, acct) source code
 
change_key(self, old_jid, new_jid, acct)
Change the JID key of a control
source code
 
controls(self) source code
 
get_nb_controls(self) source code
 
move_to_next_unread_tab(self, forward) source code
 
popup_menu(self, event) source code
 
_on_notebook_switch_page(self, notebook, page, page_num) source code
 
_on_notebook_key_press(self, widget, event) source code
 
get_tab_at_xy(self, x, y)
Return the tab under xy and if its nearer from left or right side of the tab
source code
 
find_page_num_according_to_tab_label(self, tab_label)
Find the page num of the tab label
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  DND_TARGETS = [('GAJIM_TAB', 0, 81)]
  hid = 0
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, acct, type_, parent_window=None, parent_paned=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

change_account_name(self, old_name, new_name)

source code 

change_jid(self, account, old_jid, new_jid)

source code 
Called when the full jid of the control is changed

get_num_controls(self)

source code 

resize(self, width, height)

source code 

_on_window_focus(self, widget, event)

source code 

_on_window_delete(self, win, event)

source code 

_on_window_destroy(self, win)

source code 

new_tab(self, control)

source code 

on_tab_eventbox_button_press_event(self, widget, event, child)

source code 

_on_message_textview_mykeypress_event(self, widget, event_keyval, event_keymod)

source code 

accel_group_func(self, accel_group, acceleratable, keyval, modifier)

source code 

_on_close_button_clicked(self, button, control)

source code 
When close button is pressed: close a tab

show_icon(self)

source code 

show_title(self, urgent=True, control=None)

source code 
Redraw the window's title

set_active_tab(self, ctrl)

source code 

remove_tab(self, ctrl, method, reason=None, force=False)

source code 
Reason is only for gc (offline status message) if force is True, do not ask any confirmation

check_tabs(self)

source code 

redraw_tab(self, ctrl, chatstate=None)

source code 

repaint_themed_widgets(self)

source code 
Repaint controls in the window with theme color

_widget_to_control(self, widget)

source code 

get_active_control(self)

source code 

get_active_contact(self)

source code 

get_active_jid(self)

source code 

is_active(self)

source code 

get_origin(self)

source code 

get_control(self, key, acct)

source code 
Return the MessageControl for jid or n, where n is a notebook page index. When key is an int index acct may be None

has_control(self, jid, acct)

source code 

change_key(self, old_jid, new_jid, acct)

source code 
Change the JID key of a control

controls(self)

source code 

get_nb_controls(self)

source code 

move_to_next_unread_tab(self, forward)

source code 

popup_menu(self, event)

source code 

_on_notebook_switch_page(self, notebook, page, page_num)

source code 

_on_notebook_key_press(self, widget, event)

source code 

get_tab_at_xy(self, x, y)

source code 
Return the tab under xy and if its nearer from left or right side of the tab

find_page_num_according_to_tab_label(self, tab_label)

source code 
Find the page num of the tab label

Class Variable Details [hide private]

DND_TARGETS

Value:
[('GAJIM_TAB', 0, 81)]

hid

Value:
0