Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

workspace.h File Reference

Interface to workspace module. More...

#include <gtk/gtk.h>

Include dependency graph for workspace.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.


enum  ToolbarOptions { TOOLBAR_ICONS = 1, TOOLBAR_TEXT = 2, TOOLBAR_BOTH = 3 }
 Toolbar format options. More...


int ws_get_changed (void)
 Get the change state of the workspace.

gint ws_get_toolbarconf (void)
 Get the toolbar configuration.

void ws_init ()
 Initialise the workspace.

void ws_load_file (char *fname)
 Load a workspace from a file.

int ws_save_file (char *fname)
 Save the workspace to a file.

void ws_set_toolbarconf (gint tbconf)
 Set the toolbar configuration.

Detailed Description

Interface to workspace module.

Darryl Luff

Definition in file workspace.h.

Enumeration Type Documentation

enum ToolbarOptions

Toolbar format options.

Enumeration values:
TOOLBAR_ICONS  Display icons only.
TOOLBAR_TEXT  Display text only.
TOOLBAR_BOTH  Display both text and icons.

Definition at line 32 of file workspace.h.

Function Documentation

void ws_load_file char *    fn

Load a workspace from a file.

Sets up the workspace variable, and loads the queries, but does NOT disconnect the old database.

fn  The filename to open.

Definition at line 70 of file workspace.c.

References luaif_runfile().

Referenced by gui_get_workspace().

int ws_save_file char *    fn

Save the workspace to a file.

fn  The filename to save the file to.
An integer error code. -1 = error opening file. 0 = success.

Definition at line 84 of file workspace.c.

References _a_buf::b_dat, buf_free(), buf_new(), buf_strcat(), buf_strcpy(), cfg_get_default_wsname(), gui_connection_ok(), gui_get_connection_url(), map_chars(), and query_get_text_no().

Generated on Sun May 9 19:19:26 2004 for GtkSQL by doxygen1.2.18