diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-12 15:29:40 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-12 15:29:40 (GMT) |
| commit | f1fc3811aa68f547688ac53c67ba1f5e1e92f161 (patch) | |
| tree | 6d8eccda60af1df6c8d820820e8cabe643746b0e /src/interface | |
| parent | 760a721e0db37925c5d3b31760ae3ddb4fc1a657 (diff) | |
| download | powder-f1fc3811aa68f547688ac53c67ba1f5e1e92f161.zip powder-f1fc3811aa68f547688ac53c67ba1f5e1e92f161.tar.gz | |
Remove more unused files
Diffstat (limited to 'src/interface')
| -rw-r--r-- | src/interface/ControlFactory.cpp | 54 | ||||
| -rw-r--r-- | src/interface/ControlFactory.h | 14 |
2 files changed, 0 insertions, 68 deletions
diff --git a/src/interface/ControlFactory.cpp b/src/interface/ControlFactory.cpp deleted file mode 100644 index 7132499..0000000 --- a/src/interface/ControlFactory.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include "interface/Point.h" -#include "interface/ControlFactory.h" -#include "interface/Button.h" -#include "interface/Panel.h" -#include "interface/Engine.h" - -ui::Panel * ControlFactory::MainMenu(int x, int y, int width, int height) -{ - int currentX = 1; - width -= 2; - ui::Button * tempButton; - ui::Panel * mainMenu = new ui::Panel(ui::Point(x, y), ui::Point(width, height)); - - tempButton = new ui::Button(ui::Point(currentX, 1), ui::Point(16, height-2), "\x81"); - mainMenu->AddChild(tempButton); //Open - currentX += 18; - - tempButton = new ui::Button(ui::Point(currentX, 1), ui::Point(16, height-2), "\x91"); - mainMenu->AddChild(tempButton); //Reload - currentX += 18; - - tempButton = new ui::Button(ui::Point(currentX, 1), ui::Point(width/4, height-2), "\x82 [Save]"); //Save - mainMenu->AddChild(tempButton); - currentX += tempButton->Size.X+2; - - tempButton = new ui::Button(ui::Point(currentX, 1), ui::Point(16, height-2), "\xCB"); - mainMenu->AddChild(tempButton); //Vote Up - currentX += 16; - tempButton = new ui::Button(ui::Point(currentX, 1), ui::Point(16, height-2), "\xCA"); - mainMenu->AddChild(tempButton); //Vote Down - currentX += 18; - - tempButton = new ui::Button(ui::Point(currentX, 1), ui::Point(width - currentX - (4 * 18) - (width / 5), height-2), "[Tags]"); //Tags - currentX += tempButton->Size.X+2; - mainMenu->AddChild(tempButton); - - tempButton = new ui::Button(ui::Point(currentX, 1), ui::Point(16, height-2), "\xCF"); - mainMenu->AddChild(tempButton); //Settings - currentX += 18; - - tempButton = new ui::Button(ui::Point(currentX, 1), ui::Point(16, height-2), "\x92"); - mainMenu->AddChild(tempButton); //Clear - currentX += 18; - - tempButton = new ui::Button(ui::Point(currentX, 1), ui::Point(width - currentX - (2 * 18), height-2), "\x84 [Login]"); //Login - currentX += tempButton->Size.X+2; - mainMenu->AddChild(tempButton); - - tempButton = new ui::Button(ui::Point(currentX, 1), ui::Point(16, height-2), "\xD8"); - mainMenu->AddChild(tempButton); //Render options - currentX += 18; - - return mainMenu; -} diff --git a/src/interface/ControlFactory.h b/src/interface/ControlFactory.h deleted file mode 100644 index 0f8ad61..0000000 --- a/src/interface/ControlFactory.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef CONTROLFACTORY_H -#define CONTROLFACTORY_H - -#include "Panel.h" -#include "Engine.h" - -class ControlFactory -{ -public: - static ui::Panel * MainMenu(int x, int y, int width, int height); - -}; - -#endif // CONTROLFACTORY_H |
