Module history_window :: Class HistoryWindow
[hide private]
[frames] | no frames]

Class HistoryWindow

source code

Class for browsing logs of conversations with contacts
Instance Methods [hide private]
 
__init__(self, jid=None, account=None) source code
 
_fill_completion_dict(self)
Fill completion_dict for key auto completion.
source code
 
_get_account_for_jid(self, jid)
Return the corresponding account of the jid.
source code
 
on_history_window_destroy(self, widget) source code
 
on_history_window_key_press_event(self, widget, event) source code
 
on_close_button_clicked(self, widget) source code
 
on_jid_entry_activate(self, widget) source code
 
on_jid_entry_focus(self, widget, event) source code
 
_load_history(self, jid_or_name, account=None)
Load history for the given jid/name and show it
source code
 
on_calendar_day_selected(self, widget) source code
 
on_calendar_month_changed(self, widget)
Ask for days in this month, if they have logs it bolds them (marks them)
source code
 
_get_string_show_from_constant_int(self, show) source code
 
_add_lines_for_date(self, year, month, day)
Add all the lines for given date in textbuffer
source code
 
_add_new_line(self, contact_name, tim, kind, show, message, subject)
Add a new line in textbuffer
source code
 
on_query_entry_activate(self, widget) source code
 
on_query_combobox_changed(self, widget) source code
 
on_results_treeview_row_activated(self, widget, path, column)
A row was double clicked, get date from row, and select it in calendar which results to showing conversation logs for that date
source code
 
_scroll_to_result(self, unix_time)
Scroll to the result using unix_time and highlight line
source code
 
on_log_history_checkbutton_toggled(self, widget) source code
 
open_history(self, jid, account)
Load chat history of the specified jid
source code
 
save_state(self) source code
Method Details [hide private]

__init__(self, jid=None, account=None)
(Constructor)

source code 

_fill_completion_dict(self)

source code 

Fill completion_dict for key auto completion. Then load history for current jid (by calling another function)

Key will be either jid or full_completion_name (contact name or long description like "pm-contact from groupchat....").

{key : (jid, account, nick_name, full_completion_name} This is a generator and does pseudo-threading via idle_add().

_get_account_for_jid(self, jid)

source code 
Return the corresponding account of the jid. May be None if an account could not be found

on_history_window_destroy(self, widget)

source code 

on_history_window_key_press_event(self, widget, event)

source code 

on_close_button_clicked(self, widget)

source code 

on_jid_entry_activate(self, widget)

source code 

on_jid_entry_focus(self, widget, event)

source code 

_load_history(self, jid_or_name, account=None)

source code 
Load history for the given jid/name and show it

on_calendar_day_selected(self, widget)

source code 

on_calendar_month_changed(self, widget)

source code 
Ask for days in this month, if they have logs it bolds them (marks them)

_get_string_show_from_constant_int(self, show)

source code 

_add_lines_for_date(self, year, month, day)

source code 
Add all the lines for given date in textbuffer

_add_new_line(self, contact_name, tim, kind, show, message, subject)

source code 
Add a new line in textbuffer

on_query_entry_activate(self, widget)

source code 

on_query_combobox_changed(self, widget)

source code 

on_results_treeview_row_activated(self, widget, path, column)

source code 
A row was double clicked, get date from row, and select it in calendar which results to showing conversation logs for that date

_scroll_to_result(self, unix_time)

source code 
Scroll to the result using unix_time and highlight line

on_log_history_checkbutton_toggled(self, widget)

source code 

open_history(self, jid, account)

source code 
Load chat history of the specified jid

save_state(self)

source code