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;
Menu menu() const
Get the menu from the icon bar.
Definition: iconbar.cc:83
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:173
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
std::string text() const
Get the current text of the icon bar for a text & sprite icon bar.
Definition: iconbar.cc:138
Listener for button selected events.
Definition: iconbarclicklistener.h:59
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
Class for Iconbar in memory template.
Definition: resiconbar.h:38
void check_toolbox_class(int class_id) const
Check if this objects toolbox class is as specified.
Definition: object.cc:122
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
Base class for commands in tbx.
Definition: command.h:36
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
Object select_show()
Get object shown when the icon bar is clicked with select.
Definition: iconbar.cc:205
Iconbar(const Object &other)
Construct a Iconbar from another toolbox object.
Definition: iconbar.h:70
Iconbar()
Construct an uninitiased Iconbar.
Definition: iconbar.h:55
std::string help_message() const
Get the current help message for the icon bar.
Definition: iconbar.cc:104
Object adjust_show()
Get object shown when the icon bar is clicked with adjust.
Definition: iconbar.cc:235
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
ObjectId handle() const
Return the underlying toolbox object id this object references.
Definition: object.h:93
void add_click_listener(IconbarClickListener *listener)
Add listener for button click with the select or adjust mouse buttons.
Definition: iconbar.cc:256
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
int sprite_length() const
Get sprite name length.
Definition: iconbar.cc:175
int help_message_length() const
Return the length of the current help message.
Definition: iconbar.cc:115
Class to represent toolbox iconbar icon.
Definition: iconbar.h:44
void add_loader(Loader *loader, int file_type=-2)
Add a file loader.
Definition: iconbar.cc:342
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
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
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
std::string sprite() const
Get the sprite used by the icon bar.
Definition: iconbar.cc:167
int text_length() const
Get the length of the icon bar text.
Definition: iconbar.cc:147
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
int icon_handle() const
Return the underling WIMP icon handle of the icon bar.
Definition: iconbar.cc:63
void remove_click_listener(IconbarClickListener *listener)
Remove listener for button click with the select or adjust mouse buttons.
Definition: iconbar.cc:266