/* client/trademenu.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_TRADEMENU_H__ #define __INCLUDED_CLIENT_TRADEMENU_H__ #include "core/info.h" #include "ui/container.h" #include "ui/label.h" #include "ui/listview.h" #include "ui/widget.h" namespace client { /// trade menu class TradeMenu : public ui::Window { public: /// create a new trade menu TradeMenu(ui::Widget *parent, const char * label = 0); ~TradeMenu(); /// set the item type to trade void set_item_type(std::string const & itemtype); protected: /// resize event handler virtual void resize(); /// emit event handler virtual bool on_emit(Widget *sender, const Event event, void *data); private: ui::Window *menu_tradewindow; ui::ListView *menu_inventorylistview; ui::ListView *menu_traderlistview; ui::Button *menu_closebutton; ui::Label *menu_namelabel; }; } #endif // __INCLUDED_CLIENT_TRADEMENU_H__