Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
554:ffeafe09c8d9 | 555:3f698e237585 |
---|---|
303 virtual void selectionChanged(); | 303 virtual void selectionChanged(); |
304 virtual void toolModeChanged(); | 304 virtual void toolModeChanged(); |
305 virtual void overlayModeChanged(); | 305 virtual void overlayModeChanged(); |
306 virtual void zoomWheelsEnabledChanged(); | 306 virtual void zoomWheelsEnabledChanged(); |
307 | 307 |
308 virtual void progressCheckStalledTimerElapsed(); | |
309 | |
308 protected: | 310 protected: |
309 View(QWidget *, bool showProgress); | 311 View(QWidget *, bool showProgress); |
310 virtual void paintEvent(QPaintEvent *e); | 312 virtual void paintEvent(QPaintEvent *e); |
311 virtual void drawSelections(QPainter &); | 313 virtual void drawSelections(QPainter &); |
312 virtual bool shouldLabelSelections() const { return true; } | 314 virtual bool shouldLabelSelections() const { return true; } |
371 virtual void setText(QString text) { m_text = text; } | 373 virtual void setText(QString text) { m_text = text; } |
372 protected: | 374 protected: |
373 QString m_text; | 375 QString m_text; |
374 }; | 376 }; |
375 | 377 |
376 // typedef std::map<Layer *, LayerProgressBar *> ProgressMap; | 378 struct ProgressBarRec { |
377 typedef std::map<Layer *, QProgressBar *> ProgressMap; | 379 QProgressBar *bar; |
380 int lastCheck; | |
381 QTimer *checkTimer; | |
382 }; | |
383 typedef std::map<Layer *, ProgressBarRec> ProgressMap; | |
378 ProgressMap m_progressBars; // I own the ProgressBars | 384 ProgressMap m_progressBars; // I own the ProgressBars |
379 | 385 |
380 ViewManager *m_manager; // I don't own this | 386 ViewManager *m_manager; // I don't own this |
381 ViewPropertyContainer *m_propertyContainer; // I own this | 387 ViewPropertyContainer *m_propertyContainer; // I own this |
382 }; | 388 }; |