blob: 37823b17ad79e9250eff702231892409ee0aa9e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
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__
|