25 #ifndef TBX_RES_RESQUIT_H 26 #define TBX_RES_RESQUIT_H 28 #include "resobject.h" 40 enum {CLASS_ID = 0x82a90 };
223 #endif // TBX_RES_RESQUIT_H A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
void init_string(int offset, const char *value)
Initialise a string in a constructor helper.
Definition: resbase.cc:1725
unsigned int flags() const
Get all flags as a word raw access.
Definition: resquit.h:109
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_about_to_be_shown(bool value)
Set if the about to be shown event should be generated.
Definition: resquit.h:129
ResQuit & operator=(const ResObject &other)
Assign from a ResObject.
Definition: resquit.h:70
void title(const std::string &value, int max_length=-1)
Set the title of the dialogue.
Definition: resquit.h:164
ResQuit(const ResObject &other)
Construct a quit dialogue resource from a ResObject.
Definition: resquit.h:48
void window(const std::string &value)
Set the name of the window template that provides the window for this object.
Definition: resquit.h:216
void alternative_message(const char *value, int max_length=-1)
Set the alternative message to display in the dialogue.
Definition: resquit.h:183
unsigned int uint_value(int offset) const
Get an unsigned integer value.
Definition: resbase.h:324
void window(const char *value)
Set the name of the window template that provides the window for this object.
Definition: resquit.h:209
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.
void generate_dialogue_completed(bool value)
Set if the dialogue completed event should be generated.
Definition: resquit.h:141
int max_title() const
Get the maximum size the title can be.
Definition: resquit.h:168
ResQuit(std::string name)
Construct a quit dialogue resource.
Definition: resquit.h:95
const char * window() const
Get the name of the window template that provides the window for this object.
Definition: resquit.h:202
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
void alternative_message(const std::string &value, int max_length=-1)
Set the alternative message to display in the dialogue.
Definition: resquit.h:191
void title(const char *value, int max_length=-1)
Set the title of the dialogue.
Definition: resquit.h:156
const char * string(int offset) const
Return a string at the given offset.
Definition: resbase.cc:1555
const char * title() const
Get the title of the dialogue.
Definition: resquit.h:148
ResQuit & operator=(const ResQuit &other)
Assign from another quit dialogue resource.
Definition: resquit.h:82
Class for Quit object template.
Definition: resquit.h:36
ResQuit(const ResQuit &other)
Construct a quit dialogue resource by copying another.
Definition: resquit.h:58
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
const char * alternative_message() const
Get the alternative message to display in the dialogue.
Definition: resquit.h:175
int max_alternative_message() const
Get the maximum length for the alternative message.
Definition: resquit.h:195
bool generate_about_to_be_shown() const
Check if the about to be shown event should be generated.
Definition: resquit.h:123
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
Base class for a resource object that can be edited.
Definition: resobject.h:52
bool generate_dialogue_completed() const
Check if the dialogue completed event should be generated.
Definition: resquit.h:135
void flags(unsigned int value)
Set all flags as a word.
Definition: resquit.h:117
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736