Disable Theme::drawMessageBox()
This commit is contained in:
+12
-7
@@ -36,15 +36,20 @@ enum IconState {
|
|||||||
|
|
||||||
class Theme {
|
class Theme {
|
||||||
public:
|
public:
|
||||||
virtual void drawMessageBox(const char * title, const char * text, const char * action, LcdFlags flags) const = 0;
|
// virtual void drawMessageBox(const char * title, const char * text, const
|
||||||
virtual void drawProgressBar(BitmapBuffer * dc, coord_t x, coord_t y, coord_t w, coord_t h, int value) const = 0;
|
// char * action, LcdFlags flags) const = 0;
|
||||||
virtual void drawCheckBox(BitmapBuffer * dc, CheckBox * checkBox) const
|
|
||||||
|
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());
|
drawCheckBox(dc, checkBox->getValue(), 0, FIELD_PADDING_TOP,
|
||||||
const char * label = checkBox->getLabel();
|
checkBox->hasFocus());
|
||||||
if (label)
|
const char* label = checkBox->getLabel();
|
||||||
dc->drawText(22, FIELD_PADDING_TOP, label);
|
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 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 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;
|
virtual void drawSlider(BitmapBuffer * dc, int vmin, int vmax, int value, const rect_t & rect, bool edit, bool focus) const = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user