|
| TimerProgressDialog (const wxLongLong_t duration, const TranslatableString &title, const MessageTable &columns, int flags=pdlgDefaultFlags, const TranslatableString &sRemainingLabelText={}) |
|
ProgressResult | UpdateProgress () |
|
| ProgressDialog () |
| Methods for ProgressDialog. More...
|
|
| ProgressDialog (const TranslatableString &title, const TranslatableString &message={}, int flags=pdlgDefaultFlags, const TranslatableString &sRemainingLabelText={}) |
|
virtual | ~ProgressDialog () |
|
bool | Create (const TranslatableString &title, const TranslatableString &message={}, int flags=pdlgDefaultFlags, const TranslatableString &sRemainingLabelText={}) |
|
void | Reinit () override |
| Reset the dialog state. More...
|
|
void | SetDialogTitle (const TranslatableString &title) override |
| Change the dialog's title. More...
|
|
ProgressResult | Update (int value, const TranslatableString &message={}) |
|
ProgressResult | Update (double current, const TranslatableString &message={}) |
|
ProgressResult | Update (double current, double total, const TranslatableString &message={}) |
|
ProgressResult | Update (wxULongLong_t current, wxULongLong_t total, const TranslatableString &message={}) |
|
ProgressResult | Update (wxLongLong current, wxLongLong total, const TranslatableString &message={}) |
|
ProgressResult | Update (wxLongLong_t current, wxLongLong_t total, const TranslatableString &message={}) |
|
ProgressResult | Update (int current, int total, const TranslatableString &message={}) |
|
ProgressResult | Poll (unsigned long long numerator, unsigned long long denominator, const TranslatableString &message={}) override |
| Update the bar and poll for clicks. Call only on the main thread. More...
|
|
void | SetMessage (const TranslatableString &message) override |
| Change an existing dialog's message. More...
|
|
| wxDialogWrapper () |
|
| wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
|
bool | Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
|
void | SetTitle (const TranslatableString &title) |
|
void | SetLabel (const TranslatableString &title) |
|
void | SetName (const TranslatableString &title) |
|
void | SetName () |
|
| wxTabTraversalWrapper (Args &&... args) |
|
| wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete |
|
| wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete |
|
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
|
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
|
virtual | ~ProgressDialog () |
|
virtual ProgressResult | Poll (unsigned long long numerator, unsigned long long denominator, const TranslatableString &message={})=0 |
| Update the bar and poll for clicks. Call only on the main thread. More...
|
|
virtual void | SetMessage (const TranslatableString &message)=0 |
| Change an existing dialog's message. More...
|
|
virtual void | SetDialogTitle (const TranslatableString &title)=0 |
| Change the dialog's title. More...
|
|
virtual void | Reinit ()=0 |
| Reset the dialog state. More...
|
|
|
ProgressResult | Update (int value, const TranslatableString &message={}) |
|
ProgressResult | Update (double current, const TranslatableString &message={}) |
|
ProgressResult | Update (double current, double total, const TranslatableString &message={}) |
|
ProgressResult | Update (wxULongLong_t current, wxULongLong_t total, const TranslatableString &message={}) |
|
ProgressResult | Update (wxLongLong current, wxLongLong total, const TranslatableString &message={}) |
|
ProgressResult | Update (wxLongLong_t current, wxLongLong_t total, const TranslatableString &message={}) |
|
ProgressResult | Update (int current, int total, const TranslatableString &message={}) |
|
| ProgressDialog (const TranslatableString &title, const MessageTable &columns, int flags=pdlgDefaultFlags, const TranslatableString &sRemainingLabelText={}) |
|
bool | Create (const TranslatableString &title, const MessageTable &columns, int flags=pdlgDefaultFlags, const TranslatableString &sRemainingLabelText={}) |
|
Definition at line 165 of file ProgressDialog.h.
Definition at line 1711 of file ProgressDialog.cpp.
1712{
1714 {
1715
1717 }
1719 {
1720 return ProgressResult::Stopped;
1721 }
1722
1723 wxLongLong_t now = wxGetUTCTimeMillis().GetValue();
1725
1726 if (elapsed < 500)
1727 {
1729 }
1730
1732 {
1733 SetTransparent(255);
1735 }
1736
1738
1739 int nGaugeValue = (1000 * elapsed) /
mDuration;
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751 wxASSERT((nGaugeValue >= 0) && (nGaugeValue <= 1000));
1752
1754 {
1755 mGauge->SetValue(nGaugeValue);
1758 }
1759
1760
1762 {
1763
1764
1765
1766
1767
1768 const wxLongLong_t wrapTime = 24 * 60 * 60 * 1000;
1770 wxTimeSpan tsElapsed(0, 0, 0, elapsed % wrapTime);
1771 mElapsed->SetLabel(tsElapsed.Format(
wxT(
"%H:%M:%S")) + ((elapsed >= wrapTime) ?
" +":
""));
1773 }
1774
1775 wxTimeSpan tsRemains(0, 0, 0, remains % wrapTime);
1776 mRemaining->SetLabel(tsRemains.Format(
wxT(
"%H:%M:%S")) + ((remains >= wrapTime) ?
" +":
""));
1778
1780 }
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804 wxEventLoopBase::GetActive()->YieldFor(wxEVT_CATEGORY_ALL );
1805
1806
1807 wxEventLoopBase::GetActive()->YieldFor(wxEVT_CATEGORY_ALL );
1808
1809
1812 {
1814 }
1816 {
1817 iReturn = ProgressResult::Stopped;
1818 }
1819 return iReturn;
1820}
References RefreshCode::Cancelled, ProgressDialog::m_bShowElapsedTime, ProgressDialog::mCancel, mDuration, ProgressDialog::mElapsed, ProgressDialog::mGauge, ProgressDialog::mIsTransparent, ProgressDialog::mLastUpdate, ProgressDialog::mLastValue, ProgressDialog::mRemaining, ProgressDialog::mStartTime, ProgressDialog::mStop, BasicUI::Success, and wxT().
Referenced by TimerRecordDialog::PreActionDelay(), TimerRecordDialog::RunWaitDialog(), and TimerRecordDialog::WaitForStart().