diff --git a/radio/src/thirdparty/libopenui/src/theme.h b/radio/src/thirdparty/libopenui/src/theme.h index fc9c8759f..e7b138229 100644 --- a/radio/src/thirdparty/libopenui/src/theme.h +++ b/radio/src/thirdparty/libopenui/src/theme.h @@ -36,15 +36,20 @@ enum IconState { class Theme { public: - virtual void drawMessageBox(const char * title, const char * text, const char * action, LcdFlags flags) const = 0; - virtual void drawProgressBar(BitmapBuffer * dc, coord_t x, coord_t y, coord_t w, coord_t h, int value) const = 0; - virtual void drawCheckBox(BitmapBuffer * dc, CheckBox * checkBox) const + // virtual void drawMessageBox(const char * title, const char * text, const + // char * action, LcdFlags flags) const = 0; + + virtual void drawProgressBar(BitmapBuffer * dc, coord_t x, coord_t y, + coord_t w, coord_t h, int value) const = 0; + + virtual void drawCheckBox(BitmapBuffer* dc, CheckBox* checkBox) const { - drawCheckBox(dc, checkBox->getValue(), 0, FIELD_PADDING_TOP, checkBox->hasFocus()); - const char * label = checkBox->getLabel(); - if (label) - dc->drawText(22, FIELD_PADDING_TOP, label); + drawCheckBox(dc, checkBox->getValue(), 0, FIELD_PADDING_TOP, + checkBox->hasFocus()); + const char* label = checkBox->getLabel(); + if (label) dc->drawText(22, FIELD_PADDING_TOP, label); } + virtual void drawCheckBox(BitmapBuffer * dc, bool checked, coord_t x, coord_t y, bool focus = false) const = 0; virtual void drawChoice(BitmapBuffer * dc, ChoiceBase * choice, const char * str) const = 0; virtual void drawSlider(BitmapBuffer * dc, int vmin, int vmax, int value, const rect_t & rect, bool edit, bool focus) const = 0;