25 #ifndef TBX_RES_RESSCALE_H 26 #define TBX_RES_RESSCALE_H 28 #include "resobject.h" 40 enum {CLASS_ID = 0x82c00 };
299 #endif // TBX_RES_RESSCALE_H void window(const char *value)
Set the name of the window template that provides the window for this object.
Definition: resscale.h:238
void title(const char *value, int max_length=-1)
Set the title of the dialogue.
Definition: resscale.h:212
void std2_value(int value)
Set the value of the second standard button.
Definition: resscale.h:269
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
void std1_value(int value)
Set the value of the first standard button.
Definition: resscale.h:257
void std4_value(int value)
Set the value of the fourth standard button.
Definition: resscale.h:293
void title(const std::string &value, int max_length=-1)
Set the title of the dialogue.
Definition: resscale.h:220
void init_string(int offset, const char *value)
Initialise a string in a constructor helper.
Definition: resbase.cc:1725
int std3_value() const
Get the value of the third standard button.
Definition: resscale.h:275
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
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
void generate_dialogue_completed(bool value)
Set if the dialogue completed event should be generated.
Definition: resscale.h:147
void flags(unsigned int value)
Set all flags as a word.
Definition: resscale.h:123
void step_size(int value)
Set the step size for incrementing/decrementing the scale.
Definition: resscale.h:198
unsigned int uint_value(int offset) const
Get an unsigned integer value.
Definition: resbase.h:324
int min_val() const
Get the minimum value for the scaling.
Definition: resscale.h:166
const char * window() const
Get the name of the window template that provides the window for this object.
Definition: resscale.h:231
void check_class_id(int class_id) const
Check if this objects class id is as specified.
Definition: resobject.cc:383
Classes to use/edit toolbox resources in memory.
int step_size() const
Get the step size for incrementing/decrementing the scale.
Definition: resscale.h:191
ResScale(const ResObject &other)
Construct a scale resource from a ResObject.
Definition: resscale.h:48
int max_val() const
Get the maximum value for the scaling.
Definition: resscale.h:178
void has_scale_to_fit(bool value)
Set if scale to fit option is included on the dialogue.
Definition: resscale.h:159
void std3_value(int value)
Set the value of the third standard button.
Definition: resscale.h:281
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
void max_val(int value)
Set the maximum value for the scaling.
Definition: resscale.h:184
const char * string(int offset) const
Return a string at the given offset.
Definition: resbase.cc:1555
int std2_value() const
Get the value of the second standard button.
Definition: resscale.h:263
bool generate_about_to_be_shown() const
Check if the about to be shown event should be generated.
Definition: resscale.h:129
void min_val(int value)
Set the minimum value for the scaling.
Definition: resscale.h:172
int max_title() const
Get the maximum size the title can be.
Definition: resscale.h:224
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
const char * name() const
Return pointer to name of object.
Definition: resobject.h:79
unsigned int flags() const
Get all flags as a word raw access.
Definition: resscale.h:115
void generate_about_to_be_shown(bool value)
Set if the about to be shown event should be generated.
Definition: resscale.h:135
ResScale(const ResScale &other)
Construct a scale resource by copying another.
Definition: resscale.h:58
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
Base class for a resource object that can be edited.
Definition: resobject.h:52
ResScale & operator=(const ResObject &other)
Assign from a ResObject.
Definition: resscale.h:70
void window(const std::string &value)
Set the name of the window template that provides the window for this object.
Definition: resscale.h:245
ResScale(std::string name)
Construct a scale resource.
Definition: resscale.h:95
bool has_scale_to_fit() const
Check if scale to fit option is included on the dialogue.
Definition: resscale.h:153
int std1_value() const
Get the value of the first standard button.
Definition: resscale.h:251
bool generate_dialogue_completed() const
Check if the dialogue completed event should be generated.
Definition: resscale.h:141
int std4_value() const
Get the value of the fourth standard button.
Definition: resscale.h:287
const char * title() const
Get the title of the dialogue.
Definition: resscale.h:204
ResScale & operator=(const ResScale &other)
Assign from another scale resource.
Definition: resscale.h:82
Class for Scale object template.
Definition: resscale.h:36
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736