1 #ifndef MWGUI_TRADEWINDOW_H
2 #define MWGUI_TRADEWINDOW_H
4 #include "../mwmechanics/trading.hpp"
22 class SortFilterItemModel;
80 void sellItem (MyGUI::Widget* sender,
int count);
90 void onRepeatClick(MyGUI::Widget* widget, MyGUI::ControllerItem* controller);
Definition: tradewindow.hpp:25
A variant of the EditBox that only allows integer inputs.
Definition: numericeditbox.hpp:12
void addOrRemoveGold(int gold, const MWWorld::Ptr &actor)
Definition: tradewindow.cpp:252
void sellToNpc(const MWWorld::Ptr &item, int count, bool boughtItem)
only used for adjusting the gold balance
Definition: tradewindow.cpp:480
static const float sBalanceChangeInitialPause
Definition: tradewindow.hpp:47
int getMerchantServices()
Definition: tradewindow.cpp:170
Definition: itemview.hpp:11
void onBalanceValueChanged(int value)
Definition: tradewindow.cpp:408
virtual void onReferenceUnavailable()
called when reference has become unavailable
Definition: tradewindow.cpp:490
MyGUI::Button * mFilterWeapon
Definition: tradewindow.hpp:51
An item model that allows 'borrowing' items from another item model. Used for previewing barter offer...
Definition: tradeitemmodel.hpp:13
void onRepeatClick(MyGUI::Widget *widget, MyGUI::ControllerItem *controller)
Definition: tradewindow.cpp:395
MyGUI::TextBox * mPlayerGold
Definition: tradewindow.hpp:66
void returnItem(int index, size_t count)
Definition: tradewindow.cpp:243
int mCurrentMerchantOffer
Definition: tradewindow.hpp:72
void onFilterChanged(MyGUI::Widget *_sender)
Definition: tradewindow.cpp:146
MyGUI::TextBox * mTotalBalanceLabel
Definition: tradewindow.hpp:58
void onDecreaseButtonPressed(MyGUI::Widget *_sender, int _left, int _top, MyGUI::MouseButton _id)
Definition: tradewindow.cpp:389
void buyFromNpc(const MWWorld::Ptr &item, int count, bool soldItem)
only used for adjusting the gold balance
Definition: tradewindow.cpp:485
void onMaxSaleButtonClicked(MyGUI::Widget *_sender)
Definition: tradewindow.cpp:368
ItemView * mItemView
Definition: tradewindow.hpp:42
TradeItemModel * mTradeModel
Definition: tradewindow.hpp:44
void updateLabels()
Definition: tradewindow.cpp:435
SortFilterItemModel * mSortModel
Definition: tradewindow.hpp:43
MyGUI::Button * mCancelButton
Definition: tradewindow.hpp:64
TradeWindow()
Definition: tradewindow.cpp:53
int getMerchantGold()
Definition: tradewindow.cpp:497
virtual void resetReference()
Definition: tradewindow.cpp:503
void onCancelButtonClicked(MyGUI::Widget *_sender)
Definition: tradewindow.cpp:363
void restock()
Definition: tradewindow.cpp:103
MyGUI::Widget * mBottomPane
Definition: tradewindow.hpp:61
void onDecreaseButtonTriggered()
Definition: tradewindow.cpp:428
void updateOffer()
Definition: tradewindow.cpp:456
Definition: sortfilteritemmodel.hpp:9
MyGUI::Button * mFilterMisc
Definition: tradewindow.hpp:54
void sellItem(MyGUI::Widget *sender, int count)
Definition: tradewindow.cpp:208
void onIncreaseButtonTriggered()
Definition: tradewindow.cpp:418
MyGUI::Button * mOfferButton
Definition: tradewindow.hpp:65
Gui::NumericEditBox * mTotalBalance
Definition: tradewindow.hpp:59
MyGUI::TextBox * mMerchantGold
Definition: tradewindow.hpp:67
MyGUI::Button * mFilterAll
Definition: tradewindow.hpp:50
int mItemToSell
Definition: tradewindow.hpp:69
void borrowItem(int index, size_t count)
Definition: tradewindow.cpp:235
Definition: windowbase.hpp:16
MyGUI::Button * mFilterApparel
Definition: tradewindow.hpp:52
MyGUI::Button * mMaxSaleButton
Definition: tradewindow.hpp:63
void onIncreaseButtonPressed(MyGUI::Widget *_sender, int _left, int _top, MyGUI::MouseButton _id)
Definition: tradewindow.cpp:383
MyGUI::Button * mIncreaseButton
Definition: tradewindow.hpp:56
this class is intended for GUI interfaces that access an MW-Reference for example dialogue window acc...
Definition: referenceinterface.hpp:12
int mCurrentBalance
Definition: tradewindow.hpp:71
void addRepeatController(MyGUI::Widget *widget)
Definition: tradewindow.cpp:374
void onBalanceButtonReleased(MyGUI::Widget *_sender, int _left, int _top, MyGUI::MouseButton _id)
Definition: tradewindow.cpp:403
MyGUI::Button * mFilterMagic
Definition: tradewindow.hpp:53
MyGUI::Button * mDecreaseButton
Definition: tradewindow.hpp:57
virtual void exit()
Gracefully exits the window.
Definition: tradewindow.cpp:175
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
void onItemSelected(int index)
Definition: tradewindow.cpp:182
void onOfferButtonClicked(MyGUI::Widget *_sender)
Definition: tradewindow.cpp:266
void startTrade(const MWWorld::Ptr &actor)
Definition: tradewindow.cpp:117
Definition: trading.hpp:8
static const float sBalanceChangeInterval
Definition: tradewindow.hpp:48
MWMechanics::Trading mTrading
Definition: tradewindow.hpp:45