25 #ifndef TBX_ICONBAR_H_
26 #define TBX_ICONBAR_H_
34 class IconbarClickListener;
47 enum {TOOLBOX_CLASS = 0x82900};
123 void text(std::string value);
124 std::string
text()
const;
126 void sprite(
const std::string &value);
127 std::string
sprite()
const;
Iconbar(const Iconbar &other)
Construct a Iconbar from another Iconbar.
Definition: iconbar.h:62
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
ObjectId handle() const
Return the underlying toolbox object id this object references.
Definition: object.h:93
void remove_adjust_command(Command *command)
Remove command to be run if the button is selected with the adjust mouse button only.
Definition: iconbar.cc:329
Class to represent toolbox iconbar icon.
Definition: iconbar.h:45
void remove_loader(Loader *loader, int file_type=-2)
Remove a file loader.
Definition: iconbar.cc:356
ObjectId _handle
Handle for toolbox object.
Definition: object.h:175
Object select_show()
Get object shown when the icon bar is clicked with select.
Definition: iconbar.cc:205
Iconbar()
Construct an uninitiased Iconbar.
Definition: iconbar.h:55
Iconbar(const Object &other)
Construct a Iconbar from another toolbox object.
Definition: iconbar.h:70
Class to handle file/data loading from the filer or an external application.
Definition: loader.h:179
int sprite_length() const
Get sprite name length.
Definition: iconbar.cc:175
std::string sprite() const
Get the sprite used by the icon bar.
Definition: iconbar.cc:167
int help_message_length() const
Return the length of the current help message.
Definition: iconbar.cc:115
void add_select_command(Command *command)
Add command to be run if the button is selected with the select mouse button.
Definition: iconbar.cc:297
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
Menu menu() const
Get the menu from the icon bar.
Definition: iconbar.cc:83
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
void check_toolbox_class(int class_id) const
Check if this objects toolbox class is as specified.
Definition: object.cc:122
Listener for button selected events.
Definition: iconbarclicklistener.h:59
void add_click_listener(IconbarClickListener *listener)
Add listener for button click with the select or adjust mouse buttons.
Definition: iconbar.cc:256
Class to manipulate a toolbox object.
Definition: object.h:51
void add_loader(Loader *loader, int file_type=-2)
Add a file loader.
Definition: iconbar.cc:342
Base class for commands in tbx.
Definition: command.h:37
int icon_handle() const
Return the underling WIMP icon handle of the icon bar.
Definition: iconbar.cc:63
Iconbar(const char *template_name)
Construct a iconbar creating a toolbox iconbar object.
Definition: iconbar.h:77
int text_length() const
Get the length of the icon bar text.
Definition: iconbar.cc:147
Object adjust_show()
Get object shown when the icon bar is clicked with adjust.
Definition: iconbar.cc:235
std::string text() const
Get the current text of the icon bar for a text & sprite icon bar.
Definition: iconbar.cc:138
void remove_select_command(Command *command)
Remove command to be run if the button is selected with the select mouse button.
Definition: iconbar.cc:307
void remove_click_listener(IconbarClickListener *listener)
Remove listener for button click with the select or adjust mouse buttons.
Definition: iconbar.cc:266
void remove_click_command(Command *command)
Remove command to be run if the iconbar is clicked with the select or adjust mouse buttons.
Definition: iconbar.cc:287
Iconbar & operator=(const Object &other)
Assign a Iconbar to an existing object.
Definition: iconbar.h:99
void add_adjust_command(Command *command)
Add command to be run if the button is selected with the adjust mouse button only.
Definition: iconbar.cc:318
Iconbar & operator=(const Iconbar &other)
Assign a Iconbar to an existing Iconbar.
Definition: iconbar.h:91
std::string help_message() const
Get the current help message for the icon bar.
Definition: iconbar.cc:104
Class for Iconbar in memory template.
Definition: resiconbar.h:39
void add_click_command(Command *command)
Add command to be run if the iconbar is clicked with the select or adjust mouse buttons.
Definition: iconbar.cc:276