summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-22 04:11:24 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-22 04:11:24 +0300
commit98ed087de210f5a5a0979b0d60b6d4b21b24ba4c (patch)
treecff4b8c1a911ffb0acfde24f1bdd0fb25a25327b /src/gui
parentc58b6c63c89e18a9feef819f584426d329ff38ac (diff)
downloadmanaplus-98ed087de210f5a5a0979b0d60b6d4b21b24ba4c.tar.gz
manaplus-98ed087de210f5a5a0979b0d60b6d4b21b24ba4c.tar.bz2
manaplus-98ed087de210f5a5a0979b0d60b6d4b21b24ba4c.tar.xz
manaplus-98ed087de210f5a5a0979b0d60b6d4b21b24ba4c.zip
Remove default parameters from confirmdialog.h
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/dialogsmanager.cpp3
-rw-r--r--src/gui/widgets/itemlinkhandler.cpp6
-rw-r--r--src/gui/widgets/tabs/socialguildtab.h6
-rw-r--r--src/gui/widgets/tabs/socialpartytab.h6
-rw-r--r--src/gui/windows/confirmdialog.h8
-rw-r--r--src/gui/windows/inventorywindow.cpp3
-rw-r--r--src/gui/windows/logindialog.cpp3
-rw-r--r--src/gui/windows/npcselldialog.cpp3
-rw-r--r--src/gui/windows/shopwindow.cpp4
9 files changed, 29 insertions, 13 deletions
diff --git a/src/gui/dialogsmanager.cpp b/src/gui/dialogsmanager.cpp
index f24352a43..409b9c34b 100644
--- a/src/gui/dialogsmanager.cpp
+++ b/src/gui/dialogsmanager.cpp
@@ -129,7 +129,8 @@ Window *DialogsManager::openErrorDialog(const std::string &header,
_("Do you want to open support page?")),
SOUND_ERROR,
false,
- modal);
+ modal,
+ nullptr);
return dialog;
}
diff --git a/src/gui/widgets/itemlinkhandler.cpp b/src/gui/widgets/itemlinkhandler.cpp
index 403573daf..0991be6d4 100644
--- a/src/gui/widgets/itemlinkhandler.cpp
+++ b/src/gui/widgets/itemlinkhandler.cpp
@@ -88,7 +88,8 @@ void ItemLinkHandler::handleCommandLink(const std::string &link,
strprintf("/%s %s", cmd.c_str(), args.c_str()),
SOUND_REQUEST,
false,
- Modal_true);
+ Modal_true,
+ nullptr);
confirmDlg->addActionListener(&inputActionRemoteListener);
}
}
@@ -119,7 +120,8 @@ void ItemLinkHandler::handleHttpLink(const std::string &link,
url,
SOUND_REQUEST,
false,
- Modal_true);
+ Modal_true,
+ nullptr);
confirmDlg->addActionListener(&listener);
}
else if (button == MouseButton::RIGHT)
diff --git a/src/gui/widgets/tabs/socialguildtab.h b/src/gui/widgets/tabs/socialguildtab.h
index b2ea74d10..c994f3188 100644
--- a/src/gui/widgets/tabs/socialguildtab.h
+++ b/src/gui/widgets/tabs/socialguildtab.h
@@ -136,7 +136,11 @@ class SocialGuildTab final : public SocialTab,
_("Leave Guild?"),
// TRANSLATORS: guild leave message
strprintf(_("Are you sure you want to leave guild %s?"),
- mGuild->getName().c_str()), SOUND_REQUEST, socialWindow);
+ mGuild->getName().c_str()),
+ SOUND_REQUEST,
+ false,
+ Modal_false,
+ socialWindow);
mConfirmDialog->addActionListener(this);
}
diff --git a/src/gui/widgets/tabs/socialpartytab.h b/src/gui/widgets/tabs/socialpartytab.h
index d3ed6d9d8..a77cd16e1 100644
--- a/src/gui/widgets/tabs/socialpartytab.h
+++ b/src/gui/widgets/tabs/socialpartytab.h
@@ -137,7 +137,11 @@ class SocialPartyTab final : public SocialTab,
_("Leave Party?"),
// TRANSLATORS: party leave message
strprintf(_("Are you sure you want to leave party %s?"),
- mParty->getName().c_str()), SOUND_REQUEST, socialWindow);
+ mParty->getName().c_str()),
+ SOUND_REQUEST,
+ false,
+ Modal_false,
+ socialWindow);
mConfirmDialog->addActionListener(this);
}
diff --git a/src/gui/windows/confirmdialog.h b/src/gui/windows/confirmdialog.h
index 5d828eafb..52877bfc6 100644
--- a/src/gui/windows/confirmdialog.h
+++ b/src/gui/windows/confirmdialog.h
@@ -49,10 +49,10 @@ class ConfirmDialog notfinal : public Window,
*/
ConfirmDialog(const std::string &restrict title,
const std::string &restrict msg,
- const std::string &restrict soundEvent = SOUND_REQUEST,
- const bool ignore = false,
- const Modal modal = Modal_false,
- Window *const parent = nullptr);
+ const std::string &restrict soundEvent,
+ const bool ignore,
+ const Modal modal,
+ Window *const parent);
A_DELETE_COPY(ConfirmDialog)
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index f973f250f..aca7c583a 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -1047,7 +1047,8 @@ void InventoryWindow::combineItems(const int index1,
item2->getName().c_str()),
SOUND_REQUEST,
false,
- Modal_true);
+ Modal_true,
+ nullptr);
insertCardListener.itemIndex = item2->getInvIndex();
insertCardListener.cardIndex = item1->getInvIndex();
confirmDlg->addActionListener(&insertCardListener);
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp
index 21af69b91..1ae102b42 100644
--- a/src/gui/windows/logindialog.cpp
+++ b/src/gui/windows/logindialog.cpp
@@ -250,7 +250,8 @@ void LoginDialog::action(const ActionEvent &event)
url,
SOUND_REQUEST,
false,
- Modal_true);
+ Modal_true,
+ nullptr);
confirmDlg->addActionListener(&urlListener);
}
}
diff --git a/src/gui/windows/npcselldialog.cpp b/src/gui/windows/npcselldialog.cpp
index c00edda6c..be25680fe 100644
--- a/src/gui/windows/npcselldialog.cpp
+++ b/src/gui/windows/npcselldialog.cpp
@@ -76,7 +76,8 @@ void NpcSellDialog::sellAction(const ActionEvent &event)
info.getName().c_str()),
SOUND_REQUEST,
false,
- Modal_true);
+ Modal_true,
+ nullptr);
dialog->addActionListener(this);
return;
}
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp
index 0e55bcca1..b044831ff 100644
--- a/src/gui/windows/shopwindow.cpp
+++ b/src/gui/windows/shopwindow.cpp
@@ -1026,7 +1026,9 @@ void ShopWindow::processRequest(const std::string &nick,
_("Request for Trade"),
msg,
SOUND_REQUEST,
- true);
+ true,
+ Modal_false,
+ nullptr);
confirmDlg->addActionListener(this);
}
}