25 #ifndef TBX_RES_IconBar_H
26 #define TBX_RES_IconBar_H
28 #include "resobject.h"
41 enum { CLASS_ID = 0x82900};
397 #endif // TBX_RES_IconBar_H
const char * menu() const
Get name of menu to show.
Definition: resiconbar.h:288
ResIconbar(const ResObject &other)
Construct from a ResObject.
Definition: resiconbar.h:72
const char * text() const
Get the iconbar icon text.
Definition: resiconbar.h:261
int max_sprite_name() const
Get the sprite name length.
Definition: resiconbar.h:255
void generate_select_about_to_be_shown(bool generate)
Set if an iconbar select about to be shown event will be generated before the object* which has been ...
Definition: resiconbar.h:131
void init_string(int offset, const char *value)
Initialise a string in a constructor helper.
Definition: resbase.cc:1725
Class for Iconbar in memory template.
Definition: resiconbar.h:38
void menu(const char *name)
Set name of menu to show.
Definition: resiconbar.h:295
void message_with_length(int offset, const char *value, int length=-1)
Assign a message where the length is at offset+4.
Definition: resbase.cc:1639
void select_show(const char *name)
Set name of object to show on select.
Definition: resiconbar.h:337
int priority() const
Get The priority used to position the icon on the iconbar.
Definition: resiconbar.h:224
void generate_clicked_on_select(bool generate)
Set if the iconbar clicked (or client-specified) event is generate when select is clicked...
Definition: resiconbar.h:192
unsigned int select_event() const
Get The event to generate when select is clicked or 0 for the default.
Definition: resiconbar.h:306
const char * sprite_name() const
Get the sprite name.
Definition: resiconbar.h:233
bool generate_adjust_about_to_be_shown() const
Check if an iconbar adjust about to be shown event will be generated before the object* which has bee...
Definition: resiconbar.h:139
void string_with_length(int offset, const char *value, int length=-1)
Assign a string where the length is at offset+4.
Definition: resbase.cc:1591
bool select_show_transient() const
Check if the select show object will be shown transient (i.e.
Definition: resiconbar.h:155
void select_show_transient(bool transient)
Set to show the select show object as a transient (i.e.
Definition: resiconbar.h:162
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
const char * adjust_show() const
Get name of object to show on adjust.
Definition: resiconbar.h:350
unsigned int flags() const
Get all flags as a word raw access.
Definition: resiconbar.h:104
void flags(unsigned int value)
Set all flags as a word.
Definition: resiconbar.h:114
void adjust_event(unsigned int value)
Set The event to generate when adjust is clicked or 0 for the default.
Definition: resiconbar.h:323
ResIconbar(std::string name)
Constructor and empty ResIconBar.
Definition: resiconbar.h:47
unsigned int adjust_event() const
Get The event to generate when adjust is clicked or 0 for the default.
Definition: resiconbar.h:317
void text(const std::string &value, int max_length=-1)
Set the text.
Definition: resiconbar.h:278
void adjust_show_transient(bool transient)
Set to show the adjust object as a transient (i.e.
Definition: resiconbar.h:177
int max_text() const
Get the maximum text length.
Definition: resiconbar.h:283
void adjust_show(const char *name)
Set name of object to show on adjust.
Definition: resiconbar.h:357
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
void select_event(unsigned int value)
Set The event to generate when select is clicked or 0 for the default.
Definition: resiconbar.h:312
const char * help_message() const
Get the iconbar icon help message.
Definition: resiconbar.h:368
void menu(std::string name)
Set name of menu to show.
Definition: resiconbar.h:301
const char * string(int offset) const
Return a string at the given offset.
Definition: resbase.cc:1555
void sprite_name(const std::string &name, int max_length=-1)
Set the spritename.
Definition: resiconbar.h:250
void text(const char *value, int max_length=-1)
Set the text.
Definition: resiconbar.h:270
void position(int value)
Set a negative integer giving the position of this icon on the iconbar.
Definition: resiconbar.h:218
void sprite_name(const char *name, int max_length=-1)
Set the spritename.
Definition: resiconbar.h:242
void priority(int value)
Set The priority used to position the icon on the iconbar.
Definition: resiconbar.h:228
int position() const
Get a negative integer giving the position of this icon on the iconbar.
Definition: resiconbar.h:212
unsigned int uint_value(int offset) const
Get an unsigned integer value.
Definition: resbase.h:324
ResObject & operator=(const ResObject &other)
Assignment.
Definition: resobject.cc:109
bool generate_clicked_on_adjust() const
Check if the iconbar clicked (or client-specified) event is generate when adjust is clicked...
Definition: resiconbar.h:200
void adjust_show(std::string name)
Set name of object to show on adjust.
Definition: resiconbar.h:363
void generate_adjust_about_to_be_shown(bool generate)
Set if an iconbar adjust about to be shown event will be generated before the object* which has been ...
Definition: resiconbar.h:147
void select_show(std::string name)
Set name of object to show on select.
Definition: resiconbar.h:343
Base class for a resource object that can be edited.
Definition: resobject.h:52
const char * select_show() const
Get name of object to show on select.
Definition: resiconbar.h:330
bool generate_clicked_on_select() const
Check if the iconbar clicked (or client-specified) event is generate when select is clicked...
Definition: resiconbar.h:185
bool adjust_show_transient() const
Check if the adjust show object will be shown transient (i.e.
Definition: resiconbar.h:170
ResIconbar(const ResIconbar &other)
Copy constructor.
Definition: resiconbar.h:65
void generate_clicked_on_adjust(bool generate)
Set if the iconbar clicked (or client-specified) event is generate when adjust is clicked...
Definition: resiconbar.h:207
void help_message(const std::string &value, int max_length=-1)
Set the help message.
Definition: resiconbar.h:385
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
int max_help_message() const
Get the maximum help message length.
Definition: resiconbar.h:390
ResIconbar & operator=(const ResObject &other)
Assignment from ResObject.
Definition: resiconbar.h:90
const char * name() const
Return pointer to name of object.
Definition: resobject.h:79
bool generate_select_about_to_be_shown() const
Check if an iconbar select about to be shown event will be generated before the object* which has bee...
Definition: resiconbar.h:123
void check_class_id(int class_id) const
Check if this objects class id is as specified.
Definition: resobject.cc:383
ResIconbar & operator=(const ResIconbar &other)
Assignment.
Definition: resiconbar.h:79
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736
void help_message(const char *value, int max_length=-1)
Set the help message.
Definition: resiconbar.h:377