ALBA
albaProgressBarHelper.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaProgressBarHelper
5 Authors: Gianluigi Crimi
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16
17#ifndef __albaProgressBarHelper_h
18#define __albaProgressBarHelper_h
19
20#include "albaDefines.h"
21#include "albaString.h"
22
23//----------------------------------------------------------------------------
24// forward declarations
25class albaObserver;
26class wxBusyInfo;
27
30class ALBA_EXPORT albaProgressBarHelper
31{
32public:
33
36
38 void InitProgressBar(wxString label="", bool showBusyCursor=true);
39
42
44 void UpdateProgressBar(long progress);
45
48
51
54
56 void SetTextMode(bool textMode);
57
58protected:
59
60
64 wxBusyInfo *m_BusyInfo;
65 wxBusyCursor *m_BusyCursor;
67
68private:
69 albaProgressBarHelper(const albaProgressBarHelper&); // Not implemented
70 void operator=(const albaProgressBarHelper&); // Not implemented
71};
72
73#endif
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36
albaProgressBarHelper Is an helper for manage progress bar advance
void SetBarText(albaString text)
Sets the progress bar text.
void ResetProgress()
Resets the progress to zero.
void CloseProgressBar()
Close the Progress Bar.
void InitProgressBar(wxString label="", bool showBusyCursor=true)
Init the Progress Bar, if label is not an empty string a busy info is created.
void UpdateProgressBar(long progress)
Updates the progress bar.
bool GetTextMode()
Get TextMode.
void SetTextMode(bool textMode)
Set Text Mode, By default is off.
virtual ~albaProgressBarHelper()
albaProgressBarHelper(albaObserver *listener)
albaString - performs common string operations on c-strings.
Definition: albaString.h:43