summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-05 19:09:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-05 19:09:02 +0300
commit92c019dad798f1a84c5d3e8e8331a885f6458133 (patch)
tree078d58c3b78ed37d23e7292460f4443f5ef799dd /src/gui/windows
parente6d251345a48108495d39d82b0ec79deac63d86d (diff)
downloadplus-92c019dad798f1a84c5d3e8e8331a885f6458133.tar.gz
plus-92c019dad798f1a84c5d3e8e8331a885f6458133.tar.bz2
plus-92c019dad798f1a84c5d3e8e8331a885f6458133.tar.xz
plus-92c019dad798f1a84c5d3e8e8331a885f6458133.zip
Add to left classes stong typed Modal enum.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/buydialog.cpp3
-rw-r--r--src/gui/windows/editserverdialog.cpp2
-rw-r--r--src/gui/windows/inventorywindow.cpp3
-rw-r--r--src/gui/windows/logindialog.cpp2
4 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index cb10adaf6..db8bed23e 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -212,7 +212,8 @@ BuyDialog::BuyDialog(std::string nick) :
ActionListener(),
SelectionListener(),
mSortModel(new SortListModelBuy),
- mSortDropDown(new DropDown(this, mSortModel, false, false, this, "sort")),
+ mSortDropDown(new DropDown(this, mSortModel, false,
+ Modal_false, this, "sort")),
mFilterTextField(new TextField(this, "", true, this, "namefilter", true)),
mFilterLabel(nullptr),
mNpcId(Nick),
diff --git a/src/gui/windows/editserverdialog.cpp b/src/gui/windows/editserverdialog.cpp
index a9be34595..b7101e1fe 100644
--- a/src/gui/windows/editserverdialog.cpp
+++ b/src/gui/windows/editserverdialog.cpp
@@ -63,7 +63,7 @@ EditServerDialog::EditServerDialog(ServerDialog *const parent,
mPersistentIp(new CheckBox(this, _("Use same ip"),
true, this, "persistentIp")),
mTypeListModel(new TypeListModel),
- mTypeField(new DropDown(this, mTypeListModel, false, true)),
+ mTypeField(new DropDown(this, mTypeListModel, false, Modal_true)),
mServerDialog(parent),
mServer(server),
mIndex(index)
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index da8f99c62..65e89bbb3 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -97,7 +97,8 @@ InventoryWindow::InventoryWindow(Inventory *const inventory) :
"slotsprogressbar.xml", "slotsprogressbar_fill.xml")),
mFilter(nullptr),
mSortModel(new SortListModelInv),
- mSortDropDown(new DropDown(this, mSortModel, false, false, this, "sort")),
+ mSortDropDown(new DropDown(this, mSortModel, false,
+ Modal_false, this, "sort")),
mNameFilter(new TextField(this, "", true, this, "namefilter", true)),
mSortDropDownCell(nullptr),
mNameFilterCell(nullptr),
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp
index a97a2284e..b0aa2d335 100644
--- a/src/gui/windows/logindialog.cpp
+++ b/src/gui/windows/logindialog.cpp
@@ -111,7 +111,7 @@ LoginDialog::LoginDialog(LoginData *const data,
mLoginData->updateHost.c_str()));
mUpdateListModel = new UpdateListModel(mLoginData);
mUpdateHostDropDown = new DropDown(this, mUpdateListModel,
- false, false, this, "updateselect");
+ false, Modal_false, this, "updateselect");
const std::string str = serverConfig.getValue("updateHost2", "");
if (!str.empty())
mUpdateHostDropDown->setSelectedString(str);