C# Class Tasque.TaskGroup

A TaskGroup is a Widget that represents a grouping of tasks that are shown in the TaskWindow. For example, "Overdue", "Today", "Tomorrow", etc.
Inheritance: Gtk.VBox
Datei anzeigen Open project: GNOME/tasque Class Usage Examples

Public Methods

Method Description
ContainsTask ( ITask task, Gtk &iter ) : bool

Convenience method to determine whether the specified task is currently shown in this TaskGroup.

EnterEditMode ( ITask task, Gtk iter ) : void
GetIterIndex ( Gtk iter ) : int
GetIterPos ( Gtk iter ) : int
GetNChildren ( Gtk iter ) : int
Refilter ( ITaskList selectedTaskList ) : void
TaskGroup ( string groupName, System.DateTime rangeStart, System.DateTime rangeEnd, ICollection tasks, GtkApplicationBase application ) : System

Protected Methods

Method Description
CreateModel ( System.DateTime rangeStart, System.DateTime rangeEnd, ICollection tasks ) : TreeModel
OnRealized ( ) : void
OnStyleSet ( Gtk.Style previous_style ) : void

Private Methods

Method Description
GetHeaderMarkup ( string groupName ) : string
GetHighlightColor ( ) : string

This returns the current highlight color from the GTK theme

GetSelectedTaskList ( ) : ITaskList

This returns the currently selected taskList. TODO: This should really be moved as a method Application or or something.

OnButtonPressed ( object sender, Gtk args ) : void
OnNumberOfTasksChanged ( object sender, EventArgs args ) : void
OnRowActivated ( object sender, Gtk args ) : void
Refilter ( ) : void

Refilter the hard way by discovering the taskList to filter on

Method Details

ContainsTask() public method

Convenience method to determine whether the specified task is currently shown in this TaskGroup.
public ContainsTask ( ITask task, Gtk &iter ) : bool
task ITask /// A ///
iter Gtk /// A ///
return bool

CreateModel() protected method

protected CreateModel ( System.DateTime rangeStart, System.DateTime rangeEnd, ICollection tasks ) : TreeModel
rangeStart System.DateTime
rangeEnd System.DateTime
tasks ICollection
return TreeModel

EnterEditMode() public method

public EnterEditMode ( ITask task, Gtk iter ) : void
task ITask
iter Gtk
return void

GetIterIndex() public method

public GetIterIndex ( Gtk iter ) : int
iter Gtk
return int

GetIterPos() public method

public GetIterPos ( Gtk iter ) : int
iter Gtk
return int

GetNChildren() public method

public GetNChildren ( Gtk iter ) : int
iter Gtk
return int

OnRealized() protected method

protected OnRealized ( ) : void
return void

OnStyleSet() protected method

protected OnStyleSet ( Gtk.Style previous_style ) : void
previous_style Gtk.Style
return void

Refilter() public method

public Refilter ( ITaskList selectedTaskList ) : void
selectedTaskList ITaskList
return void

TaskGroup() public method

public TaskGroup ( string groupName, System.DateTime rangeStart, System.DateTime rangeEnd, ICollection tasks, GtkApplicationBase application ) : System
groupName string
rangeStart System.DateTime
rangeEnd System.DateTime
tasks ICollection
application Gtk.Tasque.GtkApplicationBase
return System