00001 // This is core/vgui/impl/qt4/vgui_qt_statusbar.h 00002 #ifndef vgui_qt_statusbar_h_ 00003 #define vgui_qt_statusbar_h_ 00004 //: 00005 // \file 00006 // \brief Contains class vgui_qt_statusbar 00007 // \author Joris Schouteden, ESAT, K.U.Leuven 00008 // 00009 // \verbatim 00010 // Modifications 00011 // 24.03.2000 JS Initial Version, adapted from vgui_gtk_statusbar 00012 // 14.11.2005 Chanop Silpa-Anan adapted to QT 3.3.5 for X11/Mac 00013 // 02.05.2007 Christoph_John@gmx.de ported to QT 4.2.2 00014 // 23.05.2007 Matt Leotta converted to QT3 compatibility functions to native QT4 00015 // \endverbatim 00016 00017 #include <vcl_string.h> 00018 #include <vcl_iosfwd.h> 00019 00020 #include <vgui/vgui_statusbuf.h> 00021 #include <vgui/vgui_statusbar.h> 00022 00023 #include <QMainWindow> 00024 00025 //: QT implementation of vgui_statusbar. 00026 class vgui_qt_statusbar : 00027 public vgui_statusbar 00028 { 00029 public: 00030 vgui_qt_statusbar(QMainWindow *parent); 00031 ~vgui_qt_statusbar(); 00032 00033 int write(const char* text, int n); 00034 int write(const char* text); 00035 00036 vcl_string linebuffer; 00037 vgui_statusbuf* statusbuf; 00038 vcl_ostream out; 00039 00040 private: 00041 QMainWindow *parent_; 00042 }; 00043 00044 #endif // vgui_qt_statusbar_h_
1.7.5.1