C# Class Tomboy.Note

Contains all pure note data, like the note title and note text.
Mostra file Open project: GNOME/tomboy Class Usage Examples

Public Methods

Method Description
AddChildWidget ( Gtk childAnchor, Gtk widget ) : void
AddTag ( Tag tag ) : void
ContainsTag ( Tag tag ) : bool
CreateExistingNote ( NoteData data, string filepath, NoteManager manager ) : Note
CreateNewNote ( string title, string filepath, NoteManager manager ) : Note

Creates a New Note with the given values.

Delete ( ) : void
GetCompleteNoteXml ( ) : string

Return the complete contents of this note's .note XML file In case of any error, null is returned.

GetHashCode ( ) : int
Load ( string read_file, NoteManager manager ) : Note
LoadForeignNoteXml ( string foreignNoteXml, ChangeType changeType ) : void
QueueSave ( ChangeType changeType ) : void

Set a timeout to execute the save. Possibly invalidate the text, which causes a re-serialize when the timeout is called...

RemoveTag ( Tag tag ) : void
RenameWithoutLinkUpdate ( string newTitle ) : void
Save ( ) : void
SetTitle ( string new_title, bool from_user_action ) : void

Private Methods

Method Description
BufferTagApplied ( object sender, Gtk args ) : void
BufferTagRemoved ( object sender, Gtk args ) : void
ContainsText ( string text ) : bool
DebugSave ( string format ) : void
HandleLinkRename ( string old_title, Note renamed, bool rename_links ) : void
Note ( NoteData data, string filepath, NoteManager manager ) : System
OnBufferChanged ( object sender, EventArgs args ) : void
OnBufferMarkSet ( object sender, Gtk args ) : void
ParseTags ( XmlNode tagNodes ) : List
ProcessChildWidgetQueue ( ) : void
ProcessRenameLinkUpdate ( string old_title ) : void
RemoveLinks ( string old_title, Note renamed ) : void
RenameLinks ( string old_title, Note renamed ) : void
SaveTimeout ( object sender, EventArgs args ) : void
UrlFromPath ( string filepath ) : string

Returns a Tomboy URL from the given path.

WindowConfigureEvent ( object sender, Gtk args ) : void
WindowDestroyed ( object sender, EventArgs args ) : void

Method Details

AddChildWidget() public method

public AddChildWidget ( Gtk childAnchor, Gtk widget ) : void
childAnchor Gtk
widget Gtk
return void

AddTag() public method

public AddTag ( Tag tag ) : void
tag Tag
return void

ContainsTag() public method

public ContainsTag ( Tag tag ) : bool
tag Tag
return bool

CreateExistingNote() public static method

public static CreateExistingNote ( NoteData data, string filepath, NoteManager manager ) : Note
data NoteData
filepath string
manager NoteManager
return Note

CreateNewNote() public static method

Creates a New Note with the given values.
public static CreateNewNote ( string title, string filepath, NoteManager manager ) : Note
title string /// A ///
filepath string /// A ///
manager NoteManager /// A ///
return Note

Delete() public method

public Delete ( ) : void
return void

GetCompleteNoteXml() public method

Return the complete contents of this note's .note XML file In case of any error, null is returned.
public GetCompleteNoteXml ( ) : string
return string

GetHashCode() public method

public GetHashCode ( ) : int
return int

Load() public static method

public static Load ( string read_file, NoteManager manager ) : Note
read_file string
manager NoteManager
return Note

LoadForeignNoteXml() public method

public LoadForeignNoteXml ( string foreignNoteXml, ChangeType changeType ) : void
foreignNoteXml string
changeType ChangeType
return void

QueueSave() public method

Set a timeout to execute the save. Possibly invalidate the text, which causes a re-serialize when the timeout is called...
public QueueSave ( ChangeType changeType ) : void
changeType ChangeType
return void

RemoveTag() public method

public RemoveTag ( Tag tag ) : void
tag Tag
return void

RenameWithoutLinkUpdate() public method

public RenameWithoutLinkUpdate ( string newTitle ) : void
newTitle string
return void

Save() public method

public Save ( ) : void
return void

SetTitle() public method

public SetTitle ( string new_title, bool from_user_action ) : void
new_title string
from_user_action bool
return void