Back to index

texmacs  1.0.7.15
qt_view_widget.hpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003  * MODULE     : qt_view_widget.hpp
00004  * DESCRIPTION: QT view widget class
00005  * COPYRIGHT  : (C) 2008  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 QT_VIEW_WIDGET_HPP
00013 #define QT_VIEW_WIDGET_HPP
00014 
00015 #include "widget.hpp"
00016 #include "basic_renderer.hpp"
00017 #include "qt_widget.hpp"
00018 
00019 class QWidget;
00020 
00024 class qt_view_widget_rep: public qt_widget_rep {
00025 public:
00026   QWidget *view;
00027   basic_renderer current_renderer;
00028   
00029 public:
00030   qt_view_widget_rep (QWidget *v);
00031   ~qt_view_widget_rep ();
00032   
00033   virtual void send (slot s, blackbox val);
00034   virtual blackbox query (slot s, int type_id);
00035   virtual widget read (slot s, blackbox index);
00036   virtual void write (slot s, blackbox index, widget w);
00037   virtual void notify (slot s, blackbox new_val);
00038   
00039   virtual widget plain_window_widget (string s, command q);
00040   void set_current_renderer(basic_renderer _r) { current_renderer = _r;  }
00041   basic_renderer get_current_renderer() {  return current_renderer; }
00042   virtual QWidget* as_qwidget () { return view ; };
00043 
00044 };
00045 
00046 
00047 #endif // QT_VIEW_WIDGET_HPP