core/vgui/impl/qt/vgui_qt_statusbar.h
Go to the documentation of this file.
00001 // This is core/vgui/impl/qt/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 // \endverbatim
00014 
00015 #include <vcl_string.h>
00016 #include <vcl_iosfwd.h>
00017 
00018 #include <vgui/vgui_statusbuf.h>
00019 #include <vgui/vgui_statusbar.h>
00020 
00021 #include <qstatusbar.h>
00022 #include <qmainwindow.h>
00023 
00024 //: QT implementation of vgui_statusbar.
00025 class vgui_qt_statusbar :
00026    public vgui_statusbar
00027 {
00028  public:
00029    vgui_qt_statusbar(QMainWindow *parent);
00030   ~vgui_qt_statusbar();
00031 
00032    int write(const char* text, int n);
00033    int write(const char* text);
00034 
00035    vcl_string linebuffer;
00036    vgui_statusbuf* statusbuf;
00037    vcl_ostream out;
00038 
00039  private:
00040    QMainWindow *parent_;
00041 };
00042 
00043 #endif // VGUI_QT_STATUSBAR_H_