Back to index

texmacs  1.0.7.15
attribute_widget.hpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : attribute_widget.hpp
00004 * DESCRIPTION: Attribute widgets
00005 * COPYRIGHT  : (C) 1999  Joris van der Hoeven
00006 *******************************************************************************
00007 * This software falls under the GNU general public license version 3 or later.
00008 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00009 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00010 ******************************************************************************/
00011 
00012 #ifndef ATTRIBUTE_WIDGET_H
00013 #define ATTRIBUTE_WIDGET_H
00014 #include "Widkit/basic_widget.hpp"
00015 #include "Widkit/Event/attribute_event.hpp"
00016 
00017 /******************************************************************************
00018 * Abstract attribute widgets
00019 ******************************************************************************/
00020 
00021 class attribute_widget_rep: public basic_widget_rep {
00022 public:
00023   attribute_widget_rep (gravity grav= north_west);
00024   attribute_widget_rep (array<wk_widget> a, gravity grav= north_west);
00025   attribute_widget_rep (array<wk_widget> a,
00026                      array<string> name, gravity grav= north_west);
00027 
00028   virtual void handle_get_integer   (get_integer_event ev);
00029   virtual void handle_get_double    (get_double_event ev);
00030   virtual void handle_get_string    (get_string_event ev);
00031   virtual void handle_get_coord1    (get_coord1_event ev);
00032   virtual void handle_get_coord2    (get_coord2_event ev);
00033   virtual void handle_get_coord3    (get_coord3_event ev);
00034   virtual void handle_get_coord4    (get_coord4_event ev);
00035 
00036   virtual void handle_set_integer   (set_integer_event ev);
00037   virtual void handle_set_double    (set_double_event ev);
00038   virtual void handle_set_string    (set_string_event ev);
00039   virtual void handle_set_coord1    (set_coord1_event ev);
00040   virtual void handle_set_coord2    (set_coord2_event ev);
00041   virtual void handle_set_coord3    (set_coord3_event ev);
00042   virtual void handle_set_coord4    (set_coord4_event ev);
00043 
00044   virtual bool handle               (event ev);
00045 };
00046 
00047 #endif // defined ATTRIBUTE_WIDGET_H