The Gnome Chemistry Utils  0.14.0
Classes | Typedefs | Enumerations | Functions
gcugtk Namespace Reference

The Gtk using base classes. More...

Classes

struct  Database
class  Application
class  Chem3dApplication
class  Chem3dDoc
class  Chem3dView
class  Chem3dWindow
class  CmdContextGtk
 A Gtk+ using gcu::CmdContext implementation. More...
class  Dialog
class  FileChooser
class  GLView
class  Message
 Message box. More...
class  Molecule
class  PrintSetupDlg
class  Printable
struct  JdxVar
class  SpectrumDocument
class  SpectrumView
class  StringDlg
class  StringInputDlg
class  UIBuilder
 GtkBuilder wrapping. More...
class  UIManager
 A GtkUIManager wrapper. More...

Typedefs

typedef void(* StringInputCB )(gcu::Document *doc, char const *str)

Enumerations

enum  WindowState { NormalWindowState, MaximizedWindowState, MinimizedWindowState, FullScreenWindowState }
enum  CheckType
enum  PrintScaleType { GCU_PRINT_SCALE_NONE, GCU_PRINT_SCALE_FIXED, GCU_PRINT_SCALE_AUTO }
enum  SpectrumType {
  GCU_SPECTRUM_INFRARED, GCU_SPECTRUM_RAMAN, GCU_SPECTRUM_INFRARED_PEAK_TABLE, GCU_SPECTRUM_INFRARED_INTERFEROGRAM,
  GCU_SPECTRUM_INFRARED_TRANSFORMED, GCU_SPECTRUM_UV_VISIBLE, GCU_SPECTRUM_NMR, GCU_SPECTRUM_NMR_FID,
  GCU_SPECTRUM_NMR_PEAK_TABLE, GCU_SPECTRUM_NMR_PEAK_ASSIGNMENTS, GCU_SPECTRUM_MASS, GCU_SPECTRUM_MAX
}
enum  SpectrumUnitType {
  GCU_SPECTRUM_UNIT_CM_1, GCU_SPECTRUM_UNIT_TRANSMITTANCE, GCU_SPECTRUM_UNIT_ABSORBANCE, GCU_SPECTRUM_UNIT_PPM,
  GCU_SPECTRUM_UNIT_NANOMETERS, GCU_SPECTRUM_UNIT_MICROMETERS, GCU_SPECTRUM_UNIT_SECONDS, GCU_SPECTRUM_UNIT_HZ,
  GCU_SPECTRUM_UNIT_M_Z, GCU_SPECTRUM_UNIT_REL_ABUNDANCE, GCU_SPECTRUM_UNIT_RESPONSE_FACTOR, GCU_SPECTRUM_UNIT_MAX
}
enum  SpectrumVarType { GCU_SPECTRUM_TYPE_INDEPENDENT, GCU_SPECTRUM_TYPE_DEPENDENT, GCU_SPECTRUM_TYPE_PAGE, GCU_SPECTRUM_TYPE_MAX }
enum  SpectrumFormatType {
  GCU_SPECTRUM_FORMAT_ASDF, GCU_SPECTRUM_FORMAT_AFFN, GCU_SPECTRUM_FORMAT_PAC, GCU_SPECTRUM_FORMAT_SQZ,
  GCU_SPECTRUM_FORMAT_DIF, GCU_SPECTRUM_FORMAT_MAX
}

Functions

GtkUnit gtk_unit_from_string (char const *name)
char const * gtk_unit_to_string (GtkUnit unit)

Detailed Description

The Gtk using base classes.

The namespace used for C++ base classes usin Gtk+. This namespace implements various virtual classes defined in namespace gcu.

Typedef Documentation

gcugtk::StringInputCB

Type for the callbacks used when a string has been entered in a StringInputDlg.

Definition at line 42 of file stringinputdlg.h.

Enumeration Type Documentation

CheckType CheckType describes how numbers entered in entries might be checked. Possible values are:

  • NoCheck: no check is performed.
  • Min: value > min.
  • Max: value < max.
  • MinMax: min < value < max.
  • MinEq: value >= min.
  • MaxEq: value <= max.
  • MinEqMax: min <= value < max.
  • MinMaxEq: min < value <= max.
  • MinEqMaxEq: min <= value <= max.

    This enumeration is used in Dialog::GetNumber.

Definition at line 55 of file tk/dialog.h.

gcugtks/printable.h Represents how printing is scaled

Enumerator:
GCU_PRINT_SCALE_NONE 

No scaling is done.

GCU_PRINT_SCALE_FIXED 

