90 for (
typename std::vector<T>::iterator i =
mySchemes.begin(); i !=
mySchemes.end(); ++i) {
91 if ((*i).getName() == name) {
99 for (
int i = 0; i < (int)
mySchemes.size(); i++) {
108 for (
typename std::vector<T>::const_iterator i =
mySchemes.begin(); i !=
mySchemes.end(); ++i) {
109 i->save(dev, prefix);
GUIPropertySchemeStorage< GUIColorScheme > GUIColorer
GUIPropertySchemeStorage< GUIScaleScheme > GUIScaler
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
Base class for coloring. Allows changing the used colors and sets the used color in dependence to a v...
const std::vector< T > & getSchemes() const
virtual ~GUIPropertySchemeStorage()
Destructor.
const T & getScheme() const
void setSchemeByName(std::string name)
bool operator==(const GUIPropertySchemeStorage &c) const
GUIPropertySchemeStorage()
Constructor.
std::vector< T > mySchemes
void save(OutputDevice &dev, const std::string &prefix="") const
void fill(MFXComboBoxIcon &cb)
Fills the given combobox with the names of available colorings.
T * getSchemeByName(std::string name)
void setActive(int scheme)
long setCurrentItem(const FXint index, FXbool notify=FALSE)
Set the current item (index is zero-based)
FXint appendIconItem(const FXString &text, FXIcon *icon=nullptr, FXColor bgColor=FXRGB(255, 255, 255), void *ptr=nullptr)
append icon item in the last position
static FXColor getFXColor(const RGBColor &col)
converts FXColor to RGBColor
Static storage of an output device and its base (abstract) implementation.