VectorWindow Class Reference

Class for displaying a window for entering vector information, such as. More...

#include <vectorwindow.h>

List of all members.

Public Member Functions

 VectorWindow (bool isedit=false)
bool is_cancelled () const
 Indicates whether or not the dialog was canceled.
void set_vector (const GVectors::GVector &vec)
 Fill the widgets from the values provided by the GVector.
void set_name (const Glib::ustring &n)
 Set the name text entry value.
const GVectors::GVector & get_vector () const
 Get the GVector composed from the user input.
const Glib::ustring & get_name () const
 Get the name of the vector.

Protected Member Functions

void on_button_add_click ()
void on_button_close_click ()

Private Attributes

Gtk::VBox vbox
Gtk::HBox namebox
Gtk::HBox xbox
Gtk::HBox ybox
Gtk::HBox zbox
Gtk::HButtonBox bbox
Gtk::Label namelabel
Gtk::Label xlabel
Gtk::Label ylabel
Gtk::Label zlabel
Gtk::Entry nameentry
Gtk::Adjustment xadj
Gtk::Adjustment yadj
Gtk::Adjustment zadj
Gtk::SpinButton xspin
Gtk::SpinButton yspin
Gtk::SpinButton zspin
Gtk::Button badd
Gtk::Button bclose
GVectors::GVector vector
 The vector composed from the user input.
Glib::ustring name
 The name of the vector.
bool cancelled
 Indicates whether or not the dialog was canceled.


Detailed Description

Class for displaying a window for entering vector information, such as.

It can be used for both, adding new vectors and editing existing vectors. However, the purpose of the window (add or edit) has to be determined upon object creation.


Constructor & Destructor Documentation

VectorWindow::VectorWindow ( bool  isedit = false  ) 

Parameters:
isedit Pass true to set the label of the confirm button to 'edit'. Pass false to set the label to 'add'.


Member Function Documentation

void VectorWindow::on_button_add_click (  )  [protected]

void VectorWindow::on_button_close_click (  )  [protected]

bool VectorWindow::is_cancelled (  )  const

Indicates whether or not the dialog was canceled.

Todo:
Decide whether we are using British or American English.

void VectorWindow::set_vector ( const GVectors::GVector &  vec  ) 

Fill the widgets from the values provided by the GVector.

void VectorWindow::set_name ( const Glib::ustring &  n  ) 

Set the name text entry value.

const GVectors::GVector & VectorWindow::get_vector (  )  const

Get the GVector composed from the user input.

const Glib::ustring & VectorWindow::get_name (  )  const

Get the name of the vector.


Member Data Documentation

Gtk::VBox VectorWindow::vbox [private]

Gtk::HBox VectorWindow::namebox [private]

Gtk::HBox VectorWindow::xbox [private]

Gtk::HBox VectorWindow::ybox [private]

Gtk::HBox VectorWindow::zbox [private]

Gtk::HButtonBox VectorWindow::bbox [private]

Gtk::Label VectorWindow::namelabel [private]

Gtk::Label VectorWindow::xlabel [private]

Gtk::Label VectorWindow::ylabel [private]

Gtk::Label VectorWindow::zlabel [private]

Gtk::Entry VectorWindow::nameentry [private]

Gtk::Adjustment VectorWindow::xadj [private]

Gtk::Adjustment VectorWindow::yadj [private]

Gtk::Adjustment VectorWindow::zadj [private]

Gtk::SpinButton VectorWindow::xspin [private]

Gtk::SpinButton VectorWindow::yspin [private]

Gtk::SpinButton VectorWindow::zspin [private]

Gtk::Button VectorWindow::badd [private]

Gtk::Button VectorWindow::bclose [private]

GVectors::GVector VectorWindow::vector [private]

The vector composed from the user input.

Glib::ustring VectorWindow::name [private]

The name of the vector.

bool VectorWindow::cancelled [private]

Indicates whether or not the dialog was canceled.

Todo:
Decide whether we are using British or American English.


The documentation for this class was generated from the following files:
Generated on Tue Sep 11 01:14:33 2007 for gvectors by  doxygen 1.4.7