gcp::Application Class Reference

Inheritance diagram for gcp::Application:

gcu::Application gcu::DialogOwner List of all members.

Public Member Functions

virtual GtkWindow * GetWindow ()=0
void SetMenu (const string &menuname, GtkWidget *menu)
GtkWidget * GetMenu (const string &name)
ToolGetActiveTool ()
gcp::DocumentGetActiveDocument ()
void SetActiveDocument (gcp::Document *pDoc)
ToolGetTool (const string &name)
void SetTool (const string &toolname, Tool *tool)
GtkWidget * GetToolItem (const string &name)
void SetToolItem (const string &name, GtkWidget *w)
void SetCurZ (int Z)
int GetCurZ ()
bool FileProcess (const gchar *filename, const gchar *mime_type, bool bSave, GtkWindow *window, gcu::Document *pDoc=NULL)
xmlDocPtr GetXmlDoc ()
void SetCallback (const string &name, GCallback cb)
GCallback GetCallback (const string &name)
bool HaveGhemical ()
bool HaveInChI ()
int GetDocsNumber ()
list< string > & GetSupportedMimeTypes ()
void AddMenuCallback (BuildMenuCb cb)
void BuildMenu (GtkUIManager *manager)

Protected Attributes

int m_CurZ
gcp::Documentm_pActiveDoc
Windowm_pActiveWin
map< string, GtkWidget * > Menus
map< string, GtkWidget * > ToolItems
map< string, GtkWidget * > Toolbars
map< string, Tool * > m_Tools
map< string, GCallback > Callbacks
Toolm_pActiveTool
xmlDocPtr XmlDoc
unsigned m_NumWindow

Static Protected Attributes

static bool m_bInit
static bool m_Have_Ghemical
static bool m_Have_InChI

Detailed Description

Definition at line 53 of file gcp/application.h.


Member Function Documentation

virtual GtkWindow* gcp::Application::GetWindow (  )  [pure virtual]

Returns:
a GtkWindow if any. Should be overloaded by children classes.

Reimplemented from gcu::Application.

bool gcp::Application::FileProcess ( const gchar *  filename,
const gchar *  mime_type,
bool  bSave,
GtkWindow *  window,
gcu::Document pDoc = NULL 
) [virtual]

Parameters:
filename the uri of the file.
mime_type the mime type of the file if known.
bSave true if saving, and false if loading.
window the current top level window.
pDoc an optional document.
Called by the FileChooser when a file name has been selected. This method does nothing in the parent class and must be implemented in children classes if they use the FileChooser.

Returns:
true if no error occured.

Reimplemented from gcu::Application.

void gcp::Application::AddMenuCallback ( BuildMenuCb  cb  ) 

Parameters:
cb,: the BuildMenuCb callback to call when building the menu.
adds a callback for adding entries to the windows menus.

void gcp::Application::BuildMenu ( GtkUIManager *  manager  ) 

Parameters:
manager,: the GtkUIManager to populate.
Populates the user interface by calling all callbacks registered with AddMenuCallback.


The documentation for this class was generated from the following file:
Generated on Thu Jun 28 09:02:02 2007 for The Gnome Chemistry Utils by  doxygen 1.5.2