ProgressStatusBar.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00002 
00011 /*
00012  *  This program is free software; you can redistribute it and/or
00013  *  modify it under the terms of the GNU General Public
00014  *  License as published by the Free Software Foundation; either
00015  *  version 2 of the License, or (at your option) any later version.
00016  *
00017  *  This software is distributed in the hope that it will be useful,
00018  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  *  General Public License for more details.
00021  *
00022  *  You should have received a copy of the GNU General Public
00023  *  License along with this software. If not, see
00024  *  <http://www.gnu.org/licenses/>.
00025  *
00026  */
00027 
00028 #ifndef PROGRESSSTATUSBAR_H
00029 #define PROGRESSSTATUSBAR_H
00030 
00032 #include <wx/statusbr.h>
00033 #include <wx/gauge.h>
00034 
00035 class ProgressStatusBar : public wxStatusBar
00036 {
00037 public:
00039     ProgressStatusBar(wxWindow *parent, wxWindowID id, long style = wxST_SIZEGRIP, const wxString &name = wxT("statusBar"));
00041     ~ProgressStatusBar();
00043     void OnSize(wxSizeEvent &event);
00046     void SetProgress(int progress);
00048     int GetProgress();
00049 
00050 private:
00051     wxGauge *m_progress;
00052     int m_progressValue;
00053 
00054     DECLARE_EVENT_TABLE();
00055 };
00056 
00057 #endif // PROGRESSSTATUSBAR_H

Generated on 21 Jan 2018 for Hugintrunk by  doxygen 1.4.7