25 #ifndef TBX_RES_RESDCS_H
26 #define TBX_RES_RESDCS_H
28 #include "resobject.h"
40 enum {CLASS_ID = 0x82a80 };
225 #endif // TBX_RES_RESDCS_H
const char * window() const
Get the name of the window template that provides the window for this object.
Definition: resdcs.h:204
void init_string(int offset, const char *value)
Initialise a string in a constructor helper.
Definition: resbase.cc:1725
ResDCS(const ResDCS &other)
Construct a discard/cancel/save dialogue resource by copying another.
Definition: resdcs.h:58
bool generate_about_to_be_shown() const
Check if the about to be shown event should be generated.
Definition: resdcs.h:126
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
void generate_dialogue_completed(bool value)
Set if the dialogue completed event should be generated.
Definition: resdcs.h:144
void window(const char *value)
Set the name of the window template that provides the window for this object.
Definition: resdcs.h:211
int flags() const
Raw access to all the object flags.
Definition: resdcs.h:111
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
const char * title() const
Get the title of the dialogue.
Definition: resdcs.h:151
int max_title() const
Get the maximum size the title can be.
Definition: resdcs.h:171
void title(const char *value, int max_length=-1)
Set the title of the dialogue.
Definition: resdcs.h:159
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
ResDCS & operator=(const ResDCS &other)
Assign from another discard/cancel/save dialogue resource.
Definition: resdcs.h:82
int max_alternative_message() const
Get the maximum size the alternative title can be.
Definition: resdcs.h:197
void window(const std::string &value)
Set the name of the window template that provides the window for this object.
Definition: resdcs.h:218
const char * string(int offset) const
Return a string at the given offset.
Definition: resbase.cc:1555
ResDCS(std::string name)
Construct a discard/cancel/save dialogue resource.
Definition: resdcs.h:95
Class for DCS object template.
Definition: resdcs.h:36
void flags(int value)
Set all the flags.
Definition: resdcs.h:120
bool generate_dialogue_completed() const
Check if the dialogue completed event should be generated.
Definition: resdcs.h:138
void generate_about_to_be_shown(bool value)
Set if the about to be shown event should be generated.
Definition: resdcs.h:132
const char * alternative_message() const
Get the alternative message to display in the DCS box.
Definition: resdcs.h:177
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
void alternative_message(const std::string &value, int max_length=-1)
Set the alternative message to display in the DCS box.
Definition: resdcs.h:193
Base class for a resource object that can be edited.
Definition: resobject.h:52
ResDCS & operator=(const ResObject &other)
Assign from a ResObject.
Definition: resdcs.h:70
void title(const std::string &value, int max_length=-1)
Set the title of the dialogue.
Definition: resdcs.h:167
void alternative_message(const char *value, int max_length=-1)
Set the alternative message to display in the DCS box.
Definition: resdcs.h:185
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
ResDCS(const ResObject &other)
Construct a discard/cancel/save dialogue resource from a ResObject.
Definition: resdcs.h:48
const char * name() const
Return pointer to name of object.
Definition: resobject.h:79
void check_class_id(int class_id) const
Check if this objects class id is as specified.
Definition: resobject.cc:383
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736