32 #ifndef TBX_PROGINFO_H_ 33 #define TBX_PROGINFO_H_ 35 #include "showfullobject.h" 42 class AboutToBeShownListener;
43 class HasBeenHiddenListener;
59 enum { TOOLBOX_CLASS = 0x82b40 };
94 ProgInfo(
const std::string &template_name) :
ShowFullObject(template_name) {check_toolbox_class(ProgInfo::TOOLBOX_CLASS);}
153 void version(std::string value) {string_property(1, value);}
159 std::string
version()
const {
return string_property(2);}
193 void title(std::string value) {string_property(5, value);}
198 std::string
title()
const {
return string_property(6);}
void title(std::string value)
Set the title.
Definition: proginfo.h:193
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
std::string title() const
Return the title.
Definition: proginfo.h:198
LicenceType licence_type() const
Get the licence type.
Definition: proginfo.h:188
ProgInfo & operator=(const Object &other)
Assign this ProgInfo from an Object that refers to a ProgInfo.
Definition: proginfo.h:123
bool operator!=(const Object &other) const
Check if this ProgInfo does not refers to the same underlying toolbox object as another.
Definition: proginfo.h:139
Listener for about to be shown event.
Definition: abouttobeshownlistener.h:76
Window window() const
Return the underlying toolbox window used to implement the ProgInfo object.
Definition: proginfo.h:146
std::string version() const
Return version string.
Definition: proginfo.h:159
Class to show a toolbox ProgInfo object.
Definition: proginfo.h:56
ProgInfo(const Object &other)
Construct a ProgInfo from an Object that refers to a ProgInfo.
Definition: proginfo.h:86
Classes to use/edit toolbox resources in memory.
bool operator==(const Object &other) const
Check if this ProgInfo refers to the same underlying toolbox object as another.
Definition: proginfo.h:131
ProgInfo & operator=(const ProgInfo &other)
Assign this ProgInfo from another.
Definition: proginfo.h:111
void licence_type(LicenceType type)
Set the licence type.
Definition: proginfo.h:183
unsigned int ObjectId
Type for underlying toolbox object id.
Definition: handles.h:31
void version(std::string value)
Set version.
Definition: proginfo.h:153
The Window object represents a toolbox window.
Definition: window.h:69
LicenceType
Enumeration of license types.
Definition: proginfo.h:170
ProgInfo()
Construct creates an unassigned ProgInfo.
Definition: proginfo.h:66
ProgInfo(const ProgInfo &other)
Construct a ProgInfo from another ProgInfo.
Definition: proginfo.h:75
int title_length() const
Return the title length.
Definition: proginfo.h:203
Listener for an object has been hidden event.
Definition: hasbeenhiddenlistener.h:36
Objects derived from this class can be shown with there full location and size specified as well as t...
Definition: showfullobject.h:40
Class to manipulate a toolbox object.
Definition: object.h:50
Class to represent a ProgInfo resource.
Definition: resproginfo.h:42
ProgInfo(const std::string &template_name)
Create a ProgInfo from the named template.
Definition: proginfo.h:94
ObjectId handle() const
Return the underlying toolbox object id this object references.
Definition: object.h:93
int version_length() const
Return version string length.
Definition: proginfo.h:165