C# Class Tomboy.TaskManager.TaskManagerNoteAddin

Class that describes behaviour of Notes (in terms of TaskManager features)
Inheritance: Tomboy.NoteAddin
Mostra file Open project: rggjan/Tomboy-Todo-List Class Usage Examples

Public Methods

Method Description
DeserializeTasklists ( ) : void

Loads (in terms of Tasks and Tasklists) the contents of a note

FixList ( ) : void

Fixes all the items in the fix_list

Initialize ( ) : void

Initialize the Note (but no loading/buffer yet)

OnNoteOpened ( ) : void

Loads the content of the buffer, sets up GUI

OnPriorityClicked ( Task t ) : bool
Repair ( object o, EventArgs args ) : void

Do all the Buffer modifications that can not be done during the actual events

Shutdown ( ) : void
StartListeners ( ) : void

Start all the TextBuffer listeners, + the keyrelease repair listener.

StopListeners ( ) : void

Stop all the TextBuffer listeners, + the keyrelease repair listener

TaskManagerNoteAddin ( ) : System
TaskManagerNoteAddin ( Note note ) : System

This constructor is used in Unit tests to initialize the addin for notes created in the tests on-the-fly. It calls the underlying Initialize function in NoteAddin which takes care of the rest.

ValidateTaskLists ( ) : void

Look for deleted tasks and delete them from the internal structures, if necessary

Private Methods

Method Description
BufferInsertText ( object o, Gtk args ) : void

Check for changes (related to taskmanager) when text is written into the buffer

DeleteRange ( object o, Gtk args ) : void

Listener for delete events, repairs tasks if necessary...

Method Details

DeserializeTasklists() public method

Loads (in terms of Tasks and Tasklists) the contents of a note
public DeserializeTasklists ( ) : void
return void

FixList() public method

Fixes all the items in the fix_list
public FixList ( ) : void
return void

Initialize() public method

Initialize the Note (but no loading/buffer yet)
public Initialize ( ) : void
return void

OnNoteOpened() public method

Loads the content of the buffer, sets up GUI
public OnNoteOpened ( ) : void
return void

OnPriorityClicked() public method

public OnPriorityClicked ( Task t ) : bool
t Task
return bool

Repair() public method

Do all the Buffer modifications that can not be done during the actual events
public Repair ( object o, EventArgs args ) : void
o object /// A ///
args System.EventArgs /// A ///
return void

Shutdown() public method

public Shutdown ( ) : void
return void

StartListeners() public method

Start all the TextBuffer listeners, + the keyrelease repair listener.
public StartListeners ( ) : void
return void

StopListeners() public method

Stop all the TextBuffer listeners, + the keyrelease repair listener
public StopListeners ( ) : void
return void

TaskManagerNoteAddin() public method

public TaskManagerNoteAddin ( ) : System
return System

TaskManagerNoteAddin() public method

This constructor is used in Unit tests to initialize the addin for notes created in the tests on-the-fly. It calls the underlying Initialize function in NoteAddin which takes care of the rest.
public TaskManagerNoteAddin ( Note note ) : System
note Tomboy.Note /// A for which we want the TaskManager Addin functionality. ///
return System

ValidateTaskLists() public method

Look for deleted tasks and delete them from the internal structures, if necessary
public ValidateTaskLists ( ) : void
return void