mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
add "open in new tab" button to decklist confirmation dialogue (#5183)
* refactor to use confirmOpen * implement extra button in confirmation * use brackets in one-liner if statements * refactor save confirmation window into function
This commit is contained in:
parent
f73196841a
commit
1bc92623dc
2 changed files with 93 additions and 12 deletions
|
|
@ -22,6 +22,7 @@ class Response;
|
|||
class FilterTreeModel;
|
||||
class FilterBuilder;
|
||||
class QGroupBox;
|
||||
class QMessageBox;
|
||||
class QHBoxLayout;
|
||||
class QVBoxLayout;
|
||||
class QPushButton;
|
||||
|
|
@ -100,6 +101,19 @@ private slots:
|
|||
void showSearchSyntaxHelp();
|
||||
|
||||
private:
|
||||
/**
|
||||
* @brief Which tab to open the new deck in
|
||||
*/
|
||||
enum DeckOpenLocation
|
||||
{
|
||||
CANCELLED,
|
||||
SAME_TAB,
|
||||
NEW_TAB
|
||||
};
|
||||
|
||||
DeckOpenLocation confirmOpen(const bool openInSameTabIfBlank = true);
|
||||
QMessageBox *createSaveConfirmationWindow();
|
||||
|
||||
bool isBlankNewDeck() const;
|
||||
CardInfoPtr currentCardInfo() const;
|
||||
void addCardHelper(QString zoneName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue