~bertrand-rousseau/gtg/new-task-list-layout

« back to all changes in this revision

Viewing changes to GTG/core/plugins/api.py

  • Committer: Bertrand Rousseau
  • Date: 2012-07-13 17:24:28 UTC
  • mfrom: (1178.1.28 trunk)
  • mto: (1178.1.30 trunk)
  • mto: This revision was merged to the branch mainline in revision 1183.
  • Revision ID: bertrand.rousseau@gmail.com-20120713172428-ou3ic646fccov41d
Merge with trunk. Fixes conflict with CHANGELOG.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
            self.__task_id = None
62
62
 
63
63
#=== Accessor methods ========================================================
64
 
 
65
64
    def is_editor(self):
66
65
        """
67
66
        Returns true if this is an Editor API
99
98
        return self.__ui
100
99
 
101
100
#=== Changing the UI =========================================================
102
 
 
103
101
    def add_menu_item(self, item):
104
102
        """Adds a menu entry to the Plugin Menu of the Main Window
105
103
        (task browser).
178
176
 
179
177
    def set_bgcolor_func(self, func=None):
180
178
        """ Set a function which defines a background color for each task
181
 
        
 
179
 
182
180
        NOTE: This function stronglye depend on browser and could be easily
183
181
        broken by changes in browser code
184
182
        """
193
191
            pane.basetree.get_basetree().refresh_all()
194
192
 
195
193
#=== file saving/loading ======================================================
196
 
 
197
194
    def load_configuration_object(self, plugin_name, filename, \
198
195
                                  basedir=xdg_config_home):
199
196
        dirname = os.path.join(basedir, 'gtg/plugins', plugin_name)