|
The Gnome Chemistry Utils
0.13.7
|
#include <gcugtk/spectrumdoc.h>
Public Member Functions | |
| SpectrumDocument () | |
| SpectrumDocument (Application *app, SpectrumView *view=NULL) | |
| ~SpectrumDocument () | |
| void | Load (char const *uri, char const *mime_type=NULL) |
| void | OnXUnitChanged (int i) |
| void | OnYUnitChanged (int i) |
| void | OnXAxisInvert (bool inverted) |
| void | OnShowIntegral () |
| void | OnTransformFID (GtkButton *btn) |
| bool | SetProperty (unsigned property, char const *value) |
| bool | Loaded () throw (gcu::LoaderError) |
| SpectrumView * | GetView (void) |
| bool | GetEmpty (void) const |
| SpectrumType | GetSpectrumType (void) const |
| SpectrumUnitType | GetXUnit (void) const |
| SpectrumUnitType | GetYUnit (void) const |
| bool | GetIntegralVisible (void) const |
Protected Attributes | |
| SpectrumView * | m_View |
The document class used for spectra. This API is still quite unstable and might change in the future.
Definition at line 268 of file spectrumdoc.h.
Default constructor
| gcugtk::SpectrumDocument::SpectrumDocument | ( | Application * | app, |
| SpectrumView * | view = NULL |
||
| ) |
| app | the application. |
| view | an optional already existing SpectrumView instance. |
Default destructor
| gcugtk::SpectrumDocument::GetEmpty | ( | void | ) | const [inline] |
Definition at line 377 of file spectrumdoc.h.
| gcugtk::SpectrumDocument::GetIntegralVisible | ( | void | ) | const [inline] |
Definition at line 396 of file spectrumdoc.h.
| gcugtk::SpectrumDocument::GetSpectrumType | ( | void | ) | const [inline] |
Definition at line 381 of file spectrumdoc.h.
| gcugtk::SpectrumDocument::GetView | ( | void | ) | [inline] |
Definition at line 373 of file spectrumdoc.h.
| gcugtk::SpectrumDocument::GetXUnit | ( | void | ) | const [inline] |
Definition at line 386 of file spectrumdoc.h.
| gcugtk::SpectrumDocument::GetYUnit | ( | void | ) | const [inline] |
Definition at line 391 of file spectrumdoc.h.
| void gcugtk::SpectrumDocument::Load | ( | char const * | uri, |
| char const * | mime_type = NULL |
||
| ) |
| uri | the uri of the spectrum file. |
| mime_type | the mime type of the spectrum file. |
Loads a spaectrum from the provided uri. Default mime type is NULL, "chemical/x-jcamp-dx" is the only one supported at the moment.
| bool gcugtk::SpectrumDocument::Loaded | ( | ) | throw (gcu::LoaderError) [virtual] |
Called by the application when the document has been loaded.
Reimplemented from gcu::Document.
Used to show or hide the integral curve for an NMR spectrum.
| void gcugtk::SpectrumDocument::OnTransformFID | ( | GtkButton * | btn | ) |
| btn | the clicked GtkButton. |
Called to transform an FID to the NMR spectrum. The label in the GtkButton might be changed.
| void gcugtk::SpectrumDocument::OnXAxisInvert | ( | bool | inverted | ) |
| inverted | whether to invert the X axis scale. |
Called to change the X axis scale order. This is used by the framework after a user made an appropriate request from the graphical interface.
| void gcugtk::SpectrumDocument::OnXUnitChanged | ( | int | i | ) |
| i | the rank of the unit to set. |
Called to change the displayed X axis unit. The values acceptable for the parameter are spectrum type dependent. This is used by the framework after a user made an appropriate request from the graphical interface.
| void gcugtk::SpectrumDocument::OnYUnitChanged | ( | int | i | ) |
| i | the rank of the unit to set. |
Called to change the displayed Y axis unit. The values acceptable for the parameter are spectrum type dependent. This is used by the framework after a user made an appropriate request from the graphical interface.
| bool gcugtk::SpectrumDocument::SetProperty | ( | unsigned | property, |
| char const * | value | ||
| ) | [virtual] |
| property | the property id as defined in objprops.h |
| value | the property value as a string |
Used when loading to set properties to spectra.
Reimplemented from gcu::Object.
gcugtk::SpectrumDocument::m_View [protected] |
The SpectrumView instance associated with the document.
Definition at line 373 of file spectrumdoc.h.
1.7.6.1