geany
1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
![]() ![]() |
#include "document.h"
#include "app.h"
#include "callbacks.h"
#include "dialogs.h"
#include "documentprivate.h"
#include "encodings.h"
#include "encodingsprivate.h"
#include "filetypesprivate.h"
#include "geany.h"
#include "geanyobject.h"
#include "geanywraplabel.h"
#include "highlighting.h"
#include "main.h"
#include "msgwindow.h"
#include "navqueue.h"
#include "notebook.h"
#include "project.h"
#include "sciwrappers.h"
#include "sidebar.h"
#include "support.h"
#include "symbols.h"
#include "ui_utils.h"
#include "utils.h"
#include "vte.h"
#include "win32.h"
#include <time.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <glib/gstdio.h>
#include <gio/gio.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
Go to the source code of this file.
Classes | |
struct | undo_action |
struct | FileData |
Macros | |
#define | USE_GIO_FILE_OPERATIONS (!file_prefs.use_safe_file_saving && file_prefs.use_gio_unsafe_file_saving) |
Enumerations | |
enum | { RESPONSE_DOCUMENT_RELOAD = 1 , RESPONSE_DOCUMENT_SAVE } |
enum | { STATUS_CHANGED , STATUS_DISK_CHANGED , STATUS_READONLY } |
Functions | |
static void | document_undo_clear_stack (GTrashStack **stack) |
static void | document_undo_clear (GeanyDocument *doc) |
static void | document_undo_add_internal (GeanyDocument *doc, guint type, gpointer data) |
static void | document_redo_add (GeanyDocument *doc, guint type, gpointer data) |
static gboolean | remove_page (guint page_num) |
static GtkWidget * | document_show_message (GeanyDocument *doc, GtkMessageType msgtype, void(*response_cb)(GtkWidget *info_bar, gint response_id, GeanyDocument *doc), const gchar *btn_1, GtkResponseType response_1, const gchar *btn_2, GtkResponseType response_2, const gchar *btn_3, GtkResponseType response_3, const gchar *extra_text, const gchar *format,...) |
GeanyDocument * | document_find_by_real_path (const gchar *realname) |
Finds a document whose real_path field matches the given filename. More... | |
static gchar * | get_real_path_from_utf8 (const gchar *utf8_filename) |
GeanyDocument * | document_find_by_filename (const gchar *utf8_filename) |
Finds a document with the given filename. More... | |
GeanyDocument * | document_find_by_sci (ScintillaObject *sci) |
GeanyDocument * | document_find_by_id (guint id) |
Lookup an old document by its ID. More... | |
static GtkWidget * | document_get_notebook_child (GeanyDocument *doc) |
gint | document_get_notebook_page (GeanyDocument *doc) |
Gets the notebook page index for a document. More... | |
static ScintillaObject * | locate_sci_in_container (GtkWidget *container) |
GeanyDocument * | document_get_from_notebook_child (GtkWidget *page) |
GeanyDocument * | document_get_from_page (guint page_num) |
Finds the document for the given notebook page page_num. More... | |
GeanyDocument * | document_get_current (void) |
Finds the current document. More... | |
void | document_init_doclist (void) |
void | document_finalize (void) |
gchar * | document_get_basename_for_display (GeanyDocument *doc, gint length) |
Returns the last part of the filename of the given GeanyDocument. More... | |
void | document_update_tab_label (GeanyDocument *doc) |
void | document_set_text_changed (GeanyDocument *doc, gboolean changed) |
Updates the tab labels, the status bar, the window title and some save-sensitive buttons according to the document's save state. More... | |
static gint | document_get_new_idx (void) |
static void | queue_colourise (GeanyDocument *doc) |
static void | document_stop_file_monitoring (GeanyDocument *doc) |
static void | monitor_file_setup (GeanyDocument *doc) |
void | document_try_focus (GeanyDocument *doc, GtkWidget *source_widget) |
static gboolean | on_idle_focus (gpointer doc) |
static GeanyDocument * | document_create (const gchar *utf8_filename) |
gboolean | document_close (GeanyDocument *doc) |
Closes the given document. More... | |
gboolean | document_remove_page (guint page_num) |
Removes the given notebook tab at page_num and clears all related information in the document list. More... | |
static void | store_saved_encoding (GeanyDocument *doc) |
GeanyDocument * | document_new_file_if_non_open (void) |
GeanyDocument * | document_new_file (const gchar *utf8_filename, GeanyFiletype *ft, const gchar *text) |
Creates a new document. More... | |
GeanyDocument * | document_open_file (const gchar *locale_filename, gboolean readonly, GeanyFiletype *ft, const gchar *forced_enc) |
Opens a document specified by locale_filename. More... | |
static gboolean | get_mtime (const gchar *locale_filename, time_t *time) |
static gboolean | load_text_file (const gchar *locale_filename, const gchar *display_filename, FileData *filedata, const gchar *forced_enc) |
static gint | set_cursor_position (GeanyEditor *editor, gint pos) |
static gboolean | detect_tabs_and_spaces (GeanyEditor *editor) |
gboolean | document_detect_indent_type (GeanyDocument *doc, GeanyIndentType *type_) |
static gboolean | detect_indent_width (GeanyEditor *editor, GeanyIndentType type, gint *width_) |
gboolean | document_detect_indent_width (GeanyDocument *doc, gint *width_) |
void | document_apply_indent_settings (GeanyDocument *doc) |
void | document_show_tab (GeanyDocument *doc) |
GeanyDocument * | document_open_file_full (GeanyDocument *doc, const gchar *filename, gint pos, gboolean readonly, GeanyFiletype *ft, const gchar *forced_enc) |
void | document_open_file_list (const gchar *data, gsize length) |
void | document_open_files (const GSList *filenames, gboolean readonly, GeanyFiletype *ft, const gchar *forced_enc) |
Opens each file in the list filenames. More... | |
static void | on_keep_edit_history_on_reload_response (GtkWidget *bar, gint response_id, GeanyDocument *doc) |
gboolean | document_reload_force (GeanyDocument *doc, const gchar *forced_enc) |
Reloads the document with the specified file encoding. More... | |
gboolean | document_reload_prompt (GeanyDocument *doc, const gchar *forced_enc) |
static void | document_update_timestamp (GeanyDocument *doc, const gchar *locale_filename) |
static void | get_line_column_from_pos (GeanyDocument *doc, guint byte_pos, gint *line, gint *column) |
static void | replace_header_filename (GeanyDocument *doc) |
void | document_rename_file (GeanyDocument *doc, const gchar *new_filename) |
Renames the file in doc to new_filename. More... | |
static void | protect_document (GeanyDocument *doc) |
static void | unprotect_document (GeanyDocument *doc) |
gboolean | document_need_save_as (GeanyDocument *doc) |
gboolean | document_save_file_as (GeanyDocument *doc, const gchar *utf8_fname) |
Saves the document, detecting the filetype. More... | |
static gsize | save_convert_to_encoding (GeanyDocument *doc, gchar **data, gsize *len) |
static gchar * | write_data_to_disk (const gchar *locale_filename, const gchar *data, gsize len) |
static gchar * | save_doc (GeanyDocument *doc, const gchar *locale_filename, const gchar *data, gsize len) |
static gboolean | save_file_handle_infobars (GeanyDocument *doc, gboolean force) |
gboolean | document_save_file (GeanyDocument *doc, gboolean force) |
Saves the document. More... | |
gboolean | document_search_bar_find (GeanyDocument *doc, const gchar *text, gboolean inc, gboolean backwards) |
gint | document_find_text (GeanyDocument *doc, const gchar *text, const gchar *original_text, GeanyFindFlags flags, gboolean search_backwards, GeanyMatchInfo **match_, gboolean scroll, GtkWidget *parent) |
gint | document_replace_text (GeanyDocument *doc, const gchar *find_text, const gchar *original_find_text, const gchar *replace_text, GeanyFindFlags flags, gboolean search_backwards) |
static void | show_replace_summary (GeanyDocument *doc, gint count, const gchar *original_find_text, const gchar *original_replace_text) |
static guint | document_replace_range (GeanyDocument *doc, const gchar *find_text, const gchar *replace_text, GeanyFindFlags flags, gint start, gint end, gboolean scroll_to_match, gint *new_range_end) |
void | document_replace_sel (GeanyDocument *doc, const gchar *find_text, const gchar *replace_text, const gchar *original_find_text, const gchar *original_replace_text, GeanyFindFlags flags) |
gint | document_replace_all (GeanyDocument *doc, const gchar *find_text, const gchar *replace_text, const gchar *original_find_text, const gchar *original_replace_text, GeanyFindFlags flags) |
void | document_update_tags (GeanyDocument *doc) |
void | document_highlight_tags (GeanyDocument *doc) |
static gboolean | on_document_update_tag_list_idle (gpointer data) |
void | document_update_tag_list_in_idle (GeanyDocument *doc) |
static void | document_load_config (GeanyDocument *doc, GeanyFiletype *type, gboolean filetype_changed) |
void | document_set_filetype (GeanyDocument *doc, GeanyFiletype *type) |
Sets the filetype of the document (which controls syntax highlighting and tags) More... | |
void | document_reload_config (GeanyDocument *doc) |
void | document_set_encoding (GeanyDocument *doc, const gchar *new_encoding) |
Sets the encoding of a document. More... | |
void | document_undo_add (GeanyDocument *doc, guint type, gpointer data) |
gboolean | document_can_undo (GeanyDocument *doc) |
static void | update_changed_state (GeanyDocument *doc) |
void | document_undo (GeanyDocument *doc) |
gboolean | document_can_redo (GeanyDocument *doc) |
void | document_redo (GeanyDocument *doc) |
static gint | document_get_status_id (GeanyDocument *doc) |
const gchar * | document_get_status_widget_class (GeanyDocument *doc) |
const GdkColor * | document_get_status_color (GeanyDocument *doc) |
Gets the status color of the document, or NULL if default widget coloring should be used. More... | |
GeanyDocument * | document_index (gint idx) |
Accessor function for GeanyData::documents_array items. More... | |
GeanyDocument * | document_clone (GeanyDocument *old_doc) |
gboolean | document_account_for_unsaved (void) |
static void | force_close_all (void) |
gboolean | document_close_all (void) |
static void | on_monitor_reload_file_response (GtkWidget *bar, gint response_id, GeanyDocument *doc) |
static gboolean | on_sci_key (GtkWidget *widget, GdkEventKey *event, gpointer data) |
static void | enable_key_intercept (GeanyDocument *doc, GtkWidget *bar) |
static void | monitor_reload_file (GeanyDocument *doc) |
static void | on_monitor_resave_missing_file_response (GtkWidget *bar, gint response_id, GeanyDocument *doc) |
static void | monitor_resave_missing_file (GeanyDocument *doc) |
gboolean | document_check_disk_status (GeanyDocument *doc, gboolean force) |
gint | document_compare_by_display_name (gconstpointer a, gconstpointer b) |
Compares documents by their display names. More... | |
gint | document_compare_by_tab_order (gconstpointer a, gconstpointer b) |
Compares documents by their tab order. More... | |
gint | document_compare_by_tab_order_reverse (gconstpointer a, gconstpointer b) |
Compares documents by their tab order, in reverse order. More... | |
void | document_grab_focus (GeanyDocument *doc) |
static void * | copy_ (void *src) |
static void | free_ (void *doc) |
GType | document_get_type (void) |
G_DEFINE_BOXED_TYPE (GeanyDocument, document, copy_, free_) | |
gpointer | document_get_data (const GeanyDocument *doc, const gchar *key) |
void | document_set_data (GeanyDocument *doc, const gchar *key, gpointer data) |
void | document_set_data_full (GeanyDocument *doc, const gchar *key, gpointer data, GDestroyNotify free_func) |
Variables | |
GeanyFilePrefs | file_prefs |
GPtrArray * | documents_array = NULL |
static guint | doc_id_counter = 0 |
struct { | |
const gchar * name | |
GdkColor color | |
gboolean loaded | |
} | document_status_styles [] |
#define USE_GIO_FILE_OPERATIONS (!file_prefs.use_safe_file_saving && file_prefs.use_gio_unsafe_file_saving) |
Definition at line 83 of file document.c.
anonymous enum |
Enumerator | |
---|---|
RESPONSE_DOCUMENT_RELOAD | |
RESPONSE_DOCUMENT_SAVE |
Definition at line 100 of file document.c.
anonymous enum |
Enumerator | |
---|---|
STATUS_CHANGED | |
STATUS_DISK_CHANGED | |
STATUS_READONLY |
Definition at line 3210 of file document.c.
|
static |
Definition at line 3819 of file document.c.
|
static |
Definition at line 1155 of file document.c.
References count, editor_get_indent_prefs(), GEANY_INDENT_TYPE_TABS, line, pos, sci, GeanyEditor::sci, sci_get_char_at(), sci_get_line_count(), sci_get_line_indent_position(), sci_get_line_indentation(), sci_set_tab_width(), and GeanyIndentPrefs::width.
Referenced by document_apply_indent_settings(), and document_detect_indent_width().
|
static |
Definition at line 1075 of file document.c.
References Sci_TextToFind::chrg, Sci_TextToFind::chrgText, count, Sci_CharacterRange::cpMax, Sci_CharacterRange::cpMin, editor_get_indent_prefs(), Sci_TextToFind::lpstrText, NULL, pos, SCFIND_REGEXP, sci, GeanyEditor::sci, sci_find_text(), sci_get_length(), sci_get_line_count(), and GeanyIndentPrefs::width.
Referenced by document_detect_indent_type().
gboolean document_account_for_unsaved | ( | void | ) |
Definition at line 3360 of file document.c.
References GeanyDocument::changed, dialogs_show_unsaved_file(), DOC_VALID, document_get_from_page(), main_widgets, and GeanyMainWidgets::notebook.
Referenced by document_close_all().
void document_apply_indent_settings | ( | GeanyDocument * | doc | ) |
Definition at line 1225 of file document.c.
References _, detect_indent_width(), GeanyIndentPrefs::detect_type, GeanyIndentPrefs::detect_width, DOC_FILENAME, document_detect_indent_type(), GeanyDocument::editor, editor_get_indent_prefs(), editor_set_indent(), GeanyDocument::file_type, GEANY_INDENT_TYPE_BOTH, GEANY_INDENT_TYPE_SPACES, GEANY_INDENT_TYPE_TABS, GeanyFiletype::indent_type, GeanyFiletype::indent_width, name, NULL, GeanyIndentPrefs::type, ui_set_statusbar(), and GeanyIndentPrefs::width.
Referenced by document_open_file_full(), document_set_filetype(), and on_reset_indentation1_activate().
gboolean document_can_redo | ( | GeanyDocument * | doc | ) |
Definition at line 3083 of file document.c.
References GeanyDocument::editor, NULL, GeanyDocument::priv, GeanyDocumentPrivate::redo_actions, GeanyEditor::sci, and sci_can_redo().
Referenced by document_reload_prompt(), on_redo1_activate(), on_reload_all(), and ui_update_popup_reundo_items().
gboolean document_can_undo | ( | GeanyDocument * | doc | ) |
Definition at line 2964 of file document.c.
References GeanyDocument::editor, NULL, GeanyDocument::priv, GeanyEditor::sci, sci_can_undo(), and GeanyDocumentPrivate::undo_actions.
Referenced by document_reload_prompt(), on_reload_all(), on_undo1_activate(), and ui_update_popup_reundo_items().
gboolean document_check_disk_status | ( | GeanyDocument * | doc, |
gboolean | force | ||
) |
Definition at line 3674 of file document.c.
References GeanyFilePrefs::disk_check_timeout, DOC_VALID, FILE_CHANGED, GeanyDocumentPrivate::file_disk_status, GeanyDocument::file_name, FILE_OK, file_prefs, get_mtime(), GeanyDocumentPrivate::is_remote, GeanyDocumentPrivate::last_check, GeanyDocumentPrivate::monitor, monitor_reload_file(), monitor_resave_missing_file(), GeanyDocumentPrivate::mtime, notebook_switch_in_progress(), NULL, GeanyDocument::priv, GeanyDocument::real_path, ui_update_tab_status(), and utils_get_locale_from_utf8().
Referenced by document_open_file_full(), document_save_file(), on_editor_button_press_event(), on_key_press_event(), on_key_release_event(), on_notebook1_switch_page_after(), and on_window_active_changed().
GeanyDocument * document_clone | ( | GeanyDocument * | old_doc | ) |
Definition at line 3323 of file document.c.
References GeanyEditor::auto_indent, document_new_file(), document_set_encoding(), document_set_text_changed(), GeanyDocument::editor, editor_set_indent(), GeanyDocument::encoding, GeanyDocument::file_type, GeanyDocument::has_bom, GeanyEditor::indent_type, GeanyEditor::indent_width, GeanyEditor::line_breaking, GeanyEditor::line_wrapping, NULL, GeanyDocument::priv, GeanyDocumentPrivate::protected, GeanyDocument::readonly, GeanyEditor::sci, sci_get_contents(), sci_get_selection_contents(), sci_has_selection(), sci_set_lines_wrapped(), sci_set_readonly(), text, and ui_document_show_hide().
Referenced by cb_func_document_action(), and on_clone1_activate().
gboolean document_close | ( | GeanyDocument * | doc | ) |
Closes the given document.
doc | The document to remove. |
TRUE
if the document was actually removed or FALSE
otherwise.Definition at line 689 of file document.c.
References document_get_notebook_page(), and document_remove_page().
Referenced by force_close_all().
gboolean document_close_all | ( | void | ) |
Definition at line 3396 of file document.c.
References document_account_for_unsaved(), and force_close_all().
Referenced by do_main_quit(), handle_current_session(), load_config(), on_close_all1_activate(), and project_close().
gint document_compare_by_display_name | ( | gconstpointer | a, |
gconstpointer | b | ||
) |
Compares documents by their display names.
This matches GCompareFunc
for use with e.g. g_ptr_array_sort()
.
a | GeanyDocument** . |
b | GeanyDocument** . |
Definition at line 3746 of file document.c.
References DOC_FILENAME.
gint document_compare_by_tab_order | ( | gconstpointer | a, |
gconstpointer | b | ||
) |
Compares documents by their tab order.
This matches GCompareFunc
for use with e.g. g_ptr_array_sort()
.
a | GeanyDocument** . |
b | GeanyDocument** . |
Definition at line 3776 of file document.c.
References document_get_notebook_page().
Referenced by document_compare_by_tab_order_reverse(), and ui_menu_add_document_items_sorted().
gint document_compare_by_tab_order_reverse | ( | gconstpointer | a, |
gconstpointer | b | ||
) |
Compares documents by their tab order, in reverse order.
This matches GCompareFunc
for use with e.g. g_ptr_array_sort()
.
a | GeanyDocument** . |
b | GeanyDocument** . |
Definition at line 3806 of file document.c.
References document_compare_by_tab_order().
|
static |
Definition at line 621 of file document.c.
References GeanyDocument::changed, GeanyDocumentPrivate::data, doc_id_counter, document_get_current(), document_get_new_idx(), documents, documents_array, GeanyDocument::editor, editor_create(), GeanyDocument::file_name, GeanyDocument::id, GeanyDocument::index, GeanyDocument::is_valid, GeanyDocumentPrivate::iter, GeanyDocumentPrivate::last_check, main_widgets, GeanyMainWidgets::notebook, notebook_new_tab(), NULL, GeanyDocument::priv, remove_page(), sidebar_openfiles_add(), SidebarTreeviews::tree_openfiles, tv, and ui_document_buttons_update().
Referenced by document_new_file(), and document_open_file_full().
gboolean document_detect_indent_type | ( | GeanyDocument * | doc, |
GeanyIndentType * | type_ | ||
) |
Definition at line 1107 of file document.c.
References detect_tabs_and_spaces(), GeanyDocument::editor, GEANY_INDENT_TYPE_BOTH, GEANY_INDENT_TYPE_SPACES, GEANY_INDENT_TYPE_TABS, line, pos, sci, GeanyEditor::sci, sci_get_char_at(), sci_get_line_count(), sci_get_line_indentation(), sci_get_position_from_line(), and tabs.
Referenced by document_apply_indent_settings(), and on_detect_type_from_file_activate().
gboolean document_detect_indent_width | ( | GeanyDocument * | doc, |
gint * | width_ | ||
) |
Definition at line 1219 of file document.c.
References detect_indent_width(), GeanyDocument::editor, and GeanyEditor::indent_type.
Referenced by on_detect_width_from_file_activate().
void document_finalize | ( | void | ) |
Definition at line 388 of file document.c.
References documents, and documents_array.
Referenced by do_main_quit().
GeanyDocument * document_find_by_filename | ( | const gchar * | utf8_filename | ) |
Finds a document with the given filename.
This matches either an exact GeanyDocument::file_name string, or variant filenames with relative elements in the path (e.g. "/dir/..//name"
will match "/name"
).
utf8_filename | The filename to search (in UTF-8 encoding). |
NULL
. Definition at line 183 of file document.c.
References document_find_by_real_path(), documents, documents_array, GeanyDocument::file_name, get_real_path_from_utf8(), GeanyDocument::is_valid, NULL, and utils_filenamecmp.
Referenced by document_open_file_full(), goto_compiler_file_line(), goto_file_pos(), main_handle_filename(), and process_build_output_line().
GeanyDocument * document_find_by_id | ( | guint | id | ) |
Lookup an old document by its ID.
Useful when the corresponding document may have been closed since the ID was retrieved.
id | The ID of the document to find |
NULL
if the document is no longer open.Example:
Definition at line 247 of file document.c.
References documents, foreach_document, and NULL.
Referenced by msgwin_goto_messages_file_line().
GeanyDocument * document_find_by_real_path | ( | const gchar * | realname | ) |
Finds a document whose real_path
field matches the given filename.
realname | The filename to search, which should be identical to the string returned by utils_get_real_path() . |
NULL
. TMSourceFile::file_name
. Definition at line 137 of file document.c.
References documents, documents_array, GeanyDocument::is_valid, NULL, GeanyDocument::real_path, and utils_filenamecmp.
Referenced by document_find_by_filename(), and goto_tag().
GeanyDocument * document_find_by_sci | ( | ScintillaObject * | sci | ) |
Definition at line 214 of file document.c.
References documents, documents_array, NULL, and sci.
Referenced by document_get_from_notebook_child().
gint document_find_text | ( | GeanyDocument * | doc, |
const gchar * | text, | ||
const gchar * | original_text, | ||
GeanyFindFlags | flags, | ||
gboolean | search_backwards, | ||
GeanyMatchInfo ** | match_, | ||
gboolean | scroll, | ||
GtkWidget * | parent | ||
) |
Definition at line 2317 of file document.c.
References _, GeanySearchPrefs::always_wrap, dialogs_show_question_full(), document_find_text(), GeanyDocument::editor, GEANY_FIND_REGEXP, NULL, GeanyEditor::sci, sci_ensure_line_is_visible(), sci_get_length(), sci_get_line_from_position(), sci_get_selection_end(), sci_get_selection_start(), sci_goto_pos(), sci_set_current_position(), sci_set_search_anchor(), GeanyEditor::scroll_percent, search_find_next(), search_find_prev(), search_prefs, text, ui_set_statusbar(), and utils_beep().
Referenced by document_find_text(), document_replace_text(), on_find_dialog_response(), on_replace_dialog_response(), search_find_again(), and search_find_selection().
gchar * document_get_basename_for_display | ( | GeanyDocument * | doc, |
gint | length | ||
) |
Returns the last part of the filename of the given GeanyDocument.
The result is also truncated to a maximum of length characters in case the filename is very long.
doc | The document to use. |
length | The length of the resulting string or -1 to use a default value. |
Definition at line 412 of file document.c.
References DOC_FILENAME, NULL, and utils_str_middle_truncate().
Referenced by dialogs_show_unsaved_file(), document_update_tab_label(), and ui_set_window_title().
GeanyDocument * document_get_current | ( | void | ) |
Finds the current document.
NULL
if there are no opened documents. Definition at line 371 of file document.c.
References document_get_from_page(), main_widgets, GeanyMainWidgets::notebook, and NULL.
Referenced by auto_save(), build_get_regex(), build_keybinding(), build_menu_update(), cb_func_document_action(), cb_func_editor_action(), cb_func_format_action(), cb_func_goto_action(), cb_func_insert_action(), cb_func_search_action(), cb_func_select_action(), cb_func_switch_action(), cc_on_custom_command_activate(), convert_eol(), convert_eol_characters(), create_file_save_as_dialog(), delay_match_brace(), dialogs_show_save_as(), do_select_current(), do_toolbar_search(), document_create(), document_save_file_as(), encodings_radio_item_change_cb(), encodings_reload_radio_item_change_cb(), filetypes_parse_error_message(), filetypes_reload(), find_usage(), focus_sci(), get_build_group_pointer(), get_next_build_cmd(), goto_compiler_file_line(), goto_tag(), handle_save_as(), have_session_docs(), highlighting_show_color_scheme_dialog(), insert_build_page(), main_lib(), msgwin_goto_messages_file_line(), navqueue_go_back(), on_build_menu_item(), on_clone1_activate(), on_close1_activate(), on_close_other_documents1_activate(), on_color_dialog_response(), on_comments_bsd_activate(), on_comments_changelog_activate(), on_comments_fileheader_activate(), on_comments_function_activate(), on_comments_gpl_activate(), on_comments_multiline_activate(), on_context_action1_activate(), on_current_path(), on_detect_type_from_file_activate(), on_detect_width_from_file_activate(), on_edit1_select(), on_expand_collapse(), on_file_properties_activate(), on_filetype_change(), on_find_dialog_response(), on_find_nextsel1_activate(), on_find_prevsel1_activate(), on_find_usage(), on_go_to_line_activate(), on_goto_popup_item_activate(), on_indent_width_activate(), on_key_press_event(), on_key_release_event(), on_line_breaking1_activate(), on_line_wrapping1_toggled(), on_make_custom_input_response(), on_menu_comment_line1_activate(), on_menu_comments_bsd_activate(), on_menu_comments_gpl_activate(), on_menu_comments_multiline_activate(), on_menu_decrease_indent1_activate(), on_menu_fold_all1_activate(), on_menu_increase_indent1_activate(), on_menu_insert_date_activate(), on_menu_insert_include_activate(), on_menu_open_selected_file1_activate(), on_menu_remove_indicators1_activate(), on_menu_toggle_line_commentation1_activate(), on_menu_uncomment_line1_activate(), on_menu_unfold_all1_activate(), on_menu_write_unicode_bom1_toggled(), on_normal_size1_activate(), on_notebook_switch_page(), on_popup_insert_date_activate(), on_popup_insert_include_activate(), on_prefs_dialog_response(), on_print1_activate(), on_redo1_activate(), on_refresh(), on_remove_markers1_activate(), on_replace_dialog_response(), on_replace_spaces_activate(), on_replace_tabs_activate(), on_save1_activate(), on_save_all1_activate(), on_set_file_readonly1_toggled(), on_show_color_chooser1_activate(), on_sidebar_switch_page(), on_snippet_keybinding_activate(), on_strip_trailing_spaces1_activate(), on_symbol_tree_menu_show(), on_symbol_tree_sort_clicked(), on_toggle_case1_activate(), on_toolbutton_goto_entry_activate(), on_toolbutton_reload_clicked(), on_toolbutton_search_clicked(), on_undo1_activate(), on_use_auto_indentation1_toggled(), on_window_active_changed(), on_zoom_in1_activate(), on_zoom_out1_activate(), open_selected_files(), parse_file_line(), printfcmds(), replace_special_character(), reshow_calltip(), sc_insert(), search_find_again(), search_find_usage(), search_show_find_dialog(), search_show_find_in_files_dialog_full(), search_show_replace_dialog(), set_indent_type(), show_build_commands_dialog(), show_tab_bar_popup_menu(), split_view(), taglist_go_to_selection(), toolbar_reload(), tools_word_count(), ui_document_show_hide(), ui_focus_current_document(), ui_set_window_title(), ui_update_statusbar(), update_config(), and utils_get_current_file_dir_utf8().
gpointer document_get_data | ( | const GeanyDocument * | doc, |
const gchar * | key | ||
) |
Definition at line 3832 of file document.c.
References GeanyDocumentPrivate::data, and GeanyDocument::priv.
Referenced by plugin_get_document_data().
GeanyDocument * document_get_from_notebook_child | ( | GtkWidget * | page | ) |
Definition at line 331 of file document.c.
References document_find_by_sci(), locate_sci_in_container(), NULL, and sci.
Referenced by document_get_from_page(), and on_notebook1_switch_page_after().
GeanyDocument * document_get_from_page | ( | guint | page_num | ) |
Finds the document for the given notebook page page_num.
page_num | The notebook page number to search. |
NULL
. Definition at line 352 of file document.c.
References document_get_from_notebook_child(), documents_array, main_widgets, GeanyMainWidgets::notebook, and NULL.
Referenced by auto_save(), configuration_save_session_files(), document_account_for_unsaved(), document_get_current(), on_close_documents_right_activate(), on_notebook_switch_page(), on_save_all1_activate(), remove_page(), and replace_in_session().
|
static |
Definition at line 478 of file document.c.
References documents, documents_array, and NULL.
Referenced by document_create().
|
static |
Definition at line 264 of file document.c.
References GeanyDocument::editor, NULL, and GeanyEditor::sci.
Referenced by document_get_notebook_page(), document_new_file(), document_open_file_full(), and document_show_message().
gint document_get_notebook_page | ( | GeanyDocument * | doc | ) |
Gets the notebook page index for a document.
doc | The document. |
Definition at line 289 of file document.c.
References document_get_notebook_child(), main_widgets, and GeanyMainWidgets::notebook.
Referenced by document_close(), document_compare_by_tab_order(), document_show_tab(), has_tabs_on_right(), notebook_remove_page(), and on_close_documents_right_activate().
const GdkColor * document_get_status_color | ( | GeanyDocument * | doc | ) |
Gets the status color of the document, or NULL
if default widget coloring should be used.
Returned colors are red if the document has changes, green if the document is read-only or simply NULL
if the document is unmodified but writable.
doc | The document to use. |
NULL
if the default color should be used. The color object is owned by Geany and should not be modified or freed.Definition at line 3276 of file document.c.
References color, document_get_status_id(), document_status_styles, GeanyDocument::editor, loaded, name, NULL, and GeanyEditor::sci.
Referenced by sidebar_openfiles_add(), and sidebar_openfiles_update().
|
static |
Definition at line 3229 of file document.c.
References GeanyDocument::changed, FILE_CHANGED, GeanyDocumentPrivate::file_disk_status, GeanyDocument::priv, GeanyDocumentPrivate::protected, GeanyDocument::readonly, STATUS_CHANGED, STATUS_DISK_CHANGED, and STATUS_READONLY.
Referenced by document_get_status_color(), and document_get_status_widget_class().
const gchar * document_get_status_widget_class | ( | GeanyDocument * | doc | ) |
Definition at line 3249 of file document.c.
References document_get_status_id(), document_status_styles, and NULL.
Referenced by ui_menu_add_document_items_sorted(), and ui_update_tab_status().
GType document_get_type | ( | void | ) |
void document_grab_focus | ( | GeanyDocument * | doc | ) |
Definition at line 3812 of file document.c.
References GeanyDocument::editor, NULL, and GeanyEditor::sci.
Referenced by main_lib(), and ui_focus_current_document().
void document_highlight_tags | ( | GeanyDocument * | doc | ) |
Definition at line 2702 of file document.c.
References app, GeanyDocument::editor, GeanyDocument::file_type, GEANY_FILETYPES_C, GEANY_FILETYPES_CPP, GEANY_FILETYPES_CS, GEANY_FILETYPES_D, GEANY_FILETYPES_GO, GEANY_FILETYPES_JAVA, GEANY_FILETYPES_OBJECTIVEC, GEANY_FILETYPES_RUST, GEANY_FILETYPES_VALA, GeanyFiletype::id, GeanyDocumentPrivate::keyword_hash, GeanyFiletype::lang, GeanyDocument::priv, queue_colourise(), GeanyEditor::sci, sci_set_keywords(), symbols_find_typenames_as_string(), TMWorkspace::tags_array, and GeanyApp::tm_workspace.
Referenced by document_update_tags(), and on_notebook1_switch_page_after().
GeanyDocument * document_index | ( | gint | idx | ) |
Accessor function for GeanyData::documents_array items.
doc->is_valid
). idx | GeanyData::documents_array index. |
NULL
if idx is out of range.Definition at line 3317 of file document.c.
References documents, documents_array, and NULL.
void document_init_doclist | ( | void | ) |
|
static |
Definition at line 2786 of file document.c.
References build_menu_update(), document_update_tags(), GeanyDocument::editor, editor_set_indentation_guides(), GeanyDocument::file_type, filetypes, GEANY_FILETYPES_NONE, highlighting_set_styles(), GeanyFiletype::id, interface_prefs, NULL, GeanyDocument::priv, GeanyFiletype::priv, queue_colourise(), GeanyEditor::sci, GeanyDocumentPrivate::symbol_list_sort_mode, GeanyFiletypePrivate::symbol_list_sort_mode, symbols_global_tags_loaded(), GeanyInterfacePrefs::symbols_sort_mode, GeanyDocument::tm_file, tm_source_file_free(), and tm_workspace_remove_source_file().
Referenced by document_reload_config(), and document_set_filetype().
gboolean document_need_save_as | ( | GeanyDocument * | doc | ) |
Definition at line 1795 of file document.c.
References GeanyDocument::file_name, and NULL.
Referenced by document_save_file(), and document_save_file_as().
GeanyDocument * document_new_file | ( | const gchar * | utf8_filename, |
GeanyFiletype * | ft, | ||
const gchar * | text | ||
) |
Creates a new document.
Line endings in text will be converted to the default setting. Afterwards, the "document-new"
signal is emitted for plugins.
utf8_filename | The file name in UTF-8 encoding, or NULL to open a file as "untitled". |
ft | The filetype to set or NULL to detect it from filename if not NULL . |
text | The initial content of the file (in UTF-8 encoding), or NULL . |
Definition at line 824 of file document.c.
References _, build_menu_update(), GeanyEncoding::charset, GeanyFilePrefs::default_eol_character, GeanyFilePrefs::default_new_encoding, DOC_FILENAME, document_create(), document_get_notebook_child(), document_set_filetype(), document_set_text_changed(), document_try_focus(), GeanyDocument::editor, editor_goto_pos(), editor_prefs, editor_sci_notify_cb(), GeanyDocument::encoding, encodings, file_prefs, filetypes_detect_from_document(), geany_object, monitor_file_setup(), msgwin_status_add(), GeanyDocumentPrivate::mtime, NULL, GeanyDocument::priv, GeanyEditor::sci, sci_clear_all(), sci_empty_undo_buffer(), sci_set_eol_mode(), sci_set_line_numbers(), sci_set_text(), sci_set_undo_collection(), GeanyEditorPrefs::show_linenumber_margin, store_saved_encoding(), text, ui_document_show_hide(), ui_set_window_title(), utils_ensure_same_eol_characters(), utils_strdupa, and utils_tidy_path().
Referenced by cb_func_file_action(), document_clone(), document_new_file_if_non_open(), main_handle_filename(), notebook_tab_bar_click_cb(), on_config_file_clicked(), on_new1_activate(), and on_new_with_file_template().
GeanyDocument * document_new_file_if_non_open | ( | void | ) |
Definition at line 803 of file document.c.
References document_new_file(), main_widgets, GeanyMainWidgets::notebook, and NULL.
Referenced by destroy_project(), document_remove_page(), main_lib(), project_load_file_with_session(), and project_new().
GeanyDocument * document_open_file | ( | const gchar * | locale_filename, |
gboolean | readonly, | ||
GeanyFiletype * | ft, | ||
const gchar * | forced_enc | ||
) |
Opens a document specified by locale_filename.
Afterwards, the "document-open"
signal is emitted for plugins.
locale_filename | The filename of the document to load, in locale encoding. |
readonly | Whether to open the document in read-only mode. |
ft | The filetype for the document or NULL to auto-detect the filetype. |
forced_enc | The file encoding to use or NULL to auto-detect the file encoding. |
NULL
. Definition at line 908 of file document.c.
References document_open_file_full(), and NULL.
Referenced by cb_func_file_action(), document_open_file_list(), document_open_files(), goto_compiler_file_line(), goto_tag(), main_handle_filename(), msgwin_goto_messages_file_line(), on_config_file_clicked(), on_goto_popup_item_activate(), on_menu_open_selected_file1_activate(), and recent_file_activate_cb().
GeanyDocument * document_open_file_full | ( | GeanyDocument * | doc, |
const gchar * | filename, | ||
gint | pos, | ||
gboolean | readonly, | ||
GeanyFiletype * | ft, | ||
const gchar * | forced_enc | ||
) |
Definition at line 1285 of file document.c.
References _, UndoReloadData::actions_count, FileData::bom, FileData::data, document_apply_indent_settings(), document_check_disk_status(), document_create(), document_find_by_filename(), document_get_notebook_child(), document_set_filetype(), document_set_text_changed(), document_show_tab(), document_undo_add(), document_undo_clear(), GeanyDocument::editor, editor_get_eol_char_mode(), editor_goto_pos(), editor_prefs, editor_sci_notify_cb(), editor_set_indent(), FileData::enc, GeanyDocument::encoding, UndoReloadData::eol_mode, GeanyDocument::file_name, file_prefs, filename, filetypes_detect_from_document(), geany_object, GeanyDocument::has_bom, GeanyEditor::indent_type, GeanyEditor::indent_width, GeanyDocumentPrivate::is_remote, GeanyDocument::is_valid, GeanyFilePrefs::keep_edit_history_on_reload, FileData::len, GeanyDocumentPrivate::line_count, load_text_file(), main_status, main_widgets, monitor_file_setup(), msgwin_status_add(), FileData::mtime, GeanyDocumentPrivate::mtime, GeanyMainWidgets::notebook, NULL, on_idle_focus(), pos, GeanyDocument::priv, GeanyDocumentPrivate::protected, queue_colourise(), FileData::readonly, GeanyDocument::readonly, GeanyDocument::real_path, reload, GeanyEditor::sci, sci_empty_undo_buffer(), sci_get_line_count(), sci_set_eol_mode(), sci_set_line_numbers(), sci_set_readonly(), sci_set_savepoint(), sci_set_text(), sci_set_undo_collection(), set_cursor_position(), SETPTR, GeanyEditorPrefs::show_linenumber_margin, store_saved_encoding(), ui_add_recent_document(), ui_document_show_hide(), ui_set_statusbar(), GeanyDocumentPrivate::undo_actions, UNDO_BOM, UNDO_ENCODING, UNDO_RELOAD, utils_get_line_endings(), utils_get_locale_from_utf8(), utils_get_real_path(), utils_get_utf8_from_locale(), utils_is_remote_path(), utils_str_equal(), utils_str_middle_truncate(), and utils_tidy_path().
Referenced by document_open_file(), document_reload_force(), and open_session_file().
void document_open_file_list | ( | const gchar * | data, |
gsize | length | ||
) |
Definition at line 1521 of file document.c.
References document_open_file(), filename, list, NULL, utils_get_eol_char(), utils_get_line_endings(), and utils_get_path_from_uri().
Referenced by on_editor_notify(), and on_window_drag_data_received().
void document_open_files | ( | const GSList * | filenames, |
gboolean | readonly, | ||
GeanyFiletype * | ft, | ||
const gchar * | forced_enc | ||
) |
Opens each file in the list filenames.
Internally, document_open_file() is called for every list item.
filenames | (element-type: filename) A list of filenames to load, in locale encoding. |
readonly | Whether to open the document in read-only mode. |
ft | The filetype for the document or NULL to auto-detect the filetype. |
forced_enc | The file encoding to use or NULL to auto-detect the file encoding. |
Definition at line 1555 of file document.c.
References document_open_file(), and NULL.
Referenced by open_file_dialog_handle_response(), and open_selected_files().
void document_redo | ( | GeanyDocument * | doc | ) |
Definition at line 3094 of file document.c.
References UndoReloadData::actions_count, undo_action::data, document_redo(), document_set_encoding(), document_undo_add_internal(), GeanyDocument::editor, editor_get_eol_char_mode(), GeanyDocument::encoding, UndoReloadData::eol_mode, geany_debug(), GeanyDocument::has_bom, NULL, GeanyDocument::priv, GeanyDocumentPrivate::redo_actions, GeanyEditor::sci, sci_get_eol_mode(), sci_redo(), sci_set_eol_mode(), undo_action::type, ui_document_show_hide(), ui_update_popup_reundo_items(), ui_update_statusbar(), UNDO_BOM, UNDO_ENCODING, UNDO_EOL, UNDO_RELOAD, UNDO_SCINTILLA, and update_changed_state().
Referenced by document_redo(), and on_redo1_activate().
|
static |
Definition at line 3191 of file document.c.
References GeanyDocument::changed, undo_action::data, document_set_text_changed(), NULL, GeanyDocument::priv, GeanyDocumentPrivate::redo_actions, undo_action::type, ui_update_popup_reundo_items(), and UNDO_SCINTILLA.
Referenced by document_undo().
void document_reload_config | ( | GeanyDocument * | doc | ) |
Definition at line 2864 of file document.c.
References document_load_config(), and GeanyDocument::file_type.
Referenced by filetypes_reload(), and on_document_save().
gboolean document_reload_force | ( | GeanyDocument * | doc, |
const gchar * | forced_enc | ||
) |
Reloads the document with the specified file encoding.
forced_enc or NULL
to auto-detect the file encoding.
doc | The document to reload. |
forced_enc | The file encoding to use or NULL to auto-detect the file encoding. |
TRUE
if the document was actually reloaded or FALSE
otherwise. Definition at line 1595 of file document.c.
References _, document_open_file_full(), document_show_message(), GeanyDocument::editor, file_prefs, GeanyDocument::file_type, GeanyDocumentPrivate::info_bars, GeanyFilePrefs::keep_edit_history_on_reload, MSG_TYPE_POST_RELOAD, MSG_TYPE_RELOAD, MSG_TYPE_RESAVE, NULL, on_keep_edit_history_on_reload_response(), pos, GeanyDocument::priv, GeanyDocument::readonly, GeanyEditor::sci, sci_get_current_position(), and GeanyFilePrefs::show_keep_edit_history_on_reload_msg.
Referenced by document_reload_prompt(), monitor_reload_file(), on_keep_edit_history_on_reload_response(), on_monitor_reload_file_response(), and on_reload_all().
gboolean document_reload_prompt | ( | GeanyDocument * | doc, |
const gchar * | forced_enc | ||
) |
Definition at line 1635 of file document.c.
References _, GeanyDocument::changed, dialogs_show_question_full(), document_can_redo(), document_can_undo(), document_reload_force(), GeanyDocument::encoding, GeanyDocument::file_name, file_prefs, GeanyFilePrefs::keep_edit_history_on_reload, NULL, and ui_update_statusbar().
Referenced by document_action(), encodings_reload_radio_item_change_cb(), on_monitor_reload_file_response(), and on_toolbutton_reload_clicked().
gboolean document_remove_page | ( | guint | page_num | ) |
Removes the given notebook tab at page_num and clears all related information in the document list.
page_num | The notebook page number to remove. |
TRUE
if the document was actually removed or FALSE
otherwise. Definition at line 782 of file document.c.
References document_new_file_if_non_open(), remove_page(), and ui_prefs.
Referenced by document_close().
void document_rename_file | ( | GeanyDocument * | doc, |
const gchar * | new_filename | ||
) |
Renames the file in doc to new_filename.
Only the file on disk is actually renamed, you still have to call document_save_file_as() to change the doc object. It also stops monitoring for file changes to prevent receiving too many file change events while renaming. File monitoring is setup again in document_save_file_as().
doc | The current document which should be renamed. |
new_filename | The new filename in UTF-8 encoding. |
Definition at line 1749 of file document.c.
References _, dialogs_show_msgbox_with_secondary(), document_stop_file_monitoring(), errno, GeanyDocument::file_name, and utils_get_locale_from_utf8().
Referenced by handle_save_as().
gint document_replace_all | ( | GeanyDocument * | doc, |
const gchar * | find_text, | ||
const gchar * | replace_text, | ||
const gchar * | original_find_text, | ||
const gchar * | original_replace_text, | ||
GeanyFindFlags | flags | ||
) |
Definition at line 2623 of file document.c.
References count, document_replace_range(), GeanyDocument::editor, NULL, GeanyEditor::sci, sci_get_length(), and show_replace_summary().
Referenced by on_replace_dialog_response(), and replace_in_session().
|
static |
Definition at line 2483 of file document.c.
References Sci_TextToFind::chrg, count, Sci_CharacterRange::cpMax, Sci_CharacterRange::cpMin, GeanyDocument::editor, Sci_TextToFind::lpstrText, NULL, GeanyDocument::readonly, sci, GeanyEditor::sci, sci_end_undo_action(), sci_goto_pos(), sci_start_undo_action(), and search_replace_range().
Referenced by document_replace_all(), and document_replace_sel().
void document_replace_sel | ( | GeanyDocument * | doc, |
const gchar * | find_text, | ||
const gchar * | replace_text, | ||
const gchar * | original_find_text, | ||
const gchar * | original_replace_text, | ||
GeanyFindFlags | flags | ||
) |
Definition at line 2520 of file document.c.
References count, document_replace_range(), GeanyDocument::editor, editor_get_eol_char_len(), INVALID_POSITION, line, MAX, NULL, SC_SEL_RECTANGLE, GeanyEditor::sci, sci_end_undo_action(), sci_get_line_from_position(), sci_get_line_length(), sci_get_lines_selected(), sci_get_pos_at_line_sel_end(), sci_get_pos_at_line_sel_start(), sci_get_position_from_line(), sci_get_selection_end(), sci_get_selection_mode(), sci_get_selection_start(), sci_set_selection_end(), sci_set_selection_mode(), sci_set_selection_start(), sci_start_undo_action(), show_replace_summary(), and utils_beep().
Referenced by on_replace_dialog_response().
gint document_replace_text | ( | GeanyDocument * | doc, |
const gchar * | find_text, | ||
const gchar * | original_find_text, | ||
const gchar * | replace_text, | ||
GeanyFindFlags | flags, | ||
gboolean | search_backwards | ||
) |
Definition at line 2397 of file document.c.
References document_find_text(), GeanyDocument::editor, GEANY_FIND_REGEXP, geany_match_info_free(), match(), NULL, GeanyEditor::sci, sci_get_selection_end(), sci_get_selection_start(), sci_goto_pos(), sci_set_selection_end(), sci_set_selection_start(), search_replace_match(), and utils_beep().
Referenced by on_replace_dialog_response().
gboolean document_save_file | ( | GeanyDocument * | doc, |
gboolean | force | ||
) |
Saves the document.
Also shows the Save As dialog if necessary. If the file is not modified, this function may do nothing unless force is set to TRUE
.
Saving may include replacing tabs with spaces, stripping trailing spaces and adding a final new line at the end of the file, depending on user preferences. Then the "document-before-save"
signal is emitted, allowing plugins to modify the document before it is saved, and data is actually written to disk.
On successful saving:
"document-save"
signal is emitted for plugins.doc->file_name
has an absolute path unless you want the Save As dialog to be shown. A NULL
value also shows the dialog. This behaviour was added in Geany 1.22.doc | The document to save. |
force | Whether to save the file even if it is not modified. |
TRUE
if the file was saved or FALSE
if the file could not or should not be saved. Definition at line 2103 of file document.c.
References _, GeanyDocument::changed, GeanyEncoding::charset, dialogs_show_msgbox_with_secondary(), dialogs_show_save_as(), GeanyFilePrefs::disk_check_timeout, DOC_FILENAME, document_check_disk_status(), document_need_save_as(), document_set_filetype(), document_show_tab(), document_update_tab_label(), document_update_timestamp(), GeanyDocument::editor, editor_ensure_final_newline(), editor_replace_tabs(), editor_strip_trailing_spaces(), GeanyDocument::encoding, encodings, encodings_is_unicode_charset(), GeanyFilePrefs::ensure_convert_new_lines, GeanyDocumentPrivate::file_disk_status, FILE_IGNORE, GeanyDocument::file_name, FILE_OK, file_prefs, GeanyDocument::file_type, GeanyFilePrefs::final_new_line, GEANY_ENCODING_NONE, GEANY_FILETYPES_MAKE, geany_object, GeanyDocument::has_bom, GeanyFiletype::id, main_status, msgwin_status_add(), NULL, GeanyDocument::priv, project_get_file_prefs(), GeanyDocumentPrivate::protected, GeanyDocument::readonly, GeanyDocument::real_path, GeanyFilePrefs::replace_tabs, save_convert_to_encoding(), save_doc(), save_file_handle_infobars(), GeanyEditor::sci, sci_convert_eols(), sci_get_eol_mode(), sci_get_length(), sci_get_text(), sci_set_savepoint(), SETPTR, store_saved_encoding(), GeanyFilePrefs::strip_trailing_spaces, ui_set_statusbar(), ui_update_statusbar(), GeanyFilePrefs::use_safe_file_saving, utils_beep(), utils_get_locale_from_utf8(), and utils_str_equal().
Referenced by auto_save(), dialogs_show_unsaved_file(), document_action(), document_save_file_as(), instantsave_document_new_cb(), on_build_menu_item(), on_monitor_reload_file_response(), on_save1_activate(), on_save_all1_activate(), and save_on_focus_out_idle().
gboolean document_save_file_as | ( | GeanyDocument * | doc, |
const gchar * | utf8_fname | ||
) |
Saves the document, detecting the filetype.
doc | The document for the file to save. |
utf8_fname | The new name for the document, in UTF-8, or NULL . |
TRUE
if the file was saved or FALSE
if the file could not be saved.Definition at line 1815 of file document.c.
References document_get_current(), document_need_save_as(), document_save_file(), document_set_filetype(), GeanyDocument::editor, GeanyDocumentPrivate::file_disk_status, FILE_IGNORE, GeanyDocument::file_name, GeanyDocument::file_type, filetypes_detect_from_document(), filetypes_select_radio_item(), GEANY_FILETYPES_NONE, GeanyFiletype::id, ignore_callback, monitor_file_setup(), NULL, GeanyDocument::priv, GeanyDocumentPrivate::protected, GeanyDocument::readonly, GeanyDocument::real_path, replace_header_filename(), GeanyEditor::sci, sci_set_readonly(), SETPTR, ui_add_recent_document(), and unprotect_document().
Referenced by handle_save_as().
gboolean document_search_bar_find | ( | GeanyDocument * | doc, |
const gchar * | text, | ||
gboolean | inc, | ||
gboolean | backwards | ||
) |
Definition at line 2241 of file document.c.
References _, Sci_TextToFind::chrg, Sci_TextToFind::chrgText, Sci_CharacterRange::cpMax, Sci_CharacterRange::cpMin, GeanyDocument::editor, editor_line_in_view(), editor_scroll_to_line(), line, Sci_TextToFind::lpstrText, NULL, GeanyEditor::sci, sci_ensure_line_is_visible(), sci_find_text(), sci_get_length(), sci_get_line_from_position(), sci_get_selection_end(), sci_get_selection_start(), sci_goto_pos(), sci_scroll_caret(), sci_set_selection_end(), sci_set_selection_start(), text, ui_set_statusbar(), and utils_beep().
Referenced by do_toolbar_search(), and on_toolbutton_search_clicked().
void document_set_data | ( | GeanyDocument * | doc, |
const gchar * | key, | ||
gpointer | data | ||
) |
Definition at line 3838 of file document.c.
References GeanyDocumentPrivate::data, and GeanyDocument::priv.
void document_set_data_full | ( | GeanyDocument * | doc, |
const gchar * | key, | ||
gpointer | data, | ||
GDestroyNotify | free_func | ||
) |
Definition at line 3844 of file document.c.
References GeanyDocumentPrivate::data, and GeanyDocument::priv.
Referenced by plugin_set_document_data_full().
void document_set_encoding | ( | GeanyDocument * | doc, |
const gchar * | new_encoding | ||
) |
Sets the encoding of a document.
This function only set the encoding of the document, it does not any conversions. The new encoding is used when e.g. saving the file.
doc | The document to use. |
new_encoding | The encoding to be set for the document. |
Definition at line 2879 of file document.c.
References GeanyDocument::encoding, encodings_is_unicode_charset(), main_widgets, NULL, ui_lookup_widget(), ui_update_statusbar(), utils_str_equal(), and GeanyMainWidgets::window.
Referenced by document_clone(), document_redo(), document_undo(), and encodings_radio_item_change_cb().
void document_set_filetype | ( | GeanyDocument * | doc, |
GeanyFiletype * | type | ||
) |
Sets the filetype of the document (which controls syntax highlighting and tags)
doc | The document to use. |
type | The filetype. |
Definition at line 2826 of file document.c.
References document_apply_indent_settings(), document_load_config(), GeanyDocument::editor, editor_get_indent_prefs(), GeanyDocument::encoding, GeanyDocument::file_name, GeanyDocument::file_type, filetypes, geany_debug(), GEANY_FILETYPES_NONE, geany_object, GeanyFiletype::id, GeanyEditor::indent_type, GeanyEditor::indent_width, GeanyFiletype::name, NULL, sidebar_openfiles_update(), GeanyIndentPrefs::type, ui_document_show_hide(), and GeanyIndentPrefs::width.
Referenced by document_new_file(), document_open_file_full(), document_save_file(), document_save_file_as(), filetypes_reload_extensions(), instantsave_document_new_cb(), and on_filetype_change().
void document_set_text_changed | ( | GeanyDocument * | doc, |
gboolean | changed | ||
) |
Updates the tab labels, the status bar, the window title and some save-sensitive buttons according to the document's save state.
This is called by Geany mostly when opening or saving files.
doc | The document to use. |
changed | Whether the document state should indicate changes have been made. |
Definition at line 460 of file document.c.
References GeanyDocument::changed, main_status, NULL, ui_save_buttons_toggle(), ui_set_window_title(), ui_update_statusbar(), and ui_update_tab_status().
Referenced by document_clone(), document_new_file(), document_open_file_full(), document_redo_add(), document_undo_add_internal(), document_undo_clear(), monitor_resave_missing_file(), on_config_file_clicked(), on_editor_notify(), on_monitor_reload_file_response(), and update_changed_state().
|
static |
Definition at line 3432 of file document.c.
References document_get_notebook_child(), format, geany_wrap_label_new(), gtk_widget_show_all(), label, NULL, and text.
Referenced by document_reload_force(), monitor_reload_file(), and monitor_resave_missing_file().
void document_show_tab | ( | GeanyDocument * | doc | ) |
Definition at line 1273 of file document.c.
References document_get_notebook_page(), main_widgets, and GeanyMainWidgets::notebook.
Referenced by dialogs_show_unsaved_file(), document_open_file_full(), document_save_file(), editor_goto_pos(), main_handle_filename(), notebook_switch_tablastused(), on_save_all1_activate(), openfiles_go_to_selection(), save_file_handle_infobars(), and tab_bar_menu_activate_cb().
|
static |
Definition at line 549 of file document.c.
References GeanyDocumentPrivate::monitor, NULL, and GeanyDocument::priv.
Referenced by document_rename_file(), monitor_file_setup(), and remove_page().
void document_try_focus | ( | GeanyDocument * | doc, |
GtkWidget * | source_widget | ||
) |
Definition at line 595 of file document.c.
References DOC_VALID, GeanyDocument::editor, main_widgets, NULL, GeanyDocument::priv, sci, GeanyEditor::sci, GeanyDocumentPrivate::tag_tree, and GeanyMainWidgets::window.
Referenced by change_focus_to_editor(), document_new_file(), and on_idle_focus().
void document_undo | ( | GeanyDocument * | doc | ) |
Definition at line 2985 of file document.c.
References UndoReloadData::actions_count, undo_action::data, document_redo_add(), document_set_encoding(), document_undo(), GeanyDocument::editor, editor_get_eol_char_mode(), GeanyDocument::encoding, UndoReloadData::eol_mode, geany_debug(), GeanyDocument::has_bom, NULL, GeanyDocument::priv, GeanyEditor::sci, sci_get_eol_mode(), sci_set_eol_mode(), sci_undo(), undo_action::type, ui_document_show_hide(), ui_update_popup_reundo_items(), ui_update_statusbar(), GeanyDocumentPrivate::undo_actions, UNDO_BOM, UNDO_ENCODING, UNDO_EOL, UNDO_RELOAD, UNDO_SCINTILLA, and update_changed_state().
Referenced by document_undo(), and on_undo1_activate().
void document_undo_add | ( | GeanyDocument * | doc, |
guint | type, | ||
gpointer | data | ||
) |
Definition at line 2955 of file document.c.
References document_undo_add_internal(), document_undo_clear_stack(), GeanyDocument::priv, and GeanyDocumentPrivate::redo_actions.
Referenced by convert_eol(), document_open_file_full(), encodings_radio_item_change_cb(), on_editor_notify(), and on_menu_write_unicode_bom1_toggled().
|
static |
Definition at line 2935 of file document.c.
References GeanyDocument::changed, undo_action::data, document_set_text_changed(), NULL, GeanyDocument::priv, undo_action::type, ui_update_popup_reundo_items(), GeanyDocumentPrivate::undo_actions, and UNDO_SCINTILLA.
Referenced by document_redo(), and document_undo_add().
|
static |
Definition at line 2921 of file document.c.
References document_set_text_changed(), document_undo_clear_stack(), GeanyDocument::editor, main_status, NULL, GeanyDocument::priv, GeanyDocumentPrivate::redo_actions, and GeanyDocumentPrivate::undo_actions.
Referenced by document_open_file_full(), and remove_page().
|
static |
Definition at line 2899 of file document.c.
References undo_action::data, NULL, undo_action::type, UNDO_ENCODING, and UNDO_RELOAD.
Referenced by document_undo_add(), and document_undo_clear().
void document_update_tab_label | ( | GeanyDocument * | doc | ) |
Definition at line 430 of file document.c.
References DOC_FILENAME, document_get_basename_for_display(), NULL, GeanyDocument::priv, and GeanyDocumentPrivate::tab_label.
Referenced by document_save_file(), and notebook_new_tab().
void document_update_tag_list_in_idle | ( | GeanyDocument * | doc | ) |
Definition at line 2772 of file document.c.
References GeanyEditorPrefs::autocompletion_update_freq, editor_prefs, GeanyDocument::file_type, filetype_has_tags(), NULL, on_document_update_tag_list_idle(), GeanyDocument::priv, and GeanyDocumentPrivate::tag_list_update_source.
Referenced by on_editor_notify().
void document_update_tags | ( | GeanyDocument * | doc | ) |
Definition at line 2647 of file document.c.
References app, DOC_VALID, document_highlight_tags(), GeanyDocument::editor, GeanyDocument::file_name, GeanyDocument::file_type, filetype_has_tags(), GeanyFiletype::lang, name, NULL, GeanyEditor::sci, sci_get_length(), SCI_GETCHARACTERPOINTER, sidebar_update_tag_list(), GeanyDocument::tm_file, tm_source_file_get_lang_name(), tm_source_file_new(), GeanyApp::tm_workspace, tm_workspace_add_source_file_noupdate(), tm_workspace_update_source_file_buffer(), and utils_get_locale_from_utf8().
Referenced by cb_func_document_action(), document_load_config(), and on_document_update_tag_list_idle().
|
static |
Definition at line 1668 of file document.c.
References get_mtime(), GeanyDocumentPrivate::mtime, NULL, and GeanyDocument::priv.
Referenced by document_save_file().
|
static |
Definition at line 3579 of file document.c.
References GeanyDocument::editor, on_sci_key(), and GeanyEditor::sci.
Referenced by monitor_reload_file(), and monitor_resave_missing_file().
|
static |
Definition at line 3381 of file document.c.
References document_close(), documents, foreach_document, and main_status.
Referenced by document_close_all().
|
static |
Definition at line 3820 of file document.c.
G_DEFINE_BOXED_TYPE | ( | GeanyDocument | , |
document | , | ||
copy_ | , | ||
free_ | |||
) |
|
static |
Definition at line 1680 of file document.c.
References GeanyDocument::editor, line, GeanyEditor::sci, sci_get_char_at(), sci_get_line_from_position(), and sci_get_position_from_line().
Referenced by save_convert_to_encoding().
|
static |
Definition at line 926 of file document.c.
References _, errno, error(), NULL, ui_set_statusbar(), USE_GIO_FILE_OPERATIONS, and utils_get_utf8_from_locale().
Referenced by document_check_disk_status(), document_update_timestamp(), and load_text_file().
|
static |
Definition at line 161 of file document.c.
References utils_get_locale_from_utf8(), and utils_get_real_path().
Referenced by document_find_by_filename().
|
static |
Definition at line 976 of file document.c.
References _, FileData::bom, FileData::data, dialogs_show_msgbox(), FileData::enc, encodings_convert_to_utf8_auto(), get_mtime(), FileData::len, main_status, FileData::mtime, NULL, FileData::readonly, ui_set_statusbar(), and USE_GIO_FILE_OPERATIONS.
Referenced by document_open_file_full().
|
static |
Definition at line 301 of file document.c.
References locate_sci_in_container(), NULL, and sci.
Referenced by document_get_from_notebook_child(), and locate_sci_in_container().
|
static |
Definition at line 561 of file document.c.
References GeanyFilePrefs::disk_check_timeout, document_stop_file_monitoring(), GeanyDocumentPrivate::file_disk_status, GeanyDocument::file_name, FILE_OK, file_prefs, GeanyDocumentPrivate::is_remote, GeanyDocumentPrivate::monitor, NULL, GeanyDocument::priv, and utils_get_locale_from_utf8().
Referenced by document_new_file(), document_open_file_full(), document_save_file_as(), and save_doc().
|
static |
Definition at line 3588 of file document.c.
References _, GeanyDocument::changed, document_reload_force(), document_show_message(), enable_key_intercept(), GeanyDocument::encoding, GeanyDocument::file_name, file_prefs, GeanyDocumentPrivate::info_bars, MSG_TYPE_RELOAD, NULL, on_monitor_reload_file_response(), GeanyDocument::priv, protect_document(), GeanyFilePrefs::reload_clean_doc_on_file_change, RESPONSE_DOCUMENT_RELOAD, and RESPONSE_DOCUMENT_SAVE.
Referenced by document_check_disk_status().
|
static |
Definition at line 3643 of file document.c.
References _, document_set_text_changed(), document_show_message(), enable_key_intercept(), GeanyDocument::file_name, GeanyDocumentPrivate::info_bars, MSG_TYPE_RELOAD, MSG_TYPE_RESAVE, NULL, on_monitor_resave_missing_file_response(), GeanyDocument::priv, protect_document(), GeanyDocument::real_path, RESPONSE_DOCUMENT_SAVE, and SETPTR.
Referenced by document_check_disk_status().
|
static |
Definition at line 2755 of file document.c.
References DOC_VALID, document_update_tags(), main_status, GeanyDocument::priv, and GeanyDocumentPrivate::tag_list_update_source.
Referenced by document_update_tag_list_in_idle().
|
static |
Definition at line 612 of file document.c.
References document_try_focus(), and NULL.
Referenced by document_open_file_full().
|
static |
Definition at line 1567 of file document.c.
References document_reload_force(), GeanyDocument::encoding, file_prefs, GeanyDocumentPrivate::info_bars, GeanyFilePrefs::keep_edit_history_on_reload, MSG_TYPE_POST_RELOAD, NULL, GeanyDocument::priv, and GeanyFilePrefs::show_keep_edit_history_on_reload_msg.
Referenced by document_reload_force().
|
static |
Definition at line 3518 of file document.c.
References GeanyDocument::changed, close, document_reload_force(), document_reload_prompt(), document_save_file(), document_set_text_changed(), GeanyDocument::encoding, GeanyDocumentPrivate::info_bars, MSG_TYPE_RELOAD, NULL, GeanyDocument::priv, protect_document(), RESPONSE_DOCUMENT_RELOAD, RESPONSE_DOCUMENT_SAVE, and unprotect_document().
Referenced by monitor_reload_file().
|
static |
Definition at line 3619 of file document.c.
References close, dialogs_show_save_as(), GeanyDocumentPrivate::info_bars, MSG_TYPE_RESAVE, NULL, GeanyDocument::priv, protect_document(), RESPONSE_DOCUMENT_SAVE, and unprotect_document().
Referenced by monitor_resave_missing_file().
|
static |
Definition at line 3551 of file document.c.
Referenced by enable_key_intercept().
|
static |
Definition at line 1770 of file document.c.
References GeanyDocument::editor, GeanyDocument::priv, GeanyDocumentPrivate::protected, GeanyEditor::sci, sci_set_readonly(), and ui_update_tab_status().
Referenced by monitor_reload_file(), monitor_resave_missing_file(), on_monitor_reload_file_response(), and on_monitor_resave_missing_file_response().
|
static |
Definition at line 493 of file document.c.
References GeanyDocumentPrivate::colourise_needed, GeanyDocument::editor, GeanyDocument::priv, and GeanyEditor::sci.
Referenced by document_highlight_tags(), document_load_config(), and document_open_file_full().
|
static |
Definition at line 699 of file document.c.
References _, build_menu_update(), GeanyDocument::changed, GeanyDocumentPrivate::data, dialogs_show_unsaved_file(), DOC_FILENAME, document_get_from_page(), document_stop_file_monitoring(), document_undo_clear(), GeanyDocument::editor, editor_destroy(), GeanyDocument::encoding, FileEncoding::encoding, GeanyDocument::file_name, geany_object, GeanyDocument::id, GeanyDocument::is_valid, main_status, main_widgets, msgwin_status_add(), navqueue_remove_file(), GeanyMainWidgets::notebook, notebook_remove_page(), NULL, GeanyDocument::priv, GeanyDocument::real_path, GeanyDocumentPrivate::saved_encoding, sidebar_remove_document(), sidebar_update_tag_list(), GeanyDocumentPrivate::tag_tree, GeanyDocument::tm_file, tm_source_file_free(), tm_workspace_remove_source_file(), ui_add_recent_document(), ui_document_buttons_update(), ui_save_buttons_toggle(), ui_set_window_title(), and ui_update_popup_reundo_items().
Referenced by document_create(), and document_remove_page().
|
static |
Definition at line 1704 of file document.c.
References Sci_TextToFind::chrg, Sci_TextToFind::chrgText, Sci_CharacterRange::cpMax, Sci_CharacterRange::cpMin, GeanyDocument::editor, GeanyFiletype::extension, GeanyDocument::file_name, GeanyDocument::file_type, filename, GEANY_FIND_MATCHCASE, GEANY_FIND_REGEXP, GEANY_STRING_UNTITLED, Sci_TextToFind::lpstrText, NULL, GeanyEditor::sci, sci_get_position_from_line(), sci_replace_target(), sci_set_target_end(), sci_set_target_start(), search_find_text(), and SETPTR.
Referenced by document_save_file_as().
|
static |
Definition at line 1867 of file document.c.
References _, dialogs_show_msgbox_with_secondary(), GeanyDocument::editor, GeanyDocument::encoding, geany_debug(), get_line_column_from_pos(), line, NULL, GeanyEditor::sci, sci_get_text_range(), and text.
Referenced by document_save_file().
|
static |
Definition at line 2020 of file document.c.
References GeanyDocumentPrivate::is_remote, monitor_file_setup(), NULL, GeanyDocument::priv, GeanyDocument::real_path, utils_get_real_path(), utils_is_remote_path(), and write_data_to_disk().
Referenced by document_save_file().
|
static |
Definition at line 2043 of file document.c.
References _, dialogs_show_question_full(), document_show_tab(), GeanyDocument::file_name, GeanyDocumentPrivate::info_bars, MSG_TYPE_RELOAD, MSG_TYPE_RESAVE, NULL, GeanyDocument::priv, and RESPONSE_DOCUMENT_SAVE.
Referenced by document_save_file().
|
static |
Definition at line 1047 of file document.c.
References cl_options, pos, GeanyEditor::sci, sci_get_current_position(), sci_goto_line(), sci_set_current_position(), and GeanyEditor::scroll_percent.
Referenced by document_open_file_full().
|
static |
Definition at line 2456 of file document.c.
References _, count, DOC_FILENAME, filename, ngettext, and ui_set_statusbar().
Referenced by document_replace_all(), and document_replace_sel().
|
static |
Definition at line 794 of file document.c.
References GeanyDocument::encoding, FileEncoding::encoding, GeanyDocument::has_bom, FileEncoding::has_bom, GeanyDocument::priv, and GeanyDocumentPrivate::saved_encoding.
Referenced by document_new_file(), document_open_file_full(), and document_save_file().
|
static |
Definition at line 1780 of file document.c.
References GeanyDocument::editor, GeanyDocument::priv, GeanyDocumentPrivate::protected, GeanyDocument::readonly, GeanyEditor::sci, sci_set_readonly(), and ui_update_tab_status().
Referenced by document_save_file_as(), on_monitor_reload_file_response(), and on_monitor_resave_missing_file_response().
|
static |
Definition at line 2975 of file document.c.
References GeanyDocument::changed, document_set_text_changed(), GeanyDocument::editor, GeanyDocument::encoding, FileEncoding::encoding, GeanyDocument::has_bom, FileEncoding::has_bom, GeanyDocument::priv, GeanyDocumentPrivate::saved_encoding, GeanyEditor::sci, sci_is_modified(), and utils_str_equal().
Referenced by document_redo(), and document_undo().
|
static |
Definition at line 1928 of file document.c.
References _, errno, error(), file_prefs, geany_debug(), GeanyFilePrefs::gio_unsafe_save_backup, NULL, USE_GIO_FILE_OPERATIONS, and GeanyFilePrefs::use_safe_file_saving.
Referenced by save_doc().
GdkColor color |
Definition at line 3220 of file document.c.
Referenced by document_get_status_color(), load_color(), msgwin_compiler_add_string(), msgwin_goto_compiler_file_line(), msgwin_msg_add_string(), on_color_button_choose_cb(), on_color_dialog_response(), prefs_init_dialog(), process_build_output_line(), rb_erase(), rb_set_color(), set_row_color(), sidebar_openfiles_add(), sidebar_openfiles_update(), tools_color_chooser(), utils_get_hex_from_color(), utils_parse_color(), and utils_parse_color_to_bgr().
|
static |
Definition at line 107 of file document.c.
Referenced by document_create().
struct { ... } document_status_styles[] |
Referenced by document_get_status_color(), and document_get_status_widget_class().
GPtrArray* documents_array = NULL |
Definition at line 87 of file document.c.
Referenced by check_no_unsaved(), document_create(), document_finalize(), document_find_by_filename(), document_find_by_real_path(), document_find_by_sci(), document_get_from_page(), document_get_new_idx(), document_index(), document_init_doclist(), geany_data_init(), on_close_other_documents1_activate(), on_prefs_dialog_response(), on_prefs_font_choosed(), remove_doc_data(), search_find_usage(), ui_save_buttons_toggle(), and ui_set_editor_font().
GeanyFilePrefs file_prefs |
Definition at line 86 of file document.c.
Referenced by add_recent_file(), cb_func_move_tab(), check_fixed_kb(), configuration_open_files(), document_check_disk_status(), document_list_changed_cb(), document_new_file(), document_open_file_full(), document_reload_force(), document_reload_prompt(), document_save_file(), editor_get_eol_char(), editor_get_eol_char_len(), editor_get_eol_char_mode(), editor_get_eol_char_name(), encodings_convert_to_utf8_with_suggestion(), filetypes_detect_from_file_internal(), geany_data_init(), init_pref_groups(), init_stash_prefs(), load_dialog_prefs(), load_recent_files(), main_handle_filename(), main_init(), main_lib(), monitor_file_setup(), monitor_reload_file(), notebook_new_tab(), notebook_remove_page(), on_keep_edit_history_on_reload_response(), on_prefs_dialog_response(), on_reload_all(), prefs_init_dialog(), project_get_file_prefs(), recent_create_menu(), reflow_lines(), save_dialog_prefs(), save_recent_files(), update_recent_menu(), utils_write_file(), and write_data_to_disk().
gboolean loaded |
Definition at line 3221 of file document.c.
Referenced by add_group_keys(), document_get_status_color(), and preload().
const gchar* name |
Definition at line 3219 of file document.c.
Referenced by add_color_scheme_item(), add_item(), add_kb_group(), add_tag(), addCompiledTagPattern(), addLanguageRegexTable(), addLanguageTagMultiTableRegex(), addRegexTable(), addTagMultiLineRegex(), addTagMultiTableRegex(), addTagRegex(), addTagRegexInternal(), addTagRegexOption(), addToScope(), analyzeIdentifier(), analyzeKeyword(), analyzeToken(), anyEntryInScope(), anyKindEntryInScope(), anyKindsEntryInScope(), anyKindsEntryInScopeRecursive(), Scintilla::OptionSet< T >::AppendName(), applyParameter(), autocomplete_scope(), build_charclass(), build_collating_symbol(), build_equiv_class(), capture_anchor(), capture_target(), compare_top_level_names(), copy_ft_groups(), cppIsIgnoreToken(), create_temp_file(), createCTSTTags(), createPascalTag(), createRTags(), createTag(), Scintilla::OptionSet< T >::DefineProperty(), Scintilla::OptionSet< T >::DescribeProperty(), LexerAsm::DescribeProperty(), LexerBash::DescribeProperty(), LexerBasic::DescribeProperty(), LexerCPP::DescribeProperty(), LexerD::DescribeProperty(), LexerHaskell::DescribeProperty(), LexerHTML::DescribeProperty(), LexerJulia::DescribeProperty(), LexerPerl::DescribeProperty(), LexerPython::DescribeProperty(), LexerRust::DescribeProperty(), LexerSQL::DescribeProperty(), LexerVerilog::DescribeProperty(), document_apply_indent_settings(), document_get_status_color(), document_update_tags(), emitRubyTag(), enableLanguageKindForName(), extract_dim(), extract_name(), fieldColprintAddLine(), filetype_make_title(), filetypes_lookup_by_name(), fill_find_tags_array(), fill_find_tags_array_prefix(), fillGuestRequest(), find_scope_members(), find_shebang(), find_tree_iter_dir(), findAbcTags(), findAsciidocTags(), findAsmTags(), findConfTags(), DynamicLibraryImpl::FindFunction(), findHaskellTags(), findHxTags(), findLuaTags(), findMakeTags(), findMarkdownTags(), findMatlabTags(), findNsisTags(), findPascalTags(), findPerlTags(), findPythonTags(), findRstTags(), findShTags(), findTag(), findTclTags(), findTxt2tagsTags(), findVerilogTags(), foreachEntriesInScope(), ft_init(), geany_entry_action_new(), geany_menu_button_action_new(), geany_plugin_register(), get_tree_path_filename(), getFieldTypeForName(), getKindForName(), getKindIndexForName(), getNamedLanguage(), getNamedLanguageFull(), getPtagTypeForName(), getRoleForName(), getTableIndexForName(), Scintilla::Editor::GetTag(), getTagScopeInformation(), getXtagTypeForNameAndLanguage(), goto_compiler_file_line(), goto_tag(), handle_widget_property(), initForeignRefTagEntry(), initRefTagEntry(), initRegexTag(), initTagEntry(), initTagEntryFull(), inside_datatype(), isExcludedFile(), isSpecialTarget(), isTokenFunction(), kb_tree_view_change_button_clicked_cb(), keybindings_dialog_show_prefs_scroll(), kindNew(), makeAbcTag(), makeAsciidocTag(), makeAsmTag(), makeBibTag(), makeConstTag(), makeDefineTag(), makeExtraDescriptionPseudoTag(), makeFieldDescriptionPseudoTag(), makeFortranTag(), makeJsTagCommon(), makeKindDescriptionPseudoTag(), makeKindSeparatorsPseudoTags(), makeMarkdownTag(), makeNamespacePhpTag(), makePlaceholder(), makeRTag(), makeSectionAsciidocTag(), makeSectionRstTag(), makeSimplePlaceholder(), makeSimpleRefTag(), makeSimpleTag(), makeSqlTag(), makeTag(), makeTargetRstTag(), makeTclTag(), makeTxt2tagsTag(), match_colon_label(), match_keyword(), matchTagPattern(), newMacro(), newTarget(), on_name_entry_changed(), OptlibParser(), parents_table_lookup(), parse_bracket_exp(), parseClass(), parseClassOrIface(), parseColonImportExpr(), parseConst(), parseConstant(), parseDomain(), parseEnumBlock(), parseEvent(), parseFn(), parseFunction(), parseIdentifier(), parseImpl(), parseImport(), parseImports(), parseIndex(), parseInterface(), parseInterfaceBlock(), parseMacro(), parseMethods(), parseMXML(), parsePackage(), parsePublication(), parseQualifiedType(), parserNew(), parseRubyOperator(), parseService(), parseShortFunction(), parseStatement(), parseStruct(), parseStructureStmt(), parseSubProgram(), parseSynonym(), parseTable(), parseTag(), parseTagRegex(), parseTrait(), parseTrigger(), parseType(), parseUI5(), parseValue(), parseVar(), parseVariable(), parseView(), plugin_check_version(), plugin_init(), prefs_kb_search_name(), prefs_show_dialog(), prepareTag(), printFeatureList(), printPtags(), process_name(), processDumpOptionsOption(), processLangDefineKind(), processLangDefineRole(), processLanguageDefineOption(), processListFeaturesOption(), processParamOption(), processPseudoTags(), Scintilla::OptionSet< T >::PropertyGet(), Scintilla::OptionSet< T >::PropertySet(), Scintilla::OptionSet< T >::PropertyType(), LexerAsm::PropertyType(), LexerBash::PropertyType(), LexerBasic::PropertyType(), LexerCPP::PropertyType(), LexerD::PropertyType(), LexerHaskell::PropertyType(), LexerHTML::PropertyType(), LexerJulia::PropertyType(), LexerPerl::PropertyType(), LexerPython::PropertyType(), LexerRust::PropertyType(), LexerSQL::PropertyType(), LexerVerilog::PropertyType(), read_extensions(), read_group(), read_named_style(), read_template(), readAndEmitTag(), readDirective(), readIdentifier(), readOperator(), readPackageName(), readPreProc(), register_named_icon(), renderFieldExtras(), renderFieldKindName(), replacementTruncate(), run_dialog(), scanSeparators(), sci_set_property(), Scintilla::ViewStyle::SetStyleFontName(), snippets_complete_constructs(), snippets_find_completion_by_name(), stash_group_new(), strip_type(), styleset_init_from_mapping(), symbols_goto_tag(), tagNameList(), tb_editor_drag_data_get_cb(), tb_editor_set_item_values(), tempFile(), tm_ctags_get_kind_from_name(), tm_ctags_get_named_lang(), tm_source_file_get_named_lang(), tm_source_file_init(), tm_source_file_new(), tm_tags_find(), tm_workspace_find(), tm_workspace_find_scope_members(), toolbar_configure(), toolbar_get_action_by_name(), toolbar_get_widget_by_name(), toolbar_get_widget_child_by_name(), ui_builder_get_object(), ui_document_show_hide(), ui_guess_object_name(), ui_init_builder(), update_config(), update_parents_table(), update_tree_tags(), updateSiblingField(), updateSiblingXtag(), utils_get_initials(), LexerCPP::WordListSet(), LexerVerilog::WordListSet(), writeXrefPtagEntry(), and xtagEqualByNameAndLanguage().