golib  0.5
GUI elements

Creates a Gtkmm window and plots the graph. More...

Classes

class  goGUI::Control
 Control frame base class. This is a frame that can be used as a base for all sorts of control widgets, like "image control", "process control", ... More...
 
class  goGUI::CountFilenames
 Widget that lets the user enter a base file name and an extension and provides for a spin button to enter numbers. The numbers are appended to the base file name and the whole file name can be retrieved with getFilename(). increment() increments the number in the spin button. More...
 
class  goGUI::Draw
 Interface for drawing on a drawable widget. More...
 
class  goGUI::GLAnimation
 Input widget for goGL::Animation objects. More...
 
class  goGUI::GLDrawableObjectInput
 Input object for goGL::DrawableObject objects. More...
 
class  goGUI::GLLightInput
 Input widget for goGL::Light objects. More...
 
class  goGUI::GLMaterialInput
 Input widget for goGL::Material objects. More...
 
class  goGUI::GLObjectInput
 Input widget for goGL::Object objects. More...
 
class  goGUI::GLObjectVectorInput
 Helper class for GLObjectInput. More...
 
class  goGUI::GLWidget
 OpenGL widget. More...
 
class  goGUI::ImageControl
 Control widget for images in an ImageView. More...
 
class  goGUI::ImageView
 Image display widget. More...
 
class  goGUI::MainWindow
 Base class for a main application window. Provides a menu bar, a standard File menu with about and quit items, and a Gtk::HPaned, a horizontally divided widget, as main widget. In the left area (Gtk: pack2()) a "controls box" is added, where you can add goGUI::Control widgets using addControl(). The left area (Gtk: pack1()) is left blank and you can add stuff to it if you need it. You can use something like getPaned().pack1(my_very_own_widget) to add you widget to the left side of the HPaned. To add new menus, you can do something like this: More...
 
class  goGUI::MultiVectorInput
 Input for multiple vectors. More...
 
class  goGUI::OFFView
 View widget for OFF files (OpenGL). More...
 
class  goGUI::SceneControl
 Control for a goGUI::SceneView. More...
 
class  goGUI::SceneView
 Scene view widget, showing a goGL::Scene. More...
 
class  goGUI::VectorInput
 Input for a vector. More...
 
class  goGUI::VideoCaptureControl
 Control for video capturing. More...
 

Functions

bool goGUI::getFilenameSave (goString &fname, const goString &start, const goString &title="")
 Open a file dialog and get a filename. More...
 
bool goGUI::getFilenameOpen (goString &fname, const goString &start, const goString &title="")
 Open a file dialog and get a filename. More...
 
bool goGUI::getFoldername (goString &fname, const goString &start, const goString &title="")
 Open a dialog and get a folder name. More...
 
bool goGUI::getFilenames (goFixedArray< goString > &filenames, const goString &start="", const goString &title="")
 Open a dialog and get a bunch of file names. More...
 
void goGUI::about (const goString &text, char *logo[])
 
void goGUI::warning (const char *text)
 

Detailed Description

Creates a Gtkmm window and plots the graph.

Todo:
Documentation is rudimentary.

This module contains GUI elements that use the GTKMM library.

Parameters
gGraph to be plotted.

Function Documentation

◆ getFilenameOpen()

bool goGUI::getFilenameOpen ( goString fname,
const goString start,
const goString title = "" 
)

Open a file dialog and get a filename.

Parameters
fnameOn return, contains the selected file name.
startStarting path.
titleTitle of the dialog.
Returns
True if a file name was selected, false if cancel was pressed.

◆ getFilenames()

bool goGUI::getFilenames ( goFixedArray< goString > &  filenames,
const goString start = "",
const goString title = "" 
)

Open a dialog and get a bunch of file names.

Parameters
filenamesOn return, contains the selected file names.
startStarting path.
titleTitle of the dialog.
Returns
True if files were selected, false if cancel was pressed.

◆ getFilenameSave()

bool goGUI::getFilenameSave ( goString fname,
const goString start,
const goString title = "" 
)

Open a file dialog and get a filename.

Parameters
fnameOn return, contains the selected file name.
startStarting path.
titleTitle of the dialog.
Returns
True if a file name was selected, false if cancel was pressed.

◆ getFoldername()

bool goGUI::getFoldername ( goString fname,
const goString start,
const goString title = "" 
)

Open a dialog and get a folder name.

Parameters
fnameOn return, contains the selected folder name.
startStarting path.
titleTitle of the dialog.
Returns
True if a folder name was selected, false if cancel was pressed.