1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Put main loop painting code in separate methods

Also declare the relevant variables with a reduced scope, where
possible.
This commit is contained in:
Maarten ter Huurne
2013-08-04 03:47:23 +02:00
parent f8dc4c7bb8
commit cbe7735f73
2 changed files with 118 additions and 122 deletions

View File

@@ -34,6 +34,7 @@
class Button;
class Font;
class IconButton;
class MediaMonitor;
class Menu;
class Surface;
@@ -66,6 +67,7 @@ private:
Touchscreen ts;
Menu *menu;
MediaMonitor *monitor;
std::string batteryIcon;
/*!
Retrieves the free disk space on the sd
@@ -120,6 +122,9 @@ private:
void initFont();
void initMenu();
void paint();
void paintHelp();
void showManual();
public:
@@ -152,6 +157,7 @@ public:
Translator tr;
Surface *s, *bg;
Font *font;
IconButton *btnContextMenu;
//Status functions
void main();