C# Class Tomboy.Note

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddChildWidget ( Gtk childAnchor, Gtk widget ) : void
childAnchor Gtk
widget Gtk
Résultat void

AddTag() public méthode

public AddTag ( Tag tag ) : void
tag Tag
Résultat void

ContainsTag() public méthode

public ContainsTag ( Tag tag ) : bool
tag Tag
Résultat bool

CreateExistingNote() public static méthode

public static CreateExistingNote ( NoteData data, string filepath, NoteManager manager ) : Note
data NoteData
filepath string
manager NoteManager
Résultat Note

CreateNewNote() public static méthode

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 ///
Résultat Note

Delete() public méthode

public Delete ( ) : void
Résultat void

GetCompleteNoteXml() public méthode

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

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Load() public static méthode

public static Load ( string read_file, NoteManager manager ) : Note
read_file string
manager NoteManager
Résultat Note

LoadForeignNoteXml() public méthode

public LoadForeignNoteXml ( string foreignNoteXml, ChangeType changeType ) : void
foreignNoteXml string
changeType ChangeType
Résultat void

QueueSave() public méthode

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
Résultat void

RemoveTag() public méthode

public RemoveTag ( Tag tag ) : void
tag Tag
Résultat void

RenameWithoutLinkUpdate() public méthode

public RenameWithoutLinkUpdate ( string newTitle ) : void
newTitle string
Résultat void

Save() public méthode

public Save ( ) : void
Résultat void

SetTitle() public méthode

public SetTitle ( string new_title, bool from_user_action ) : void
new_title string
from_user_action bool
Résultat void