pychecker this file and fix also to adhere to coding standards. Travis please have a look at this commit
This commit is contained in:
parent
e9765bc6d8
commit
51cbea4232
|
@ -1,13 +1,5 @@
|
||||||
## message_control.py
|
## message_control.py
|
||||||
##
|
##
|
||||||
## Copyright (C) 2003-2004 Yann Le Boulanger <asterix@lagaule.org>
|
|
||||||
## Vincent Hanquez <tab@snarc.org>
|
|
||||||
## Copyright (C) 2005 Yann Le Boulanger <asterix@lagaule.org>
|
|
||||||
## Vincent Hanquez <tab@snarc.org>
|
|
||||||
## Nikos Kouremenos <nkour@jabber.org>
|
|
||||||
## Dimitur Kirov <dkirov@gmail.com>
|
|
||||||
## Travis Shirk <travis@pobox.com>
|
|
||||||
## Norman Rasmussen <norman@rasmussen.co.za>
|
|
||||||
## Copyright (C) 2006 Travis Shirk <travis@pobox.com>
|
## Copyright (C) 2006 Travis Shirk <travis@pobox.com>
|
||||||
##
|
##
|
||||||
## This program is free software; you can redistribute it and/or modify
|
## This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -75,48 +67,61 @@ class MessageControl:
|
||||||
should return False'''
|
should return False'''
|
||||||
# NOTE: Derived classes MAY implement this
|
# NOTE: Derived classes MAY implement this
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
# NOTE: Derived classes MUST implement this
|
# NOTE: Derived classes MUST implement this
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def notify_on_new_messages(self):
|
def notify_on_new_messages(self):
|
||||||
# NOTE: Derived classes MUST implement this
|
# NOTE: Derived classes MUST implement this
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def repaint_themed_widgets(self, theme):
|
def repaint_themed_widgets(self, theme):
|
||||||
pass # NOTE: Derived classes SHOULD implement this
|
pass # NOTE: Derived classes SHOULD implement this
|
||||||
|
|
||||||
def update_ui(self):
|
def update_ui(self):
|
||||||
pass # NOTE: Derived classes SHOULD implement this
|
pass # NOTE: Derived classes SHOULD implement this
|
||||||
|
|
||||||
def toggle_emoticons(self):
|
def toggle_emoticons(self):
|
||||||
pass # NOTE: Derived classes MAY implement this
|
pass # NOTE: Derived classes MAY implement this
|
||||||
|
|
||||||
def update_font(self):
|
def update_font(self):
|
||||||
pass # NOTE: Derived classes SHOULD implement this
|
pass # NOTE: Derived classes SHOULD implement this
|
||||||
|
|
||||||
def update_tags(self):
|
def update_tags(self):
|
||||||
pass # NOTE: Derived classes SHOULD implement this
|
pass # NOTE: Derived classes SHOULD implement this
|
||||||
|
|
||||||
def print_time_timeout(self, arg):
|
def print_time_timeout(self, arg):
|
||||||
# NOTE: Derived classes SHOULD implement this
|
# NOTE: Derived classes SHOULD implement this
|
||||||
if self.print_time_timeout_id:
|
if self.print_time_timeout_id:
|
||||||
gobject.source_remove(self.print_time_timeout_id)
|
gobject.source_remove(self.print_time_timeout_id)
|
||||||
del self.print_time_timeout_id
|
del self.print_time_timeout_id
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def get_tab_label(self, chatstate):
|
def get_tab_label(self, chatstate):
|
||||||
'''Return a suitable the tab label string. Returns a tuple such as:
|
'''Return a suitable the tab label string. Returns a tuple such as:
|
||||||
(label_str, color) either of which can be None
|
(label_str, color) either of which can be None
|
||||||
if chatstate is given that means we have HE SENT US a chatstate and
|
if chatstate is given that means we have HE SENT US a chatstate and
|
||||||
we want it displayed'''
|
we want it displayed'''
|
||||||
# NOTE: Derived classes SHOULD implement this
|
# NOTE: Derived classes SHOULD implement this
|
||||||
# Reurn a markup'd label and optional gtk.Color
|
# Return a markup'd label and optional gtk.Color
|
||||||
return (label_str, None)
|
return (label_str, None) #FIXME: label_str is not defined. pychecker your files
|
||||||
|
|
||||||
def get_tab_image(self):
|
def get_tab_image(self):
|
||||||
'''Return a suitable tab image for display. None clears any current label.'''
|
'''Return a suitable tab image for display. None clears any current label.'''
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def prepare_context_menu(self):
|
def prepare_context_menu(self):
|
||||||
# NOTE: Derived classes SHOULD implement this
|
# NOTE: Derived classes SHOULD implement this
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def set_compact_view(self, state):
|
def set_compact_view(self, state):
|
||||||
# NOTE: Derived classes MAY implement this
|
# NOTE: Derived classes MAY implement this
|
||||||
self.compact_view_current = state
|
self.compact_view_current = state
|
||||||
|
|
||||||
def got_connected(self):
|
def got_connected(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def got_disconnected(self):
|
def got_disconnected(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue