/home/martin/src/mimasim/src/mima_gtk/mimaWidgets.h

Go to the documentation of this file.
00001 //$Id: mimaWidgets.h,v 1.1 2006/05/13 22:08:09 der_martin Exp $
00002 /*
00003  * mimasim -- a simulator of a minimal microprocessor system
00004  * Copyright (C) 2006 Martin Grandrath <gr@ndrath.de>
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 as
00008  * published by the Free Software Foundation; either version 2 of the
00009  * License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful, but
00012  * WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * 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
00019  * 02110-1301, USA.
00020  */
00021 
00022 #ifndef MIMAWIDGETS_H
00023 #define MIMAWIDGETS_H
00024 
00025 #ifdef HAVE_CONFIG_H
00026 #include <config.h>
00027 #endif
00028 
00029 #include <gtkmm/entry.h>
00030 
00032 namespace MimaGtk {
00033 
00035      class EntryInt : public Gtk::Entry
00036           {
00037           private:
00038                int m_value;
00039                bool m_hex;
00040 
00041           public:
00042                EntryInt(bool hex = true);
00043                virtual ~EntryInt();
00044 
00045                void set_value(int value);
00046                int get_value() { return m_value; };
00047                virtual void set_sensitive(bool sensitive = true);
00048           };
00049 
00050 }
00051 
00052 #endif // MIMAWIDGETS_H

Generated on Sat Nov 4 19:40:57 2006 for mimasim by  doxygen 1.4.7