diff options
author | David Athay <ko2fan@gmail.com> | 2008-12-18 18:43:14 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-05 00:41:02 +0100 |
commit | 3329815114f2e352b8b1438899bd92c13facd8a1 (patch) | |
tree | 04355bbfb6559a558f0ce01ddb8c1da7c519f95a /src/gui | |
parent | 550a02997572b5d090b436b7c05d19c1823556a9 (diff) | |
download | mana-client-3329815114f2e352b8b1438899bd92c13facd8a1.tar.gz mana-client-3329815114f2e352b8b1438899bd92c13facd8a1.tar.bz2 mana-client-3329815114f2e352b8b1438899bd92c13facd8a1.tar.xz mana-client-3329815114f2e352b8b1438899bd92c13facd8a1.zip |
Re-enabled buddy window
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/buddywindow.cpp | 12 | ||||
-rw-r--r-- | src/gui/buddywindow.h | 6 |
2 files changed, 16 insertions, 2 deletions
diff --git a/src/gui/buddywindow.cpp b/src/gui/buddywindow.cpp index 0535f837..25084593 100644 --- a/src/gui/buddywindow.cpp +++ b/src/gui/buddywindow.cpp @@ -34,10 +34,13 @@ BuddyWindow::BuddyWindow(): Window(_("Buddy")) { setVisible(false); - setContentSize(124, 202); + setWindowName("Buddy Window"); setCaption(_("Buddy List")); setResizable(true); setCloseButton(true); + setMinWidth(110); + setMinHeight(200); + setDefaultSize(124, 41, 288, 330); Image *addImg = ResourceManager::getInstance()->getImage("buddyadd.png"); Image *delImg = ResourceManager::getInstance()->getImage("buddydel.png"); @@ -51,10 +54,15 @@ BuddyWindow::BuddyWindow(): add(delBuddy); } - loadWindowState("Buddy"); + loadWindowState(); } void BuddyWindow::action(const gcn::ActionEvent &event) { } + +void BuddyWindow::draw(gcn::Graphics *graphics) +{ + Window::draw(graphics); +} diff --git a/src/gui/buddywindow.h b/src/gui/buddywindow.h index 15594b63..dfe356d5 100644 --- a/src/gui/buddywindow.h +++ b/src/gui/buddywindow.h @@ -47,6 +47,12 @@ class BuddyWindow : public Window, public gcn::ActionListener */ void action(const gcn::ActionEvent &event); + /** + * Draws the window + */ + void draw(gcn::Graphics *graphics); + + private: std::list<Avatar*> mBuddyList; }; |