OSDN Git Service

A couple of bugfix in the Document. The version number is set to 1.0b1.
[molby/Molby.git] / wxSources / ProgressFrame.h
1 /*
2  *  ProgressFrame.h
3  *  Molby
4  *
5  *  Created by Toshi Nagata on 09/07/15.
6  *  Copyright 2008 Toshi Nagata. All rights reserved.
7  *
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation version 2 of the License.
11  
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  GNU General Public License for more details.
16  */
17
18 #ifndef __ProgressFrame_h__
19 #define __ProgressFrame_h__
20
21 #include "wx/frame.h"
22 #include "wx/gauge.h"
23
24 class wxStaticText;
25 //class wxGauge;    //  This forward declaration does not work because in wxMSW wxGauge is #define'ed as wxGauge95
26
27 class ProgressFrame: public wxFrame
28 {
29
30 public:
31         ProgressFrame(const wxString& title, const wxString &mes);
32         virtual ~ProgressFrame();
33         
34         void SetProgressMessage(const wxString &mes);
35         void SetProgressValue(double value);
36         void SetInterruptValue(int value);
37         int CheckInterrupt();
38
39         wxStaticText *m_messageText;
40         wxGauge *m_progressGauge;
41         double m_value;
42         int m_interruptValue;
43
44 private:
45         DECLARE_EVENT_TABLE()
46 };
47
48 #endif /* __ProgressFrame_h__ */