14 #ifndef T3_WIDGET_ATTRIBUTEPICKERDIALOG_H
15 #define T3_WIDGET_ATTRIBUTEPICKERDIALOG_H
17 #include <t3widget/interfaces.h>
18 #include <t3widget/dialogs/dialog.h>
19 #include <t3widget/widgets/checkbox.h>
20 #include <t3widget/widgets/expander.h>
21 #include <t3widget/widgets/expandergroup.h>
22 #include <t3widget/widgets/colorpicker.h>
26 class T3_WIDGET_API attribute_test_line_t;
30 struct T3_WIDGET_LOCAL implementation_t {
31 checkbox_t *bold_box, *reverse_box, *blink_box, *underline_box, *dim_box;
34 cleanup_ptr<expander_group_t>::t expander_group;
36 t3_attr_t base_attributes;
37 implementation_t(
void) : fg_picker(NULL), bg_picker(NULL), expander_group(NULL), base_attributes(0) {}
39 pimpl_ptr<implementation_t>::t impl;
41 void attribute_changed(
void);
42 void ok_activate(
void);
43 void default_activate(
void);
44 void group_expanded(
bool state);
49 virtual void show(
void);
59 void set_base_attributes(t3_attr_t attr);
61 T3_WIDGET_SIGNAL(attribute_selected,
void, t3_attr_t);
62 T3_WIDGET_SIGNAL(default_selected,
void);
70 virtual bool process_key(
key_t key);
72 virtual void update_contents(
void);
73 virtual bool accepts_focus(
void);