src/option/SelectLang.h
raw| 1 | #ifndef HEADER_SELECTLANG_H |
| 2 | #define HEADER_SELECTLANG_H |
| 3 | |
| 4 | class Path; |
| 5 | |
| 6 | #include "VBox.h" |
| 7 | #include "Scripter.h" |
| 8 | |
| 9 | /** |
| 10 | * Menu with flags to select prefered lang. |
| 11 | */ |
| 12 | class SelectLang : public VBox, public Scripter { |
| 13 | private: |
| 14 | static const int MAX_WIDTH = 200; |
| 15 | std::string m_option; |
| 16 | WiBox *m_activeRow; |
| 17 | public: |
| 18 | SelectLang(const std::string &option, const Path &datafile); |
| 19 | |
| 20 | void addFlag(const std::string &value, const Path &picture); |
| 21 | }; |
| 22 | |
| 23 | #endif |