|
|
@ -27,6 +27,7 @@
|
|
|
|
#include "tradeitemmodel.hpp"
|
|
|
|
#include "tradeitemmodel.hpp"
|
|
|
|
#include "countdialog.hpp"
|
|
|
|
#include "countdialog.hpp"
|
|
|
|
#include "controllers.hpp"
|
|
|
|
#include "controllers.hpp"
|
|
|
|
|
|
|
|
#include "tooltips.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
namespace
|
|
|
|
namespace
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -201,7 +202,8 @@ namespace MWGui
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CountDialog* dialog = MWBase::Environment::get().getWindowManager()->getCountDialog();
|
|
|
|
CountDialog* dialog = MWBase::Environment::get().getWindowManager()->getCountDialog();
|
|
|
|
std::string message = "#{sQuanityMenuMessage02}";
|
|
|
|
std::string message = "#{sQuanityMenuMessage02}";
|
|
|
|
dialog->openCountDialog(object.getClass().getName(object), message, count);
|
|
|
|
std::string name = object.getClass().getName(object) + MWGui::ToolTips::getSoulString(object.getCellRef());
|
|
|
|
|
|
|
|
dialog->openCountDialog(name, message, count);
|
|
|
|
dialog->eventOkClicked.clear();
|
|
|
|
dialog->eventOkClicked.clear();
|
|
|
|
dialog->eventOkClicked += MyGUI::newDelegate(this, &TradeWindow::sellItem);
|
|
|
|
dialog->eventOkClicked += MyGUI::newDelegate(this, &TradeWindow::sellItem);
|
|
|
|
mItemToSell = mSortModel->mapToSource(index);
|
|
|
|
mItemToSell = mSortModel->mapToSource(index);
|
|
|
|