1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-12-26 20:19:32 +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:
Maarten ter Huurne 2010-07-28 00:38:47 +02:00
parent eff06b0319
commit ac30153cfc
2 changed files with 10 additions and 6 deletions

View File

@ -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);
}

View File

@ -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; }
};