| 1 |
////////////////////////////////////////////////////////////////////////////// |
| 2 |
////////////////////////////////////////////////////////////////////////////// |
| 3 |
// |
| 4 |
// copyright : (C) 2014 Eran Ifrah |
| 5 |
// file name : progress_dialog.h |
| 6 |
// |
| 7 |
// ------------------------------------------------------------------------- |
| 8 |
// A |
| 9 |
// _____ _ _ _ _ |
| 10 |
// / __ \ | | | | (_) | |
| 11 |
// | / \/ ___ __| | ___| | _| |_ ___ |
| 12 |
// | | / _ \ / _ |/ _ \ | | | __/ _ ) |
| 13 |
// | \__/\ (_) | (_| | __/ |___| | || __/ |
| 14 |
// \____/\___/ \__,_|\___\_____/_|\__\___| |
| 15 |
// |
| 16 |
// F i l e |
| 17 |
// |
| 18 |
// This program is free software; you can redistribute it and/or modify |
| 19 |
// it under the terms of the GNU General Public License as published by |
| 20 |
// the Free Software Foundation; either version 2 of the License, or |
| 21 |
// (at your option) any later version. |
| 22 |
// |
| 23 |
////////////////////////////////////////////////////////////////////////////// |
| 24 |
////////////////////////////////////////////////////////////////////////////// |
| 25 |
|
| 26 |
#ifndef __progress_dialog__ |
| 27 |
#define __progress_dialog__ |
| 28 |
#if wxUSE_GUI |
| 29 |
/** |
| 30 |
@file |
| 31 |
Subclass of clProgressDlgBase, which is generated by wxFormBuilder. |
| 32 |
*/ |
| 33 |
|
| 34 |
#include "clprogressdlgbase.h" |
| 35 |
#include "codelite_exports.h" |
| 36 |
|
| 37 |
//// end generated include |
| 38 |
#if defined(__WXGTK__) || defined(__WXMAC__) |
| 39 |
|
| 40 |
#include <wx/progdlg.h> |
| 41 |
|
| 42 |
class clProgressDlg : public wxProgressDialog |
| 43 |
{ |
| 44 |
public: |
| 45 |
clProgressDlg(wxWindow* parent, const wxString& title, const wxString& msg, int maxValue); |
| 46 |
virtual ~clProgressDlg(); |
| 47 |
bool Update(int value, const wxString& msg); |
| 48 |
bool Pulse(const wxString& msg); |
| 49 |
}; |
| 50 |
|
| 51 |
#else |
| 52 |
|
| 53 |
/** Implementing clProgressDlgBase */ |
| 54 |
class WXDLLIMPEXP_CL clProgressDlg : public clProgressDlgBase |
| 55 |
{ |
| 56 |
public: |
| 57 |
/** Constructor */ |
| 58 |
clProgressDlg(wxWindow* parent, const wxString& title, const wxString& msg, int maxValue); |
| 59 |
virtual ~clProgressDlg(); |
| 60 |
|
| 61 |
//// end generated class members |
| 62 |
bool Update(int value, const wxString& msg); |
| 63 |
bool Pulse(const wxString& msg); |
| 64 |
}; |
| 65 |
#endif |
| 66 |
#endif // #if wxUSE_GUI |
| 67 |
#endif // __progress_dialog__ |