diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2010-12-05 19:24:16 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-22 22:33:57 +0300 |
commit | d6e12b7ce4bcbf0ccd1c07eb25de143422913c34 (patch) | |
tree | a7e910c330ce4da9b4f2d8be76067adece2561c4 /qt/update_dialog.hpp |
One Month In Minsk. Made in Belarus.
Diffstat (limited to 'qt/update_dialog.hpp')
-rw-r--r-- | qt/update_dialog.hpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/qt/update_dialog.hpp b/qt/update_dialog.hpp new file mode 100644 index 0000000000..5e1db36f2a --- /dev/null +++ b/qt/update_dialog.hpp @@ -0,0 +1,38 @@ +#pragma once + +#include "../map/storage.hpp" + +#include <QtGui/QDialog> + +class QTableWidget; +class QLabel; + +namespace qt +{ + class UpdateDialog : public QDialog + { + Q_OBJECT + + public: + UpdateDialog(QWidget * parent, mapinfo::Storage & storage); + ~UpdateDialog(); + + /// @name Called from storage to notify GUI + //@{ + void OnCountryChanged(mapinfo::TIndex const & index); + void OnCountryDownloadProgress(mapinfo::TIndex const & index, + TDownloadProgress const & progress); + //@} + + private slots: + void OnTableClick(int row, int column); + + private: + void FillTable(); + void UpdateRowWithCountryInfo(mapinfo::TIndex const & index); + + private: + QTableWidget * m_table; + mapinfo::Storage & m_storage; + }; +} // namespace qt |