Back to index

texmacs  1.0.7.15
qt_chooser_widget.hpp
Go to the documentation of this file.
00001 /******************************************************************************
00002  * MODULE     : qt_chooser_widget.hpp
00003  * DESCRIPTION: 
00004  * COPYRIGHT  : (C) 2008  Massimiliano Gubinelli
00005  *******************************************************************************
00006  * This software falls under the GNU general public license version 3 or later.
00007  * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00008  * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00009  ******************************************************************************/
00010 
00011 #ifndef QT_CHOOSER_WIDGET_HPP
00012 #define QT_CHOOSER_WIDGET_HPP
00013 
00014 #include "qt_widget.hpp"
00015 #include "qt_utilities.hpp"
00016 
00022 class qt_chooser_widget_rep: public qt_widget_rep {
00023 protected:      
00024   command cmd;      
00025   command quit;     
00026   string type;
00027   bool   save;
00028   string win_title;
00029   string directory; 
00030   coord2 position; 
00031   coord2 size;
00032   string file;      
00033   
00034 public:
00035   qt_chooser_widget_rep (command, string, bool);
00036   ~qt_chooser_widget_rep ();
00037   
00038   virtual void send (slot s, blackbox val);
00039   virtual blackbox query (slot s, int type_id);
00040   virtual widget read (slot s, blackbox index);
00041   virtual void write (slot s, blackbox index, widget w);
00042   virtual void notify (slot s, blackbox new_val);
00043   virtual widget plain_window_widget (string s, command q);
00044   
00045   void perform_dialog();
00046 };
00047 
00048 
00049 #endif  // QT_CHOOSER_WIDGET_HPP