35 #include "showfullobject.h"
37 #include "eventinfo.h"
43 class AboutToBeShownListener;
44 class HasBeenHiddenListener;
45 class QuitQuitListener;
46 class QuitCancelListener;
63 enum { TOOLBOX_CLASS = 0x82a90 };
int int_property(int property_id) const
Return the value of a property that returns an integer.
Definition: object.cc:477
int message_length() const
Return length of message.
Definition: quit.h:164
bool operator!=(const Object &other) const
Check if this Quit does not refers to the same underlying toolbox object as another.
Definition: quit.h:143
void message(std::string msg)
Set message to display in window.
Definition: quit.h:155
Quit(const Quit &other)
Construct a Quit from another Quit.
Definition: quit.h:79
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
void add_quit_listener(QuitQuitListener *listener)
Add listener to be called when quit is selected from the dialogue.
Definition: quit.cc:93
ObjectId handle() const
Return the underlying toolbox object id this object references.
Definition: object.h:93
Quit()
Construct creates an unassigned Quit.
Definition: quit.h:70
ObjectId _handle
Handle for toolbox object.
Definition: object.h:175
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
Quit(const Object &other)
Construct a Quit from an Object that refers to a Quit.
Definition: quit.h:90
Class to show a toolbox Quit object that gives the user an option to Quit or Cancel the application.
Definition: quit.h:61
Listener for an object has been hidden event.
Definition: hasbeenhiddenlistener.h:36
bool operator==(const Object &other) const
Check if this Quit refers to the same underlying toolbox object as another.
Definition: quit.h:135
int string_property_length(int property_id) const
Gets the size of a string properties buffer.
Definition: object.cc:572
void remove_has_been_hidden_listener(HasBeenHiddenListener *listener)
Remove has been hidden listener.
Definition: quit.cc:77
Quit & operator=(const Object &other)
Assign this Quit from an Object that refers to a Quit.
Definition: quit.h:127
std::string message() const
Return message.
Definition: quit.h:160
void check_toolbox_class(int class_id) const
Check if this objects toolbox class is as specified.
Definition: object.cc:122
Quit(const std::string &template_name)
Create a Quit from the named template.
Definition: quit.h:98
Listener for when a Quit is selected from the Quit dialog.
Definition: quit.h:195
Window window() const
Return the underlying toolbox window used to implement the Quit object.
Definition: quit.h:150
void add_cancel_listener(QuitCancelListener *listener)
Add listener to be called when cancel is selected from the dialogue.
Definition: quit.cc:119
Class for Quit object template.
Definition: resquit.h:37
Listener for about to be shown event.
Definition: abouttobeshownlistener.h:77
void title(std::string msg)
Set title of window.
Definition: quit.h:169
void add_about_to_be_shown_listener(AboutToBeShownListener *listener)
This event is raised just before the Quit underlying window is about to be shown.
Definition: quit.cc:47
virtual void quit_cancel(const EventInfo &cancel_event)=0
Called when cancel is selected from a Quit dialog.
std::string title() const
Return title.
Definition: quit.h:174
Class to manipulate a toolbox object.
Definition: object.h:51
virtual void quit_quit(const EventInfo &quit_event)=0
Called when quit is selected from a Quit dialog.
Base class for all toolbox event listeners.
Definition: listener.h:34
int title_length() const
Return length of title.
Definition: quit.h:178
Objects derived from this class can be shown with there full location and size specified as well as t...
Definition: showfullobject.h:41
unsigned int ObjectId
Type for underlying toolbox object id.
Definition: handles.h:31
void remove_quit_listener(QuitQuitListener *listener)
Remove listener called when quit is selected from the dialogue.
Definition: quit.cc:103
Quit & operator=(const Quit &other)
Assign this Quit from another.
Definition: quit.h:115
void remove_cancel_listener(QuitCancelListener *listener)
Remove listener called when cancel is selected from the dialogue.
Definition: quit.cc:129
void remove_about_to_be_shown_listener(AboutToBeShownListener *listener)
Remove about to be shown listener.
Definition: quit.cc:57
Class to provide information on a toolbox event.
Definition: eventinfo.h:49
Listener for when a cancel is selected from the Quit dialog.
Definition: quit.h:207
void add_has_been_hidden_listener(HasBeenHiddenListener *listener)
This event is raised after the Quit dialog has been completed.
Definition: quit.cc:67