core/vgui/impl/qt4/vgui_qt.h

Go to the documentation of this file.
00001 #ifndef vgui_qt_h_
00002 #define vgui_qt_h_
00003 //:
00004 // \file
00005 // \brief QT implementation of vgui_toolkit.
00006 //
00007 // vgui_qt is a QT implementation of vgui_toolkit.
00008 // Provides functions for controlling the event loop.
00009 //
00010 // \author
00011 // Joris Schouteden, ESAT, K.U.Leuven
00012 //
00013 // \verbatim
00014 //  Modifications
00015 //   24.03.2000 JS  Initial Version, adapted from vgui_gtk
00016 //   14.11.2005 Chanop Silpa-Anan  adapted to QT 3.3.5 for X11/Mac
00017 //   02.05.2007 Christoph_John@gmx.de ported to QT 4.2.2
00018 // \endverbatim
00019 //-----------------------------------------------------------------------------
00020 
00021 #include <vgui/vgui_toolkit.h>
00022 
00023 class vgui_qt_adaptor;
00024 class vgui_qt_window;
00025 
00026 //: QT implementation of vgui_toolkit.
00027 class vgui_qt : public vgui_toolkit
00028 {
00029  public:
00030    static    vgui_qt*   instance();
00031    virtual   vcl_string name() const { return "qt"; }
00032    virtual   void       run();
00033    virtual   void       run_one_event();
00034    virtual   void       run_till_idle();
00035    virtual   void       flush();
00036    virtual   vgui_window* produce_window(int width, int height,
00037                                          const vgui_menu& menubar,
00038                                          const char* title="vgui qt window");
00039    virtual   vgui_window* produce_window(int width, int height,
00040                                          const char* title="vgui qt popup");
00041    virtual   vgui_dialog_impl* produce_dialog(const char* name);
00042 
00043  protected:
00044    vgui_qt() {}
00045    void      init(int &, char **);
00046 };
00047 
00048 #endif // vgui_qt_h_

Generated on Mon Mar 8 05:12:25 2010 for core/vgui by  doxygen 1.5.1