GnuCash  5.6-150-g038405b370+
Data Structures | Macros | Functions
gnc-plugin-file-history.c File Reference

Functions providing the file history menu. More...

#include <config.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <glib/gprintf.h>
#include <string.h>
#include "gnc-gkeyfile-utils.h"
#include "gnc-file.h"
#include "gnc-main-window.h"
#include "gnc-plugin-file-history.h"
#include "gnc-window.h"
#include "gnc-engine.h"
#include "gnc-prefs.h"
#include "gnc-uri-utils.h"
#include "gnc-gtk-utils.h"

Go to the source code of this file.

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"
 

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...
 

Detailed Description

Functions providing the file history menu.

Author
Copyright (C) 2003,2005 David Hampton hampt.nosp@m.on@e.nosp@m.mploy.nosp@m.ees..nosp@m.org

Definition in file gnc-plugin-file-history.c.