C# Класс Tomboy.Note

Contains all pure note data, like the note title and note text.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddChildWidget() публичный Метод

public AddChildWidget ( Gtk childAnchor, Gtk widget ) : void
childAnchor Gtk
widget Gtk
Результат void

AddTag() публичный Метод

public AddTag ( Tag tag ) : void
tag Tag
Результат void

ContainsTag() публичный Метод

public ContainsTag ( Tag tag ) : bool
tag Tag
Результат bool

CreateExistingNote() публичный статический Метод

public static CreateExistingNote ( NoteData data, string filepath, NoteManager manager ) : Note
data NoteData
filepath string
manager NoteManager
Результат Note

CreateNewNote() публичный статический Метод

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 ///
Результат Note

Delete() публичный Метод

public Delete ( ) : void
Результат void

GetCompleteNoteXml() публичный Метод

Return the complete contents of this note's .note XML file In case of any error, null is returned.
public GetCompleteNoteXml ( ) : string
Результат string

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

Load() публичный статический Метод

public static Load ( string read_file, NoteManager manager ) : Note
read_file string
manager NoteManager
Результат Note

LoadForeignNoteXml() публичный Метод

public LoadForeignNoteXml ( string foreignNoteXml, ChangeType changeType ) : void
foreignNoteXml string
changeType ChangeType
Результат void

QueueSave() публичный Метод

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
Результат void

RemoveTag() публичный Метод

public RemoveTag ( Tag tag ) : void
tag Tag
Результат void

RenameWithoutLinkUpdate() публичный Метод

public RenameWithoutLinkUpdate ( string newTitle ) : void
newTitle string
Результат void

Save() публичный Метод

public Save ( ) : void
Результат void

SetTitle() публичный Метод

public SetTitle ( string new_title, bool from_user_action ) : void
new_title string
from_user_action bool
Результат void