2012-05-17 11:36:25 +00:00
|
|
|
#ifndef MWGUI_TRADEWINDOW_H
|
|
|
|
#define MWGUI_TRADEWINDOW_H
|
|
|
|
|
|
|
|
#include "container.hpp"
|
|
|
|
#include "window_base.hpp"
|
|
|
|
|
2012-05-17 15:15:44 +00:00
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
2012-05-17 11:36:25 +00:00
|
|
|
namespace MyGUI
|
|
|
|
{
|
|
|
|
class Gui;
|
|
|
|
class Widget;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class WindowManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class TradeWindow : public ContainerBase, public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TradeWindow(WindowManager& parWindowManager);
|
|
|
|
|
2012-05-17 15:15:44 +00:00
|
|
|
void startTrade(MWWorld::Ptr actor);
|
|
|
|
|
2012-05-17 11:36:25 +00:00
|
|
|
//virtual void Update();
|
|
|
|
//virtual void notifyContentChanged();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
MyGUI::Button* mFilterAll;
|
|
|
|
MyGUI::Button* mFilterWeapon;
|
|
|
|
MyGUI::Button* mFilterApparel;
|
|
|
|
MyGUI::Button* mFilterMagic;
|
|
|
|
MyGUI::Button* mFilterMisc;
|
|
|
|
|
2012-05-17 19:15:48 +00:00
|
|
|
MyGUI::Button* mIncreaseButton;
|
|
|
|
MyGUI::Button* mDecreaseButton;
|
|
|
|
MyGUI::TextBox* mTotalBalanceLabel;
|
|
|
|
MyGUI::TextBox* mTotalBalance;
|
|
|
|
|
|
|
|
MyGUI::Widget* mBottomPane;
|
|
|
|
|
|
|
|
MyGUI::Button* mMaxSaleButton;
|
|
|
|
MyGUI::Button* mCancelButton;
|
|
|
|
MyGUI::Button* mOfferButton;
|
|
|
|
MyGUI::TextBox* mPlayerGold;
|
|
|
|
MyGUI::TextBox* mMerchantGold;
|
|
|
|
|
2012-05-17 11:36:25 +00:00
|
|
|
void onWindowResize(MyGUI::Window* _sender);
|
|
|
|
void onFilterChanged(MyGUI::Widget* _sender);
|
2012-05-17 19:15:48 +00:00
|
|
|
void onOfferButtonClicked(MyGUI::Widget* _sender);
|
|
|
|
void onCancelButtonClicked(MyGUI::Widget* _sender);
|
2012-05-17 11:36:25 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|