summaryrefslogtreecommitdiff
path: root/src/gui/statuswindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-15 15:47:09 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-15 15:47:09 +0300
commit243628a5d2d12a02708b14b0cbac1498bdcec844 (patch)
tree3a34c6e02d26595120f4576b0c7b943da2696fb7 /src/gui/statuswindow.h
parent178af146d00873e632802dcbdbc77dcb9198d6b1 (diff)
downloadmv-243628a5d2d12a02708b14b0cbac1498bdcec844.tar.gz
mv-243628a5d2d12a02708b14b0cbac1498bdcec844.tar.bz2
mv-243628a5d2d12a02708b14b0cbac1498bdcec844.tar.xz
mv-243628a5d2d12a02708b14b0cbac1498bdcec844.zip
Add button in status window to copy player stats to chat.
Diffstat (limited to 'src/gui/statuswindow.h')
-rw-r--r--src/gui/statuswindow.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/statuswindow.h b/src/gui/statuswindow.h
index 74eb2c401..44d052004 100644
--- a/src/gui/statuswindow.h
+++ b/src/gui/statuswindow.h
@@ -48,7 +48,9 @@ class VertContainer;
*
* \ingroup Interface
*/
-class StatusWindow : public Window, public Mana::Listener
+class StatusWindow : public Window,
+ public gcn::ActionListener,
+ public Mana::Listener
{
public:
/**
@@ -77,6 +79,8 @@ class StatusWindow : public Window, public Mana::Listener
void updateProgressBar(ProgressBar *bar, int id,
bool percent = true);
+ void action(const gcn::ActionEvent &event);
+
private:
static std::string translateLetter(char* letters);
@@ -97,6 +101,7 @@ class StatusWindow : public Window, public Mana::Listener
gcn::Label *mCharacterPointsLabel;
gcn::Label *mCorrectionPointsLabel;
+ gcn::Button *mCopyButton;
typedef std::map<int, AttrDisplay*> Attrs;
Attrs mAttrs;