mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 12:57:31 +02:00
Give adjustInput() an empty default implementation and remove empty overrides.
Again a slight reduction in binary size.
This commit is contained in:
parent
d1d55a7666
commit
44bed79d5c
@ -42,6 +42,10 @@ void MenuSetting::handleTS()
|
||||
buttonBox.handleTS();
|
||||
}
|
||||
|
||||
void MenuSetting::adjustInput()
|
||||
{
|
||||
}
|
||||
|
||||
void MenuSetting::drawSelected(int /*y*/)
|
||||
{
|
||||
buttonBox.paint(5);
|
||||
|
@ -50,7 +50,7 @@ public:
|
||||
virtual void handleTS();
|
||||
|
||||
virtual void manageInput() = 0;
|
||||
virtual void adjustInput() = 0;
|
||||
virtual void adjustInput();
|
||||
virtual void drawSelected(int y);
|
||||
virtual bool edited() = 0;
|
||||
|
||||
|
@ -91,8 +91,6 @@ bool MenuSettingBool::value()
|
||||
return *_value;
|
||||
}
|
||||
|
||||
void MenuSettingBool::adjustInput() {}
|
||||
|
||||
bool MenuSettingBool::edited()
|
||||
{
|
||||
return originalValue != value();
|
||||
|
@ -43,7 +43,6 @@ public:
|
||||
|
||||
virtual void draw(int y);
|
||||
virtual void manageInput();
|
||||
virtual void adjustInput();
|
||||
virtual bool edited();
|
||||
|
||||
void setValue(int value);
|
||||
|
@ -76,8 +76,6 @@ void MenuSettingMultiString::setSel(int sel)
|
||||
*value = (*choices)[sel];
|
||||
}
|
||||
|
||||
void MenuSettingMultiString::adjustInput() {}
|
||||
|
||||
bool MenuSettingMultiString::edited()
|
||||
{
|
||||
return originalValue != *value;
|
||||
|
@ -43,7 +43,6 @@ public:
|
||||
|
||||
virtual void draw(int y);
|
||||
virtual void manageInput();
|
||||
virtual void adjustInput();
|
||||
virtual bool edited();
|
||||
};
|
||||
|
||||
|
@ -50,10 +50,6 @@ void MenuSettingStringBase::manageInput()
|
||||
if (gmenu2x->input[ACTION_B]) edit();
|
||||
}
|
||||
|
||||
void MenuSettingStringBase::adjustInput()
|
||||
{
|
||||
}
|
||||
|
||||
void MenuSettingStringBase::clear()
|
||||
{
|
||||
setValue("");
|
||||
|
@ -40,7 +40,6 @@ public:
|
||||
|
||||
virtual void draw(int y);
|
||||
virtual void manageInput();
|
||||
virtual void adjustInput();
|
||||
virtual bool edited();
|
||||
|
||||
void setValue(const string &value) { *_value = value; }
|
||||
|
Loading…
Reference in New Issue
Block a user