25 #ifndef GCU_APPLICATION_H
26 #define GCU_APPLICATION_H
65 #define GCU_CONF_DIR "gchemutils"
74 friend class ApplicationPrivate;
87 Application (std::string name, std::string datadir = DATADIR,
char const *help_name = NULL,
char const *icon_name = NULL);
101 void OnHelp (std::string s =
"");
129 virtual bool FileProcess (G_GNUC_UNUSED
const gchar* filename, G_GNUC_UNUSED
const gchar* mime_type, G_GNUC_UNUSED
bool bSave, G_GNUC_UNUSED GtkWindow *window, G_GNUC_UNUSED
Document *pDoc = NULL)
152 void ShowURI (std::string& uri);
159 void OnBug (
char const *uri = PACKAGE_BUGREPORT)
160 {std::string s (uri);
ShowURI (s);}
166 void OnWeb (
char const *uri =
"http://gchemutils.nongnu.org/")
167 {std::string s (uri);
ShowURI (s);}
175 void OnMail (
char const *MailAddress =
"mailto:gchemutils-main@nongnu.org");
258 void RegisterOptions (GOptionEntry
const *entries,
char const *translation_domain = GETTEXT_PACKAGE);
288 void RemoveDocument (Document *Doc);
292 std::string HelpName;
293 std::string HelpBrowser;
294 std::string HelpFilename;
296 std::string IconName;
297 static GOConfNode *m_ConfDir;
298 std::list<option_data> m_Options;
380 #endif // GCU_APPLICATION_H