mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
31 lines
679 B
C++
31 lines
679 B
C++
/* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
|
|
|
#ifndef __STYLESCOMBOBOX_HH_INCLUDED__
|
|
#define __STYLESCOMBOBOX_HH_INCLUDED__
|
|
|
|
#include <QComboBox>
|
|
#include <QString>
|
|
|
|
/// This is a combo box which is for choosing the add-on styles
|
|
class StylesComboBox : public QComboBox
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
StylesComboBox( QWidget * parent );
|
|
|
|
/// Fills combo-box with the given groups
|
|
void fill();
|
|
|
|
/// Chooses the given style in the combobox. If there's no such style,
|
|
/// set to "None".
|
|
void setCurrentStyle( QString const & style );
|
|
|
|
/// Returns current style.
|
|
QString getCurrentStyle() const;
|
|
|
|
};
|
|
|
|
#endif // __STYLESCOMBOBOX_HH_INCLUDED__
|