25 #ifndef TBX_RES_RESSTRINGSET_H
26 #define TBX_RES_RESSTRINGSET_H
28 #include "resgadget.h"
29 #include "resjustification.h"
30 #include "../handles.h"
42 enum {TYPE_ID = 896 };
307 #endif // TBX_RES_RESSTRINGSET_H
ComponentId before() const
Get the component ID of the gadget before this one in the Tab order.
Definition: resstringset.h:282
const char * selected_string() const
Get the initially selected string.
Definition: resstringset.h:218
Base class for gadget memory resources.
Definition: resgadget.h:42
int flag_value(int offset, int mask) const
Get the bits for the given mask.
Definition: resbase.h:362
ResStringSet(const ResStringSet &other)
Construct an string set gadget resource.
Definition: resstringset.h:60
bool generate_value_changed() const
Check if the value changed event will be generated.
Definition: resstringset.h:111
void after(ComponentId value)
Set the component ID of the gadget after this one in the Tab order.
Definition: resstringset.h:300
ResStringSet & operator=(const ResStringSet &other)
Assign from another string set gadget resource.
Definition: resstringset.h:84
void message_with_length(int offset, const char *value, int length=-1)
Assign a message where the length is at offset+4.
Definition: resbase.cc:1639
ComponentId after() const
Get the component ID of the gadget after this one in the Tab order.
Definition: resstringset.h:294
void generate_event_before_showing_menu(bool value)
Set if an event will be generated before the menu is shown.
Definition: resstringset.h:141
void string_set(const std::string &value)
Set the set of values shown in the string set menu.
Definition: resstringset.h:193
void generate_value_changed(bool value)
Set if the value changed event will be generated.
Definition: resstringset.h:117
int ComponentId
Type for underlying toolbox component id.
Definition: handles.h:33
void before(ComponentId value)
Set the component ID of the gadget before this one in the Tab order.
Definition: resstringset.h:288
void selected_string(const std::string &value, int max_length=-1)
Set the initially selected string.
Definition: resstringset.h:234
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
void title(const std::string &value)
Set the title for the menu.
Definition: resstringset.h:212
void writable(bool value)
Set if user can enter values in the string set.
Definition: resstringset.h:129
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
bool writable() const
Check if user can enter values in the string set.
Definition: resstringset.h:123
Class for StringSet gadget template.
Definition: resstringset.h:38
void allowable(const std::string &value, int max_length=-1)
Set the allowable characters in a writable string set.
Definition: resstringset.h:271
bool no_value_field() const
Check if string set has no display or writable field.
Definition: resstringset.h:147
ResStringSet & operator=(const ResGadget &other)
Assign from a ResGadget.
Definition: resstringset.h:72
const char * string_set() const
Get the set of values shown in the string set menu.
Definition: resstringset.h:175
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
ResJustification justification() const
Get justification of the value.
Definition: resstringset.h:159
int max_selected_string() const
Get the maximum length the selected string can be increased to when using the string set...
Definition: resstringset.h:239
void check_type(int type) const
Check if this gadgets type is as specified.
Definition: reswindow.cc:97
void string_set(const char *value)
Set the set of values shown in the string set menu.
Definition: resstringset.h:184
void title(const char *value)
Set the title for the menu.
Definition: resstringset.h:206
const char * title() const
Get the title for the menu.
Definition: resstringset.h:200
ResStringSet()
Construct a string set gadget resource.
Definition: resstringset.h:95
void allowable(const char *value, int max_length=-1)
Set the allowable characters in a writable string set.
Definition: resstringset.h:260
void no_value_field(bool value)
Set if string set has no display or writable field.
Definition: resstringset.h:153
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
void selected_string(const char *value, int max_length=-1)
Set the initially selected string.
Definition: resstringset.h:226
void justification(ResJustification value)
Set justification of the value.
Definition: resstringset.h:165
ResStringSet(const ResGadget &other)
Construct an string set gadget resource.
Definition: resstringset.h:50
const char * allowable() const
Get the allowable characters in a writable string set.
Definition: resstringset.h:248
int max_allowable() const
Get the maximum length the allowable character can be changed to when the gadget is shown...
Definition: resstringset.h:276
bool generate_event_before_showing_menu() const
Check if an event will be generated before the menu is shown.
Definition: resstringset.h:135
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736