diff options
author | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2005-05-15 09:17:40 +0000 |
---|---|---|
committer | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2005-05-15 09:17:40 +0000 |
commit | 13deabf8b93a2a6307978d9f49ad8fde5dbefdfd (patch) | |
tree | e21a23d1e6606ca86fb5629cd4048d62e560191c /src/gui/buddywindow.cpp | |
parent | 0632377e8b2e63f965b30ac89a9e2dca819735ef (diff) | |
download | mana-client-13deabf8b93a2a6307978d9f49ad8fde5dbefdfd.tar.gz mana-client-13deabf8b93a2a6307978d9f49ad8fde5dbefdfd.tar.bz2 mana-client-13deabf8b93a2a6307978d9f49ad8fde5dbefdfd.tar.xz mana-client-13deabf8b93a2a6307978d9f49ad8fde5dbefdfd.zip |
Using guichan ListModel
Diffstat (limited to 'src/gui/buddywindow.cpp')
-rw-r--r-- | src/gui/buddywindow.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/buddywindow.cpp b/src/gui/buddywindow.cpp index e5b0d82f..54652a30 100644 --- a/src/gui/buddywindow.cpp +++ b/src/gui/buddywindow.cpp @@ -23,17 +23,17 @@ #include "buddywindow.h" BuddyWindow::BuddyWindow(): - Window("") + Window("Buddys") { setContentSize(80,200); - textlist = new TextBox(); - textlist->setEditable(false); - scrollArea = new ScrollArea(textlist); + listbox = new gcn::ListBox(); + listbox->setListModel(dynamic_cast<ListModel*>(this)); + scrollArea = new ScrollArea(listbox); } BuddyWindow::~BuddyWindow() { - delete textlist; + delete listbox; delete scrollArea; } @@ -41,6 +41,7 @@ void BuddyWindow::draw(gcn::Graphics *graphics) { // Draw the children Window::draw(graphics); + } void BuddyWindow::action(const std::string& eventId) |