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 };
98 Quit(
const std::string &template_name) :
ShowFullObject(template_name) {check_toolbox_class(Quit::TOOLBOX_CLASS);}
155 void message(std::string msg) {string_property(1, msg);}
160 std::string
message()
const {
return string_property(2);}
169 void title(std::string msg) {string_property(3, msg);}
174 std::string
title()
const {
return string_property(4);}
200 virtual void quit_quit(
const EventInfo &quit_event) = 0;
212 virtual void quit_cancel(
const EventInfo &cancel_event) = 0;
Quit(const Quit &other)
Construct a Quit from another Quit.
Definition: quit.h:79
void message(std::string msg)
Set message to display in window.
Definition: quit.h:155
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
Listener for when a Quit is selected from the Quit dialog.
Definition: quit.h:194
Quit()
Construct creates an unassigned Quit.
Definition: quit.h:70
Listener for when a cancel is selected from the Quit dialog.
Definition: quit.h:206
Quit(const Object &other)
Construct a Quit from an Object that refers to a Quit.
Definition: quit.h:90
Listener for about to be shown event.
Definition: abouttobeshownlistener.h:76
bool operator==(const Object &other) const
Check if this Quit refers to the same underlying toolbox object as another.
Definition: quit.h:135
int message_length() const
Return length of message.
Definition: quit.h:164
Classes to use/edit toolbox resources in memory.
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
Window window() const
Return the underlying toolbox window used to implement the Quit object.
Definition: quit.h:150
void title(std::string msg)
Set title of window.
Definition: quit.h:169
Quit(const std::string &template_name)
Create a Quit from the named template.
Definition: quit.h:98
std::string title() const
Return title.
Definition: quit.h:174
unsigned int ObjectId
Type for underlying toolbox object id.
Definition: handles.h:31
Class for Quit object template.
Definition: resquit.h:36
The Window object represents a toolbox window.
Definition: window.h:69
Class to provide information on a toolbox event.
Definition: eventinfo.h:48
Base class for all toolbox event listeners.
Definition: listener.h:33
Quit & operator=(const Quit &other)
Assign this Quit from another.
Definition: quit.h:115
Class to show a toolbox Quit object that gives the user an option to Quit or Cancel the application...
Definition: quit.h:60
Listener for an object has been hidden event.
Definition: hasbeenhiddenlistener.h:36
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:40
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
Class to manipulate a toolbox object.
Definition: object.h:50
ObjectId handle() const
Return the underlying toolbox object id this object references.
Definition: object.h:93