|
| 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 1722 of file ProgressDialog.cpp.
1723{
1725 {
1726
1728 }
1730 {
1732 }
1733
1734 wxLongLong_t now = wxGetUTCTimeMillis().GetValue();
1736
1737 if (elapsed < 500)
1738 {
1740 }
1741
1743 {
1744 SetTransparent(255);
1746 }
1747
1749
1750 int nGaugeValue = (1000 * elapsed) /
mDuration;
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762 wxASSERT((nGaugeValue >= 0) && (nGaugeValue <= 1000));
1763
1765 {
1766 mGauge->SetValue(nGaugeValue);
1769 }
1770
1771
1773 {
1774
1775
1776
1777
1778
1779 const wxLongLong_t wrapTime = 24 * 60 * 60 * 1000;
1781 wxTimeSpan tsElapsed(0, 0, 0, elapsed % wrapTime);
1782 mElapsed->SetLabel(tsElapsed.Format(
wxT(
"%H:%M:%S")) + ((elapsed >= wrapTime) ?
" +":
""));
1784 }
1785
1786 wxTimeSpan tsRemains(0, 0, 0, remains % wrapTime);
1787 mRemaining->SetLabel(tsRemains.Format(
wxT(
"%H:%M:%S")) + ((remains >= wrapTime) ?
" +":
""));
1789
1791 }
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815 wxEventLoopBase::GetActive()->YieldFor(wxEVT_CATEGORY_ALL );
1816
1817
1818 wxEventLoopBase::GetActive()->YieldFor(wxEVT_CATEGORY_ALL );
1819
1820
1823 {
1825 }
1827 {
1829 }
1830 return iReturn;
1831}
References BasicUI::Cancelled, ProgressDialog::m_bShowElapsedTime, ProgressDialog::mCancel, mDuration, ProgressDialog::mElapsed, ProgressDialog::mGauge, ProgressDialog::mIsTransparent, ProgressDialog::mLastUpdate, ProgressDialog::mLastValue, ProgressDialog::mRemaining, ProgressDialog::mStartTime, ProgressDialog::mStop, BasicUI::Stopped, BasicUI::Success, and wxT().
Referenced by TimerRecordDialog::PreActionDelay(), TimerRecordDialog::RunWaitDialog(), and TimerRecordDialog::WaitForStart().