Back to index

texmacs  1.0.7.15
aqua_basic_widgets.h
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : aqua_basic_widgets.h
00004 * DESCRIPTION: Basic widgets
00005 * COPYRIGHT  : (C) 2007  Massimiliano Gubinelli
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 class aqua_text_widget_rep : public aqua_widget_rep {
00013 public:
00014   string str;
00015   color col;
00016   bool tsp;
00017   
00018   aqua_text_widget_rep(string _s, color _col, bool _tsp) 
00019   : str(_s), col(_col), tsp(_tsp) {};  
00020 
00021   virtual TMMenuItem *as_menuitem();
00022 
00023 };
00024 
00025 class aqua_image_widget_rep : public aqua_widget_rep {
00026 public:
00027   url image;
00028   
00029   aqua_image_widget_rep(url _image) : image(_image) {};
00030   virtual TMMenuItem *as_menuitem();
00031 };
00032 
00033 class aqua_balloon_widget_rep : public aqua_widget_rep {
00034 public:
00035   widget text, hint;
00036   
00037   aqua_balloon_widget_rep(widget _text, widget _hint) : text(_text), hint(_hint) {};
00038   virtual TMMenuItem *as_menuitem();
00039 };
00040 
00041 
00042 class aqua_input_text_widget_rep : public aqua_widget_rep {
00043 public:
00044   command cmd;
00045   string type;
00046   array<string> def;
00047   string text;
00048   
00049   aqua_input_text_widget_rep(command _cmd, string _type, array<string> _def)
00050   : cmd(_cmd), type(_type), def(_def), text("") {};
00051 };