vectorwindow.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // gvectors is a frontend to libgvectors using gtkmm.
00004 // Copyright (C) 2007  Rafael Ostertag
00005 //
00006 // This program is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU General Public License
00008 // as published by the Free Software Foundation; either version 2
00009 // of the License, or (at your option) any later version.
00010 //
00011 // This program is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU General Public License
00017 // along with this program; if not, write to the Free Software
00018 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
00019 // USA.
00020 //
00021 // $Id: vectorwindow_8h-source.html,v 1.1 2007-09-10 23:31:16 rafi Exp $
00022 //
00023 // File:   vectorwindow.h
00024 // Author: Rafael Ostertag
00025 //
00026 // Created on August 1, 2007, 8:33 PM
00027 //
00028 
00031 
00032 #ifndef _VECTORWINDOW_H
00033 #define _VECTORWINDOW_H
00034 
00035 #include <gtkmm.h>
00036 #include <gvectors.h>
00037 
00048 class VectorWindow : public Gtk::Window {
00049 private:
00050     Gtk::VBox vbox;
00051     Gtk::HBox namebox;
00052     Gtk::HBox xbox;
00053     Gtk::HBox ybox;
00054     Gtk::HBox zbox;
00055     Gtk::HButtonBox bbox;
00056     Gtk::Label namelabel;
00057     Gtk::Label xlabel;
00058     Gtk::Label ylabel;
00059     Gtk::Label zlabel;
00060     Gtk::Entry nameentry;
00061     Gtk::Adjustment xadj;
00062     Gtk::Adjustment yadj;
00063     Gtk::Adjustment zadj;
00064     Gtk::SpinButton xspin;
00065     Gtk::SpinButton yspin;
00066     Gtk::SpinButton zspin;
00067     Gtk::Button badd;
00068     Gtk::Button bclose;
00069 
00071     GVectors::GVector vector;
00073     Glib::ustring name;
00077     bool cancelled;
00078     
00079 protected:
00080     void on_button_add_click();
00081     void on_button_close_click();
00082     
00083 public:
00084     VectorWindow(bool isedit=false);
00088     bool is_cancelled() const;
00090     void set_vector(const GVectors::GVector& vec);
00092     void set_name(const Glib::ustring& n);
00094     const GVectors::GVector& get_vector() const;
00096     const Glib::ustring& get_name() const;
00097     
00098 };
00099 
00100 #endif  /* _VECTORWINDOW_H */
00101 

Generated on Tue Sep 11 01:14:28 2007 for gvectors by  doxygen 1.4.7