GnuCash
2.6.99
|
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 | GncPluginFileHistoryPrivate |
struct | GncPluginFileHistory |
struct | GncPluginFileHistoryClass |
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" |
#define | PLUGIN_UI_FILENAME "gnc-plugin-file-history-ui.xml" |
#define | GNOME1_HISTORY "History" |
#define | GNOME1_MAXFILES "MaxFiles" |
#define | GNC_PLUGIN_FILE_HISTORY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GNC_TYPE_PLUGIN_FILE_HISTORY, GncPluginFileHistoryPrivate)) |
#define | GNC_TYPE_PLUGIN_FILE_HISTORY (gnc_plugin_file_history_get_type ()) |
#define | GNC_PLUGIN_FILE_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_FILE_HISTORY, GncPluginFileHistory)) |
#define | GNC_PLUGIN_FILE_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_FILE_HISTORY, GncPluginFileHistoryClass)) |
#define | GNC_IS_PLUGIN_FILE_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_FILE_HISTORY)) |
#define | GNC_IS_PLUGIN_FILE_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_FILE_HISTORY)) |
#define | GNC_PLUGIN_FILE_HISTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_FILE_HISTORY, GncPluginFileHistoryClass)) |
#define | GNC_PLUGIN_FILE_HISTORY_NAME "gnc-plugin-file-history" |
Typedefs | |
typedef struct GncPluginFileHistoryPrivate | GncPluginFileHistoryPrivate |
Functions | |
void | gnc_history_add_file (const char *newfile) |
void | gnc_history_remove_file (const char *oldfile) |
char * | gnc_history_get_last (void) |
GType | gnc_plugin_file_history_get_type (void) |
GncPlugin * | gnc_plugin_file_history_new (void) |
#define PLUGIN_ACTIONS_NAME "gnc-plugin-file-history-actions" |
The label given to the main window for this plugin.
Definition at line 72 of file gnc-plugin-file-history.c.
#define PLUGIN_UI_FILENAME "gnc-plugin-file-history-ui.xml" |
The name of the UI description file for this plugin.
Definition at line 74 of file gnc-plugin-file-history.c.
typedef struct GncPluginFileHistoryPrivate GncPluginFileHistoryPrivate |
The instance private data for a file history plugin. This data structure is unused.
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 159 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 270 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. |
Remove all occurences of a file name from the history 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 228 of file gnc-plugin-file-history.c.
GType gnc_plugin_file_history_get_type | ( | void | ) |
Get the type of a file history plugin.
Definition at line 492 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 575 of file gnc-plugin-file-history.c.