Explicit scaling.

GCU_PRINT_SCALE_AUTO 

Automatic scaling (will fill the print area).

Definition at line 37 of file printable.h.

gcugtk/spectrumdoc.h Represents the list of data formats from the JCAMP-DX specification supported by the gcu::SpectrumDocument class. See the JCAMP-DX specification for more information.

Enumerator:
GCU_SPECTRUM_FORMAT_ASDF 

ASCII squeezed difference form.

GCU_SPECTRUM_FORMAT_AFFN 

ASCII free format numeric.

GCU_SPECTRUM_FORMAT_PAC 

Packed form.

GCU_SPECTRUM_FORMAT_SQZ 

Squeezed form.

GCU_SPECTRUM_FORMAT_DIF 

Difference form.

GCU_SPECTRUM_FORMAT_MAX 

Last known value. This value does not represent a valid type, but is equal to the number of supported formats.

Definition at line 177 of file spectrumdoc.h.

gcugtk/spectrumdoc.h Represents the list of spectrum types supported (or which should be supported) by the gcu::SpectrumDocument class.

Enumerator:
GCU_SPECTRUM_INFRARED 

Infrared spectrum.

GCU_SPECTRUM_RAMAN 

Raman spectrum.

GCU_SPECTRUM_INFRARED_PEAK_TABLE 

Infrared peaks table.

GCU_SPECTRUM_INFRARED_INTERFEROGRAM 

Infrared iterferogram.

GCU_SPECTRUM_INFRARED_TRANSFORMED 

Transformed infrared spectrum.

GCU_SPECTRUM_UV_VISIBLE 

UV-visible spectrum.

GCU_SPECTRUM_NMR 

NMR spectrum.

GCU_SPECTRUM_NMR_FID 

NMR FID.

GCU_SPECTRUM_NMR_PEAK_TABLE 

NMR peaks table.

GCU_SPECTRUM_NMR_PEAK_ASSIGNMENTS 

NMR peaks assignments.

GCU_SPECTRUM_MASS 

Mass spectrum.

GCU_SPECTRUM_MAX 

Last known value. This value does not represent a valid type, but is equal to the number of supported types.

Definition at line 40 of file spectrumdoc.h.

gcugtk/spectrumdoc.h Represents the list of units supported by the gcu::SpectrumDocument class.

Enumerator:
GCU_SPECTRUM_UNIT_CM_1 

Wave number per cm.

GCU_SPECTRUM_UNIT_TRANSMITTANCE 

Transmittance

GCU_SPECTRUM_UNIT_ABSORBANCE 

Absorbance

GCU_SPECTRUM_UNIT_PPM 

Part per million.

GCU_SPECTRUM_UNIT_NANOMETERS 

Nanometers

GCU_SPECTRUM_UNIT_MICROMETERS 

Micrometers

GCU_SPECTRUM_UNIT_SECONDS 

Seconds

GCU_SPECTRUM_UNIT_HZ 

Hz.

GCU_SPECTRUM_UNIT_M_Z 

M/Z (for mass spectra).

GCU_SPECTRUM_UNIT_REL_ABUNDANCE 

Relative abundance.

GCU_SPECTRUM_UNIT_RESPONSE_FACTOR 

M/Z (for mass spectra).

GCU_SPECTRUM_UNIT_MAX 

Last known value. This value does not represent a valid unit, but is equal to the number of supported units.

Definition at line 96 of file spectrumdoc.h.

gcu/spectrumdoc.h Represents the list of varialble types supported by the gcu::SpectrumDocument class.

Enumerator:
GCU_SPECTRUM_TYPE_INDEPENDENT 

Independent variable.

GCU_SPECTRUM_TYPE_DEPENDENT 

Dependent variable.

GCU_SPECTRUM_TYPE_PAGE 

Page number.

GCU_SPECTRUM_TYPE_MAX 

Last known value. This value does not represent a valid type, but is equal to the number of supported types.

Definition at line 152 of file spectrumdoc.h.

Window states

Enumerator:
NormalWindowState 

Normal window.

MaximizedWindowState 

Maximized window.

MinimizedWindowState 

Minimized window.

FullScreenWindowState 

Full screen window.

Definition at line 64 of file gcugtk/application.h.

Function Documentation

GtkUnit gcugtk::gtk_unit_from_string ( char const *  name)
Parameters
namea string representing a GtkUnit.
Returns
the GtkUnit represented by the string.
char const* gcugtk::gtk_unit_to_string ( GtkUnit  unit)
Parameters
unita GtkUnit.
Returns
the sring representig the GtkUnit.