25 #ifndef TBX_ICONBAR_H_ 26 #define TBX_ICONBAR_H_ 34 class IconbarClickListener;
47 enum {TOOLBOX_CLASS = 0x82900};
77 Iconbar(
const char *template_name) :
Object(template_name) {check_toolbox_class(Iconbar::TOOLBOX_CLASS);}
117 int icon_handle()
const;
120 void help_message(
const std::string &value);
121 std::string help_message()
const;
122 int help_message_length()
const;
123 void text(std::string value);
124 std::string text()
const;
125 int text_length()
const;
126 void sprite(
const std::string &value);
127 std::string sprite()
const;
128 int sprite_length()
const;
129 void select_show(
Object show_object);
131 void adjust_show(
Object show_object);
139 void add_click_command(
Command *command);
140 void remove_click_command(
Command *command);
141 void add_select_command(
Command *command);
142 void remove_select_command(
Command *command);
143 void add_adjust_command(
Command *command);
144 void remove_adjust_command(
Command *command);
145 void add_loader(
Loader *loader,
int file_type = -2);
146 void remove_loader(
Loader *loader,
int file_type = -2);
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
Listener for button selected events.
Definition: iconbarclicklistener.h:59
Class for Iconbar in memory template.
Definition: resiconbar.h:38
bool operator!=(const Object &other) const
Checks if this Iconbar refers to the same underlying toolbox object as the given object.
Definition: iconbar.h:113
Base class for commands in tbx.
Definition: command.h:36
Classes to use/edit toolbox resources in memory.
Iconbar(const Object &other)
Construct a Iconbar from another toolbox object.
Definition: iconbar.h:70
Iconbar()
Construct an uninitiased Iconbar.
Definition: iconbar.h:55
bool operator==(const Object &other) const
Checks if this Iconbar refers to the same underlying toolbox object as the given object.
Definition: iconbar.h:106
Class to handle file/data loading from the filer or an external application.
Definition: loader.h:179
Iconbar(const char *template_name)
Construct a iconbar creating a toolbox iconbar object.
Definition: iconbar.h:77
Class to represent toolbox iconbar icon.
Definition: iconbar.h:44
Iconbar & operator=(const Object &other)
Assign a Iconbar to an existing object.
Definition: iconbar.h:99
Iconbar(const Iconbar &other)
Construct a Iconbar from another Iconbar.
Definition: iconbar.h:62
Class to manipulate a toolbox object.
Definition: object.h:50
Iconbar & operator=(const Iconbar &other)
Assign a Iconbar to an existing Iconbar.
Definition: iconbar.h:91
ObjectId handle() const
Return the underlying toolbox object id this object references.
Definition: object.h:93