Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-11-08 13:20:45 +0000
committerStijn Buys <ingar@osirion.org>2013-11-08 13:20:45 +0000
commitbeefcbd30e5cb1b700c977090021cd4784989c1e (patch)
tree354086869e69b72b5603a9a58485d1e09c373bd8 /src/client/reputationwindow.h
parent3aa51da4ec976665a7e74bb659868d474400a101 (diff)
Added player reputation window,
minor cosmetic user interface changes.
Diffstat (limited to 'src/client/reputationwindow.h')
-rw-r--r--src/client/reputationwindow.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/client/reputationwindow.h b/src/client/reputationwindow.h
new file mode 100644
index 0000000..d4af145
--- /dev/null
+++ b/src/client/reputationwindow.h
@@ -0,0 +1,68 @@
+/*
+ client/reputationwindow.h
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2
+*/
+
+#ifndef __INCLUDED_CLIENT_REPUTATIONWINDOW_H__
+#define __INCLUDED_CLIENT_REPUTATIONWINDOW_H__
+
+#include "ui/button.h"
+#include "ui/iconbutton.h"
+#include "ui/listview.h"
+#include "ui/scrollpane.h"
+#include "ui/slider.h"
+#include "ui/plaintext.h"
+#include "ui/window.h"
+
+namespace client {
+
+/**
+ * @brief an inventory window widget
+ */
+class ReputationWindow : public ui::Window
+{
+public:
+ ReputationWindow(ui::Widget *parent = 0);
+ ~ReputationWindow();
+
+ /**
+ * @brief show the window
+ * Showing the reputation window will refrish its content
+ * */
+ virtual void show();
+
+protected:
+ /**
+ * @brief resize event handler
+ * */
+ virtual void resize();
+
+ /**
+ * @brief emit event handler
+ * */
+ virtual bool on_emit(ui::Widget *sender, const Event event, void *data);
+
+ /**
+ * @brief keypress event handler
+ * */
+ virtual bool on_keypress(const int key, const unsigned int modifier);
+
+private:
+ void refresh();
+
+ void set_info(const core::Info *info = 0);
+
+ ui::Text reputationwindow_infotext;
+
+ ui::Label *reputationwindow_titlelabel;
+ ui::Label *reputationwindow_targetlabel;
+ ui::IconButton *reputationwindow_closebutton;
+ ui::ListView *reputationwindow_listview;
+ ui::ScrollPane *reputationwindow_scrollpane;
+
+}; // class ReputationWindow
+
+} // namespace client
+
+#endif // __INCLUDED_CLIENT_REPUTATIONWINDOW_H__