1 /* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */ 2 3 #ifndef __STYLESCOMBOBOX_HH_INCLUDED__ 4 #define __STYLESCOMBOBOX_HH_INCLUDED__ 5 6 #include <QComboBox> 7 #include <QString> 8 9 /// This is a combo box which is for choosing the add-on styles 10 class StylesComboBox : public QComboBox 11 { 12 Q_OBJECT 13 14 public: 15 16 StylesComboBox( QWidget * parent ); 17 18 /// Fills combo-box with the given groups 19 void fill(); 20 21 /// Chooses the given style in the combobox. If there's no such style, 22 /// set to "None". 23 void setCurrentStyle( QString const & style ); 24 25 /// Returns current style. 26 QString getCurrentStyle() const; 27 28 }; 29 30 #endif // __STYLESCOMBOBOX_HH_INCLUDED__ 31