mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 03:06:15 +02:00
Declared methods abstract where possible; moved destructor implementation out of header.
Together this reduces the binary size by about 7.5K on mipsel.
This commit is contained in:
parent
eff06b0319
commit
ac30153cfc
@ -28,6 +28,10 @@ MenuSetting::MenuSetting(GMenu2X *gmenu2x, const string &name,
|
||||
{
|
||||
}
|
||||
|
||||
MenuSetting::~MenuSetting()
|
||||
{
|
||||
}
|
||||
|
||||
void MenuSetting::draw(int y)
|
||||
{
|
||||
gmenu2x->s->write( gmenu2x->font, name, 5, y+gmenu2x->font->getHalfHeight(), SFontHAlignLeft, SFontVAlignMiddle );
|
||||
@ -38,7 +42,7 @@ void MenuSetting::handleTS()
|
||||
buttonBox.handleTS();
|
||||
}
|
||||
|
||||
void MenuSetting::drawSelected(int)
|
||||
void MenuSetting::drawSelected(int /*y*/)
|
||||
{
|
||||
buttonBox.paint(5);
|
||||
}
|
||||
|
@ -44,15 +44,15 @@ protected:
|
||||
|
||||
public:
|
||||
MenuSetting(GMenu2X *gmenu2x, const string &name, const string &description);
|
||||
virtual ~MenuSetting() {};
|
||||
virtual ~MenuSetting();
|
||||
|
||||
virtual void draw(int y);
|
||||
virtual void handleTS();
|
||||
|
||||
virtual void manageInput() {};
|
||||
virtual void adjustInput() {};
|
||||
virtual void drawSelected(int);
|
||||
virtual bool edited() { return true; };
|
||||
virtual void manageInput() = 0;
|
||||
virtual void adjustInput() = 0;
|
||||
virtual void drawSelected(int y);
|
||||
virtual bool edited() = 0;
|
||||
|
||||
const string &getDescription() { return description; }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user