summaryrefslogtreecommitdiff
path: root/src/gui/buddywindow.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-16 15:50:42 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-16 15:50:42 +0000
commit57b3e0e1f0b835ff2982e9f66c7af402caecd3c1 (patch)
treed47849491f941ae2074840d2f44fd8fc1148af5d /src/gui/buddywindow.cpp
parent960257dd1744a7c735f9ece50eaef79c96c895a9 (diff)
downloadmana-57b3e0e1f0b835ff2982e9f66c7af402caecd3c1.tar.gz
mana-57b3e0e1f0b835ff2982e9f66c7af402caecd3c1.tar.bz2
mana-57b3e0e1f0b835ff2982e9f66c7af402caecd3c1.tar.xz
mana-57b3e0e1f0b835ff2982e9f66c7af402caecd3c1.zip
Formatting updates to buddy window and menu item and made testing menu item
visible.
Diffstat (limited to 'src/gui/buddywindow.cpp')
-rw-r--r--src/gui/buddywindow.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/buddywindow.cpp b/src/gui/buddywindow.cpp
index f9c32be5..2e81c798 100644
--- a/src/gui/buddywindow.cpp
+++ b/src/gui/buddywindow.cpp
@@ -18,26 +18,28 @@
* along with The Mana World; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
+ * $Id$
*/
#include "buddywindow.h"
#include "menuitem.h"
BuddyWindow::BuddyWindow():
- Window("Buddys")
+ Window("Buddys")
{
- setContentSize(80,200);
-
+ setContentSize(80, 200);
+
listbox = new gcn::ListBox();
listbox->setListModel(dynamic_cast<ListModel*>(this));
-
+
scrollArea = new ScrollArea(listbox);
scrollArea->setDimension(gcn::Rectangle(
2, 0, 76, 180));
add(scrollArea);
-
+
addBuddy("Usiu"); // for testing
MenuItem *item = new MenuItem("Test");
+ item->setPosition(0, 200 - item->getHeight());
add(item);
}
@@ -55,6 +57,5 @@ void BuddyWindow::draw(gcn::Graphics *graphics)
void BuddyWindow::action(const std::string& eventId)
{
-
}