ToolMap
Loading...
Searching...
No Matches
vrprogress.h
1/***************************************************************************
2 vrprogress.h
3 -------------------
4 copyright : (C) 2010 CREALP Lucien Schreiber
5 ***************************************************************************/
6
7/***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef _VRPROGRESS_H_
17#define _VRPROGRESS_H_
18
19// For compilers that support precompilation, includes "wx/wx.h".
20#include <wx/wxprec.h>
21// Include wxWidgets' headers
22#ifndef WX_PRECOMP
23#include <wx/wx.h>
24#endif
25
26#include <wx/progdlg.h>
27
28#include "../core/tmpercent.h"
29#include "gdal_priv.h"
30
32 public:
33 vrProgress();
34
35 virtual ~vrProgress();
36};
37
38int CPL_STDCALL GDALUpdateSimple(double dfComplete, const char* pszMessage, void* pProgressArg);
39
41 private:
42 wxProgressDialog* m_ProgressWnd;
43 tmPercent m_Percent;
44 bool m_Continue;
45
46 public:
47 vrProgressSimple(wxWindow* parent, wxString title, wxString message);
48
49 virtual ~vrProgressSimple();
50
51 inline tmPercent* GetPercent();
52
53 inline const bool GetContinue() const;
54
55 void UpdateProgress();
56};
57
58inline tmPercent* vrProgressSimple::GetPercent() {
59 return &m_Percent;
60}
61
62inline const bool vrProgressSimple::GetContinue() const {
63 return m_Continue;
64}
65
66#endif
Definition tmpercent.h:36
Definition vrprogress.h:40
Definition vrprogress.h:31