22 QString
split_text(
const QString &text,
bool cut);
unsigned get_bitwise(struct option *poption)
Return the enum value from groupbox.
const option_set * curr_options
struct option * get_color_option()
Find option indicating colors.
QMap< QString, QWidget * > widget_map
void set_font()
Sets font and text in pushbutton (user just chosen font)
void get_color(struct option *poption, QByteArray &a1, QByteArray &a2)
Return selected colors (for highlighting chat).
bool get_bool(struct option *poption)
Get the boolean value from checkbox.
QDialogButtonBox * button_box
void set_string(struct option *poption, const char *string)
Set the string value of the option.
void set_int(struct option *poption, int value)
Set the integer value of the option.
void full_reset()
Reset all options.
~option_dialog() override
Destructor for options dialog.
QList< QString > categories
QByteArray get_string(struct option *poption)
Get string for desired option from combobox or lineedit.
int get_enum(struct option *poption)
Get indexed value from combobox.
void add_option(struct option *poption)
Create widget for option.
void set_bool(struct option *poption, bool value)
Set the boolean value of the option.
void set_enum(struct option *poption, int index)
Set desired index(text) in combobox.
void apply_option(int response)
Apply desired action depending on user's request (clicked button).
QVBoxLayout * main_layout
void apply_options()
Apply all options.
option_dialog(const QString &name, const option_set *options, QWidget *parent=0)
Constructor for options dialog.
void full_refresh()
Refresh all options.
QFont get_font(struct option *poption)
QFont get_button_font(struct option *poption)
Get font from pushbutton.
void option_dialog_reset(struct option *poption)
Reset one option.
void fill(const struct option_set *poptset)
Create all widgets.
void option_dialog_refresh(struct option *poption)
Refresh one given option for option dialog.
int get_int(struct option *poption)
Get int value from spinbox.
void set_bitwise(struct option *poption, unsigned value)
Set the enum value of the option.
void set_color()
Set color of buttons (user just changed colors).
QString cut_helptext(const QString &text)
Remove some text from given text(help text) to show as tooltip.
QString split_text(const QString &text, bool cut)
Splits long text to 80 characters.
The base class for options.