|
The Gnome Chemistry Utils
0.14.9
|
#include <gcugtk/stringdlg.h>
Public Types | |
| enum | data_type { SMILES, INCHI, INCHIKEY } |
Public Member Functions | |
| StringDlg (gcu::Document *pDoc, std::string const &data, enum data_type type) | |
| virtual | ~StringDlg () |
| bool | Apply () |
| void | Copy () |
| void | OnGetData (GtkClipboard *clipboard, GtkSelectionData *selection_data, guint info) |
Public Member Functions inherited from gcugtk::Dialog | |
| Dialog (Application *App, char const *filename, const char *windowname, char const *domainname, gcu::DialogOwner *owner=NULL, void(*extra_destroy)(gpointer)=NULL, gpointer data=NULL) throw (std::runtime_error) | |
| virtual | ~Dialog () |
| virtual void | Destroy () |
| virtual void | Closed () |
| GtkWindow * | GetWindow () |
| void | Present () |
| void | SetTransientFor (GtkWindow *window) |
Public Member Functions inherited from gcugtk::UIBuilder | |
| UIBuilder (char const *filename, char const *domain) throw (std::runtime_error) | |
| virtual | ~UIBuilder () |
| GtkWidget * | GetWidget (char const *wname) |
| GtkWidget * | GetRefdWidget (char const *wname) |
| GObject * | GetObject (char const *name) |
| GtkBuilder * | GetBuilder (void) const |
Public Member Functions inherited from gcu::Dialog | |
| Dialog (Application *App, const char *windowname, DialogOwner *owner=NULL) throw (std::runtime_error) | |
| void | SetRealName (char const *name, DialogOwner *owner) throw (std::runtime_error) |
| std::string & | GetWindowName () |
| Application * | GetApp (void) |
Additional Inherited Members | |
Protected Member Functions inherited from gcugtk::Dialog | |
| bool | GetNumber (GtkEntry *Entry, double *x, CheckType c=NoCheck, double min=0, double max=0) |
Protected Attributes inherited from gcugtk::Dialog | |
| GtkWindow * | dialog |
Protected Attributes inherited from gcu::Dialog | |
| Application * | m_App |
Represents the dialog used to display the InChI or canonical SMILES of a molecule.
Definition at line 42 of file stringdlg.h.
The string types supported by StringDlg.
| Enumerator | |
|---|---|
| SMILES |
SMILES representation of a molecule. |
| INCHI |
InChI of a molecule. |
| INCHIKEY |
InChIKey of a molecule. |
Definition at line 48 of file stringdlg.h.
| gcugtk::StringDlg::StringDlg | ( | gcu::Document * | pDoc, |
| std::string const & | data, | ||
| enum data_type | type | ||
| ) |
| pDoc | the document owning the dialog. |
| data | the string to display. |
| type | the type of the data. |
Builds a dialog showing the string and display it. type is used to select an appropriate title for the dialog box.
|
virtual |
The destructor.
|
virtual |
Called by the framework to save the string to a file upon user request.
Reimplemented from gcugtk::Dialog.
| void gcugtk::StringDlg::Copy | ( | ) |
Called by the framework when the user clicks the "Copy" button.
| void gcugtk::StringDlg::OnGetData | ( | GtkClipboard * | clipboard, |
| GtkSelectionData * | selection_data, | ||
| guint | info | ||
| ) |
| clipboard | the clipboard requesting the data. |
| selection_data | the GtkSelectionData to which the string should be copied. |
| info | the type of data requested. Unused since only ASCII strings are supported. |
Called by the framework to get the actual data for the clipboard.
1.8.8