Public Member Functions | |
virtual GtkWindow * | GetWindow ()=0 |
void | SetMenu (const string &menuname, GtkWidget *menu) |
GtkWidget * | GetMenu (const string &name) |
Tool * | GetActiveTool () |
gcp::Document * | GetActiveDocument () |
void | SetActiveDocument (gcp::Document *pDoc) |
Tool * | GetTool (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) |
void | RegisterOptions (GOptionEntry const *entries, char const *translation_domain=GETTEXT_PACKAGE) |
void | AddOptions (GOptionContext *context) |
Protected Attributes | |
int | m_CurZ |
gcp::Document * | m_pActiveDoc |
Target * | m_pActiveTarget |
map< string, GtkWidget * > | Menus |
map< string, GtkWidget * > | ToolItems |
map< string, GtkWidget * > | Toolbars |
map< string, Tool * > | m_Tools |
map< string, GCallback > | Callbacks |
Tool * | m_pActiveTool |
xmlDocPtr | XmlDoc |
unsigned | m_NumWindow |
Static Protected Attributes | |
static bool | m_bInit |
static bool | m_Have_Ghemical |
static bool | m_Have_InChI |
Definition at line 54 of file gcp/application.h.
virtual GtkWindow* gcp::Application::GetWindow | ( | ) | [pure virtual] |
Reimplemented from gcu::Application.
bool gcp::Application::FileProcess | ( | const gchar * | filename, | |
const gchar * | mime_type, | |||
bool | bSave, | |||
GtkWindow * | window, | |||
gcu::Document * | pDoc = NULL | |||
) | [virtual] |
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. |
Reimplemented from gcu::Application.
void gcp::Application::AddMenuCallback | ( | BuildMenuCb | cb | ) |
cb,: | the BuildMenuCb callback to call when building the menu. |
void gcp::Application::BuildMenu | ( | GtkUIManager * | manager | ) |
manager,: | the GtkUIManager to populate. |
void gcp::Application::RegisterOptions | ( | GOptionEntry const * | entries, | |
char const * | translation_domain = GETTEXT_PACKAGE | |||
) |
entries,: | the entries to register. | |
trzanslation_domain,: | the entries to register. |
void gcp::Application::AddOptions | ( | GOptionContext * | context | ) |
cb,: | a GOptionContext |