Disable Theme::drawMessageBox()

This commit is contained in:
Raphael Coeffic
2021-05-30 17:28:23 +02:00
parent 8692796dd5
commit 675773bcfb
+12 -7
View File
@@ -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;