GnuCash
2.6.99
|
Functions to load, save and get gui state. More...
#include "qof.h"
Go to the source code of this file.
Macros | |
#define | STATE_FILE_TOP "Top" |
#define | STATE_FILE_BOOK_GUID "BookGuid" |
#define | STATE_FILE_EXT ".gcm" |
Functions | |
GKeyFile * | gnc_state_load (const QofSession *session) |
void | gnc_state_save (const QofSession *session) |
GKeyFile * | gnc_state_get_current (void) |
gint | gnc_state_drop_sections_for (const gchar *partial_name) |
Functions to load, save and get gui state.
The state of the gui (number of open windows, number of open pages in each window, window positions and sizes, page content of open pages,...) is loaded/saved from to a file when opening/closing a book. These functions help in loading/saving from/to the appropriate state file for a given session.
Note that each gui component is responsible itself to actually add/read its state to/from the state file. The functions in gnc-state only help to link the in-memory state file to an actual file on disk.
Definition in file gnc-state.h.