35 #include "showfullobject.h"
37 #include "eventinfo.h"
43 class AboutToBeShownListener;
44 class HasBeenHiddenListener;
45 class DCSDiscardListener;
46 class DCSSaveListener;
47 class DCSCancelListener;
65 enum { TOOLBOX_CLASS = 0x82a80 };
int int_property(int property_id) const
Return the value of a property that returns an integer.
Definition: object.cc:477
void remove_about_to_be_shown_listener(AboutToBeShownListener *listener)
Remove about to be shown listener.
Definition: dcs.cc:57
int title_length() const
Return length of title.
Definition: dcs.h:180
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
void add_save_listener(DCSSaveListener *listener)
Add listener to be called when save is selected from the dialogue.
Definition: dcs.cc:123
void add_about_to_be_shown_listener(AboutToBeShownListener *listener)
This event is raised just before the DCS underlying window is about to be shown.
Definition: dcs.cc:47
DCS & operator=(const DCS &other)
Assign this DCS from another.
Definition: dcs.h:117
ObjectId handle() const
Return the underlying toolbox object id this object references.
Definition: object.h:93
void remove_discard_listener(DCSDiscardListener *listener)
Remove listener to be called when discard is selected from the dialogue.
Definition: dcs.cc:105
ObjectId _handle
Handle for toolbox object.
Definition: object.h:175
void title(std::string msg)
Set title of window.
Definition: dcs.h:171
std::string string_property(int property_id) const
Return the value of a property that returns text.
Definition: object.cc:519
The Window object represents a toolbox window.
Definition: window.h:70
virtual void dcs_cancel(const EventInfo &cancel_event)=0
Called when cancel is selected from a DCS dialog.
Class for DCS object template.
Definition: resdcs.h:37
bool operator==(const Object &other) const
Check if this DCS refers to the same underlying toolbox object as another.
Definition: dcs.h:137
Listener for an object has been hidden event.
Definition: hasbeenhiddenlistener.h:36
Window window() const
Return the underlying toolbox window used to implement the DCS object.
Definition: dcs.h:152
void add_has_been_hidden_listener(HasBeenHiddenListener *listener)
This event is raised after the DCS dialog has been completed.
Definition: dcs.cc:67
int message_length() const
Return length of message.
Definition: dcs.h:166
DCS(const std::string &template_name)
Create a DCS from the named template.
Definition: dcs.h:100
int string_property_length(int property_id) const
Gets the size of a string properties buffer.
Definition: object.cc:572
void remove_cancel_listener(DCSCancelListener *listener)
Remove listener to be called when cancel is selected from the dialogue.
Definition: dcs.cc:161
bool operator!=(const Object &other) const
Check if this DCS does not refers to the same underlying toolbox object as another.
Definition: dcs.h:145
void check_toolbox_class(int class_id) const
Check if this objects toolbox class is as specified.
Definition: object.cc:122
virtual void dcs_discard(const EventInfo &discard_event)=0
Called when discard is selected from a DCS dialog.
Listener for when a cancel is selected from the DCS dialog.
Definition: dcs.h:223
void remove_has_been_hidden_listener(HasBeenHiddenListener *listener)
Remove has been hidden listener.
Definition: dcs.cc:77
Listener for about to be shown event.
Definition: abouttobeshownlistener.h:77
void message(std::string msg)
Set message to display in window.
Definition: dcs.h:157
Class to show a toolbox DCS object that gives the user an option to Discard, Cancel or Save a file.
Definition: dcs.h:63
Class to manipulate a toolbox object.
Definition: object.h:51
DCS()
Construct creates an unassigned DCS.
Definition: dcs.h:72
Base class for all toolbox event listeners.
Definition: listener.h:34
Listener for when a save is selected from the DCS dialog.
Definition: dcs.h:211
std::string message() const
Return message.
Definition: dcs.h:162
Objects derived from this class can be shown with there full location and size specified as well as t...
Definition: showfullobject.h:41
Listener for when a discard is selected from the DCS dialog.
Definition: dcs.h:199
DCS & operator=(const Object &other)
Assign this DCS from an Object that refers to a DCS.
Definition: dcs.h:129
void add_cancel_listener(DCSCancelListener *listener)
Add listener to be called when cancel is selected from the dialogue.
Definition: dcs.cc:151
unsigned int ObjectId
Type for underlying toolbox object id.
Definition: handles.h:31
std::string title() const
Return title.
Definition: dcs.h:176
DCS(const DCS &other)
Construct a DCS from another DCS.
Definition: dcs.h:81
virtual void dcs_save(const EventInfo &save_event)=0
Called when save is selected from a DCS dialog.
void remove_save_listener(DCSSaveListener *listener)
Remove listener to be called when save is selected from the dialogue.
Definition: dcs.cc:133
DCS(const Object &other)
Construct a DCS from an Object that refers to a DCS.
Definition: dcs.h:92
Class to provide information on a toolbox event.
Definition: eventinfo.h:49
void add_discard_listener(DCSDiscardListener *listener)
Add listener to be called when discard is selected from the dialogue.
Definition: dcs.cc:95