summaryrefslogtreecommitdiff
path: root/src/console/ConsoleView.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-11-17 19:44:09 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-11-17 19:44:09 (GMT)
commit058a2edd75debbd0297f92572316daa704bd379f (patch)
treead303f091f9a08b209b91eb34a9fcad996a3de69 /src/console/ConsoleView.h
parente3594aba9e05c6865d396418c028049cda92c2f3 (diff)
parent7a21ae192fe19868539956f3fe28e62b2c7c4429 (diff)
downloadpowder-058a2edd75debbd0297f92572316daa704bd379f.zip
powder-058a2edd75debbd0297f92572316daa704bd379f.tar.gz
Merge branch 'master' of github.com:FacialTurd/PowderToypp
Diffstat (limited to 'src/console/ConsoleView.h')
-rw-r--r--src/console/ConsoleView.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/console/ConsoleView.h b/src/console/ConsoleView.h
new file mode 100644
index 0000000..f118293
--- /dev/null
+++ b/src/console/ConsoleView.h
@@ -0,0 +1,37 @@
+/*
+ * ConsoleView.h
+ *
+ * Created on: Jan 31, 2012
+ * Author: Simon
+ */
+
+#ifndef CONSOLEVIEW_H_
+#define CONSOLEVIEW_H_
+
+#include <vector>
+#include <queue>
+#include "interface/Label.h"
+#include "interface/Window.h"
+#include "ConsoleController.h"
+#include "ConsoleModel.h"
+#include "interface/Textbox.h"
+#include "ConsoleCommand.h"
+
+
+class ConsoleController;
+class ConsoleModel;
+class ConsoleView: public ui::Window {
+ ConsoleController * c;
+ ui::Textbox * commandField;
+ std::vector<ui::Label*> commandList;
+public:
+ ConsoleView();
+ virtual void OnDraw();
+ virtual void DoKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt);
+ void AttachController(ConsoleController * c_) { c = c_; }
+ void NotifyPreviousCommandsChanged(ConsoleModel * sender);
+ void NotifyCurrentCommandChanged(ConsoleModel * sender);
+ virtual ~ConsoleView();
+};
+
+#endif /* CONSOLEVIEW_H_ */