Mercurial > hg > svgui
diff view/View.h @ 555:3f698e237585
* Pop view progress bars back into "indeterminate" mode if they are not
updated for a couple of seconds (useful for plugins with very active
getRemainingFeatures())
author | Chris Cannam |
---|---|
date | Fri, 12 Mar 2010 15:34:18 +0000 |
parents | e4e0ae491a48 |
children | 4c484636d5ec |
line wrap: on
line diff
--- a/view/View.h Fri Jan 29 13:54:25 2010 +0000 +++ b/view/View.h Fri Mar 12 15:34:18 2010 +0000 @@ -305,6 +305,8 @@ virtual void overlayModeChanged(); virtual void zoomWheelsEnabledChanged(); + virtual void progressCheckStalledTimerElapsed(); + protected: View(QWidget *, bool showProgress); virtual void paintEvent(QPaintEvent *e); @@ -373,8 +375,12 @@ QString m_text; }; -// typedef std::map<Layer *, LayerProgressBar *> ProgressMap; - typedef std::map<Layer *, QProgressBar *> ProgressMap; + struct ProgressBarRec { + QProgressBar *bar; + int lastCheck; + QTimer *checkTimer; + }; + typedef std::map<Layer *, ProgressBarRec> ProgressMap; ProgressMap m_progressBars; // I own the ProgressBars ViewManager *m_manager; // I don't own this