25 #ifndef TBX_RES_RESSAVEAS_H
26 #define TBX_RES_RESSAVEAS_H
28 #include "resobject.h"
40 enum {CLASS_ID = 0x82bc0 };
264 #endif // TBX_RES_RESSAVEAS_H
void file_type(int value)
Set the file type for the dialogue.
Definition: ressaveas.h:210
ResSaveAs(const ResSaveAs &other)
Construct a save as resource by copying another.
Definition: ressaveas.h:58
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
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
void use_buffer(bool value)
Set if the save as will use a single provided buffer.
Definition: ressaveas.h:167
Base class for a resource object that can be edited.
Definition: resobject.h:53
void ram_transfer(bool value)
Set if save will use the RAM transfer protocol.
Definition: ressaveas.h:179
const char * title() const
Get the title of the dialogue.
Definition: ressaveas.h:216
void file_name(const char *value)
Set the initial file name for the dialogue.
Definition: ressaveas.h:192
ResSaveAs(std::string name)
Construct a save as resource.
Definition: ressaveas.h:95
const char * window() const
Get the name of the window template that provides the window for this object.
Definition: ressaveas.h:243
bool no_selection() const
Check if the selection option is omitted from the dialogue.
Definition: ressaveas.h:149
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
void title(const char *value, int max_length=-1)
Set the title of the dialogue.
Definition: ressaveas.h:224
ResSaveAs(const ResObject &other)
Construct a save as resource from a ResObject.
Definition: ressaveas.h:48
bool generate_about_to_be_shown() const
Check if the about to be shown event should be generated.
Definition: ressaveas.h:124
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736
void check_class_id(int class_id) const
Check if this objects class id is as specified.
Definition: resobject.cc:383
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
Class for SaveAs object template.
Definition: ressaveas.h:37
unsigned int uint_value(int offset) const
Get an unsigned integer value.
Definition: resbase.h:324
void generate_about_to_be_shown(bool value)
Set if the about to be shown event should be generated.
Definition: ressaveas.h:130
void file_name(const std::string &value)
Set the initial file name for the dialogue.
Definition: ressaveas.h:198
const char * name() const
Return pointer to name of object.
Definition: resobject.h:79
const char * file_name() const
Get the initial file name for the dialogue.
Definition: ressaveas.h:186
void title(const std::string &value, int max_length=-1)
Set the title of the dialogue.
Definition: ressaveas.h:232
ResSaveAs & operator=(const ResObject &other)
Assign from a ResObject.
Definition: ressaveas.h:70
int file_type() const
Get the file type for the dialogue.
Definition: ressaveas.h:204
void no_selection(bool value)
Set if the selection option is omitted from the dialogue.
Definition: ressaveas.h:155
void generate_dialogue_completed(bool value)
Set if the dialogue completed event should be generated.
Definition: ressaveas.h:142
bool use_buffer() const
Check if the save as will use a single provided buffer.
Definition: ressaveas.h:161
int max_title() const
Get the maximum size the title can be.
Definition: ressaveas.h:236
bool generate_dialogue_completed() const
Check if the dialogue completed event should be generated.
Definition: ressaveas.h:136
bool ram_transfer() const
Check if save will use the RAM transfer protocol.
Definition: ressaveas.h:173
const char * string(int offset) const
Return a string at the given offset.
Definition: resbase.cc:1555
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: ressaveas.h:110
void window(const char *value)
Set the name of the window template that provides the window for this object.
Definition: ressaveas.h:250
ResSaveAs & operator=(const ResSaveAs &other)
Assign from another save as resource.
Definition: ressaveas.h:82
void flags(unsigned int value)
Set all flags as a word.
Definition: ressaveas.h:118
void window(const std::string &value)
Set the name of the window template that provides the window for this object.
Definition: ressaveas.h:257
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602