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
bool no_value_field() const
Check if string set has no display or writable field.
Definition: resstringset.h:147
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
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
Class for StringSet gadget template.
Definition: resstringset.h:39
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
int ComponentId
Type for underlying toolbox component id.
Definition: handles.h:33
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 before(ComponentId value)
Set the component ID of the gadget before this one in the Tab order.
Definition: resstringset.h:288
ResStringSet & operator=(const ResGadget &other)
Assign from a ResGadget.
Definition: resstringset.h:72
ResStringSet(const ResGadget &other)
Construct an string set gadget resource.
Definition: resstringset.h:50
void writable(bool value)
Set if user can enter values in the string set.
Definition: resstringset.h:129
ComponentId after() const
Get the component ID of the gadget after this one in the Tab order.
Definition: resstringset.h:294
Base class for gadget memory resources.
Definition: resgadget.h:43
const char * title() const
Get the title for the menu.
Definition: resstringset.h:200
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
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 justification(ResJustification value)
Set justification of the value.
Definition: resstringset.h:165
ResStringSet & operator=(const ResStringSet &other)
Assign from another string set gadget resource.
Definition: resstringset.h:84
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
ComponentId before() const
Get the component ID of the gadget before this one in the Tab order.
Definition: resstringset.h:282
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736
int flag_value(int offset, int mask) const
Get the bits for the given mask.
Definition: resbase.h:362
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
ResStringSet(const ResStringSet &other)
Construct an string set gadget resource.
Definition: resstringset.h:60
void generate_value_changed(bool value)
Set if the value changed event will be generated.
Definition: resstringset.h:117
void selected_string(const std::string &value, int max_length=-1)
Set the initially selected string.
Definition: resstringset.h:234
void title(const char *value)
Set the title for the menu.
Definition: resstringset.h:206
void string_set(const char *value)
Set the set of values shown in the string set menu.
Definition: resstringset.h:184
ResJustification
Standard justification of resource gadget flags.
Definition: resjustification.h:11
const char * allowable() const
Get the allowable characters in a writable string set.
Definition: resstringset.h:248
const char * string_set() const
Get the set of values shown in the string set menu.
Definition: resstringset.h:175
bool writable() const
Check if user can enter values in the string set.
Definition: resstringset.h:123
void selected_string(const char *value, int max_length=-1)
Set the initially selected string.
Definition: resstringset.h:226
void allowable(const std::string &value, int max_length=-1)
Set the allowable characters in a writable string set.
Definition: resstringset.h:271
void allowable(const char *value, int max_length=-1)
Set the allowable characters in a writable string set.
Definition: resstringset.h:260
const char * selected_string() const
Get the initially selected string.
Definition: resstringset.h:218
ResStringSet()
Construct a string set gadget resource.
Definition: resstringset.h:95
void string_set(const std::string &value)
Set the set of values shown in the string set menu.
Definition: resstringset.h:193
void check_type(int type) const
Check if this gadgets type is as specified.
Definition: reswindow.cc:97
void no_value_field(bool value)
Set if string set has no display or writable field.
Definition: resstringset.h:153
void title(const std::string &value)
Set the title for the menu.
Definition: resstringset.h:212
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
void generate_event_before_showing_menu(bool value)
Set if an event will be generated before the menu is shown.
Definition: resstringset.h:141
ResJustification justification() const
Get justification of the value.
Definition: resstringset.h:159