Top |
Functions
Functions
ianjuta_document_manager_add_bookmark ()
void ianjuta_document_manager_add_bookmark (IAnjutaDocumentManager *obj
,GFile *file
,gint line
,GError **err
);
ianjuta_document_manager_add_buffer ()
IAnjutaEditor * ianjuta_document_manager_add_buffer (IAnjutaDocumentManager *obj
,const gchar *name
,const gchar *content
,GError **err
);
Creates a new editor buffer of the given name and sets the given content as its initial content.
ianjuta_document_manager_add_document ()
void ianjuta_document_manager_add_document (IAnjutaDocumentManager *obj
,IAnjutaDocument *document
,GError **err
);
Adds a document to the document manager. This will open a new Notebook tab and show the document there
ianjuta_document_manager_find_document_with_file ()
IAnjutaDocument * ianjuta_document_manager_find_document_with_file (IAnjutaDocumentManager *obj
,GFile *file
,GError **err
);
Finds the document that has the file loaded. Only the editor that matches the file will be searched.
ianjuta_document_manager_get_current_document ()
IAnjutaDocument * ianjuta_document_manager_get_current_document (IAnjutaDocumentManager *obj
,GError **err
);
Gets the current document.
ianjuta_document_manager_get_doc_widgets ()
GList * ianjuta_document_manager_get_doc_widgets (IAnjutaDocumentManager *obj
,GError **err
);
Gets a list of widgets for open documents. Each widget is a GTK_WIDGET(IAnjutaDocument*)
Returns
a list of widgets for all open documents. The returned list (but not the data in the list) must be freed after use.
[element-type GtkWidget][transfer container]
ianjuta_document_manager_get_file ()
GFile * ianjuta_document_manager_get_file (IAnjutaDocumentManager *obj
,const gchar *filename
,GError **err
);
Given the short filename, finds the file of the filename, if the editor that has it loaded is found. If there is no editor that has this file opened, returns NULL.
ianjuta_document_manager_goto_file_line ()
IAnjutaEditor * ianjuta_document_manager_goto_file_line (IAnjutaDocumentManager *obj
,GFile *file
,gint lineno
,GError **err
);
Loads the given file if not loaded yet, set its editor as current editor and moves cursor to the given line in the editor.
ianjuta_document_manager_goto_file_line_mark ()
IAnjutaEditor * ianjuta_document_manager_goto_file_line_mark (IAnjutaDocumentManager *obj
,GFile *file
,gint lineno
,gboolean mark
,GError **err
);
Loads the given file if not loaded yet, set its editor as current editor
and moves cursor to the given line in the editor. Optionally also marks
the line with line marker if mark
is given TRUE.
ianjuta_document_manager_remove_document ()
gboolean ianjuta_document_manager_remove_document (IAnjutaDocumentManager *obj
,IAnjutaDocument *document
,gboolean save_before
,GError **err
);
Closes and removes the given document. If save_before
is TRUE, also
saves the document before closing.
ianjuta_document_manager_set_current_document ()
void ianjuta_document_manager_set_current_document (IAnjutaDocumentManager *obj
,IAnjutaDocument *document
,GError **err
);
Sets the given document as current document.
Signal Details
The “document-added”
signal
void user_function (IAnjutaDocumentManager *obj, IAnjutaDocument *doc, gpointer user_data)
Flags: Run Last
The “document-removed”
signal
void user_function (IAnjutaDocumentManager *obj, IAnjutaDocument *doc, gpointer user_data)
Flags: Run Last