GnuCash
5.6-150-g038405b370+
|
Files | |
file | gnc-plugin-file-history.c |
Functions providing the file history menu. | |
file | gnc-plugin-file-history.h |
Functions providing the file history menu. | |
Data Structures | |
struct | _GncPluginFileHistory |
The instance data structure for a file history plugin. More... | |
Macros | |
#define | FILENAME_STRING "filename" |
#define | MAX_HISTORY_FILES 10 /* May be any number up to 10 */ |
#define | GNC_PREFS_GROUP_HISTORY "history" |
#define | GNC_PREF_HISTORY_MAXFILES "maxfiles" |
#define | HISTORY_STRING_FILE_N "file%d" |
#define | PLUGIN_ACTIONS_NAME "gnc-plugin-file-history-actions" |
The label given to the main window for this plugin. More... | |
#define | PLUGIN_UI_FILENAME "gnc-plugin-file-history.ui" |
The name of the UI description file for this plugin. More... | |
#define | GNOME1_HISTORY "History" |
#define | GNOME1_MAXFILES "MaxFiles" |
#define | GNC_TYPE_PLUGIN_FILE_HISTORY (gnc_plugin_file_history_get_type ()) |
#define | GNC_PLUGIN_FILE_HISTORY_NAME "gnc-plugin-file-history" |
Functions | |
void | gnc_history_add_file (const char *filename) |
Add a file name to the front of the file "history list". More... | |
void | gnc_history_remove_file (const char *oldfile) |
Remove all occurrences of a file name from the history list. More... | |
gboolean | gnc_history_test_for_file (const char *oldfile) |
Test for a file name existing in the history list. More... | |
char * | gnc_history_get_last (void) |
Retrieve the name of the file most recently accessed. More... | |
GncPlugin * | gnc_plugin_file_history_new (void) |
Create a new file history plugin. More... | |
#define PLUGIN_ACTIONS_NAME "gnc-plugin-file-history-actions" |
The label given to the main window for this plugin.
Definition at line 68 of file gnc-plugin-file-history.c.
#define PLUGIN_UI_FILENAME "gnc-plugin-file-history.ui" |
The name of the UI description file for this plugin.
Definition at line 70 of file gnc-plugin-file-history.c.
void gnc_history_add_file | ( | const char * | filename | ) |
Add a file name to the front of the file "history list".
If the name already exist on the list, then it is moved from its current location to the front of the list.
filename | The name of the file to add to the list. |
Definition at line 155 of file gnc-plugin-file-history.c.
char * gnc_history_get_last | ( | void | ) |
Retrieve the name of the file most recently accessed.
This is the name at the front of the list.
Definition at line 305 of file gnc-plugin-file-history.c.
void gnc_history_remove_file | ( | const char * | oldfile | ) |
Remove all occurrences of a file name from the history list.
Move the other file names up in the list to fill the gaps.
oldfile | The name of the file to remove from the list. |
Move the other key values up in the list to fill the gaps.
oldfile | The name of the file to remove from the list. |
Definition at line 224 of file gnc-plugin-file-history.c.
gboolean gnc_history_test_for_file | ( | const char * | oldfile | ) |
Test for a file name existing in the history list.
oldfile | The name of the file to test for in the list. |
oldfile | The name of the file to test in the list. |
Definition at line 267 of file gnc-plugin-file-history.c.
GncPlugin * gnc_plugin_file_history_new | ( | void | ) |
Create a new file history plugin.
This plugin attaches the file history menu to any window that is opened.
Definition at line 597 of file gnc-plugin-file-history.c.