Disable Theme::drawMessageBox()
This commit is contained in:
+12
-7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user