52 #ifndef __PCL_ProgressDialog_h
53 #define __PCL_ProgressDialog_h
198 SetValue( m_value + 1 );
222 EnableCancelButton( !disable );
230 return m_cancelButton.IsVisible();
239 class ProgressBar :
public Control
249 bool m_bounded =
true;
259 bool m_canceled =
false;
261 ProgressBar m_progressBar;
262 PushButton m_cancelButton;
264 void e_Click( Button& sender,
bool checked );
265 void e_Close( Control& sender,
bool& allowClose );
Client-side interface to a PixInsight Control object.
Client-side interface to a PixInsight modal dialog.
A generic rectangle in the two-dimensional space.
A simple progress bar dialog box.
ProgressDialog(const String &text=String(), const String &title=String(), size_type lowerBound=0, size_type upperBound=100, Control &parent=Control::Null())
void SetText(const String &text)
void SetValue(size_type value)
void SetTitle(const String &title)
void DisableCancelButton(bool disable=true)
size_type UpperBound() const
void EnableCancelButton(bool enable=true)
void SetRange(size_type lowerBound, size_type upperBound)
size_type LowerBound() const
bool IsCancelButtonEnabled() const