Back to index

texmacs  1.0.7.15
aqua_other_widgets.h
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : aqua_other_widgets.h
00004 * DESCRIPTION: some aqua widgets class declarations
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 #ifndef AQUA_OTHER_WIDGETS_H
00013 #define AQUA_OTHER_WIDGETS_H
00014 
00015 
00016 #include "aqua_widget.h"
00017 
00018 
00019 @class TMWidgetHelper;
00020 @class TMButtonsController;
00021 
00022 class aqua_tm_widget_rep: public aqua_view_widget_rep {
00023 public:       
00024   NSScrollView *sv;
00025        NSTextField *leftField, *rightField;
00026        TMButtonsController *bc;
00027        TMWidgetHelper *wh;
00028        NSToolbar *toolbar;
00029        
00030   
00031   aqua_widget int_prompt;
00032   aqua_widget int_input;
00033 
00034   bool visibility[5]; 
00035 
00036 public:
00037   aqua_tm_widget_rep (int mask = 0);
00038   ~aqua_tm_widget_rep ();
00039        
00040        virtual void send (slot s, blackbox val);
00041   virtual blackbox query (slot s, int type_id);
00042   virtual widget read (slot s, blackbox index);
00043   virtual void write (slot s, blackbox index, widget w);
00044        //  virtual void notify (slot s, blackbox new_val);
00045        
00046        //  virtual void connect (slot s, widget w2, slot s2);
00047        //  virtual void deconnect (slot s, widget w2, slot s2);
00048        virtual widget plain_window_widget (string s);
00049        
00050        void layout();
00051   void updateVisibility();
00052   void do_interactive_prompt();
00053 };
00054 
00055 
00056 @class TMWindowController;
00057 
00058 class aqua_window_widget_rep: public widget_rep {
00059 public:       
00060        TMWindowController *wc;
00061        
00062 public:
00063   aqua_window_widget_rep (NSWindow *win);
00064   ~aqua_window_widget_rep ();
00065        
00066        virtual void send (slot s, blackbox val);
00067   virtual blackbox query (slot s, int type_id);
00068   virtual widget read (slot s, blackbox index);
00069   virtual void write (slot s, blackbox index, widget w);
00070   virtual void notify (slot s, blackbox new_val);
00071        //  virtual void connect (slot s, widget w2, slot s2);
00072        //  virtual void deconnect (slot s, widget w2, slot s2);
00073        
00074        TMWindowController *get_windowcontroller();
00075 };
00076 
00077 
00078 #endif // defined AQUA_OTHER_WIDGETS_H