mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 00:12:15 -07:00
Lint.
Took 6 minutes Took 22 seconds
This commit is contained in:
parent
cce6a9d663
commit
5401efe245
8 changed files with 97 additions and 79 deletions
|
|
@ -7,7 +7,8 @@
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
||||||
class Player;
|
class Player;
|
||||||
class GraveyardMenu : public TearOffMenu {
|
class GraveyardMenu : public TearOffMenu
|
||||||
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit GraveyardMenu(Player *player, QWidget *parent = nullptr);
|
explicit GraveyardMenu(Player *player, QWidget *parent = nullptr);
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,18 @@ public:
|
||||||
void setShortcutsInactive();
|
void setShortcutsInactive();
|
||||||
|
|
||||||
// expose useful actions/menus if PlayerMenu needs them
|
// expose useful actions/menus if PlayerMenu needs them
|
||||||
QMenu* revealHandMenu() const { return mRevealHand; }
|
QMenu *revealHandMenu() const
|
||||||
QMenu* revealRandomHandCardMenu() const { return mRevealRandomHandCard; }
|
{
|
||||||
QMenu* moveHandMenu() const { return mMoveHandMenu; }
|
return mRevealHand;
|
||||||
|
}
|
||||||
|
QMenu *revealRandomHandCardMenu() const
|
||||||
|
{
|
||||||
|
return mRevealRandomHandCard;
|
||||||
|
}
|
||||||
|
QMenu *moveHandMenu() const
|
||||||
|
{
|
||||||
|
return mMoveHandMenu;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Player *player;
|
Player *player;
|
||||||
|
|
@ -40,5 +49,4 @@ private:
|
||||||
QAction *aMoveHandToRfg = nullptr;
|
QAction *aMoveHandToRfg = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif // COCKATRICE_HAND_MENU_H
|
#endif // COCKATRICE_HAND_MENU_H
|
||||||
|
|
|
||||||
|
|
@ -37,9 +37,18 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// expose useful actions/menus if PlayerMenu needs them
|
// expose useful actions/menus if PlayerMenu needs them
|
||||||
QMenu* revealLibrary() const { return mRevealLibrary; }
|
QMenu *revealLibrary() const
|
||||||
QMenu* lendLibraryMenu() const { return mLendLibrary; }
|
{
|
||||||
QMenu* revealTopCardMenu() const { return mRevealTopCard; }
|
return mRevealLibrary;
|
||||||
|
}
|
||||||
|
QMenu *lendLibraryMenu() const
|
||||||
|
{
|
||||||
|
return mLendLibrary;
|
||||||
|
}
|
||||||
|
QMenu *revealTopCardMenu() const
|
||||||
|
{
|
||||||
|
return mRevealTopCard;
|
||||||
|
}
|
||||||
|
|
||||||
QMenu *topLibraryMenu = nullptr;
|
QMenu *topLibraryMenu = nullptr;
|
||||||
QMenu *bottomLibraryMenu = nullptr;
|
QMenu *bottomLibraryMenu = nullptr;
|
||||||
|
|
|
||||||
|
|
@ -84,8 +84,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Player *player;
|
Player *player;
|
||||||
QMenu *sbMenu, *countersMenu, *sayMenu, *createPredefinedTokenMenu, *mCustomZones,
|
QMenu *sbMenu, *countersMenu, *sayMenu, *createPredefinedTokenMenu, *mCustomZones, *mCardCounters;
|
||||||
*mCardCounters;
|
|
||||||
HandMenu *handMenu;
|
HandMenu *handMenu;
|
||||||
LibraryMenu *libraryMenu;
|
LibraryMenu *libraryMenu;
|
||||||
GraveyardMenu *graveMenu;
|
GraveyardMenu *graveMenu;
|
||||||
|
|
@ -98,9 +97,9 @@ private:
|
||||||
QAction *aViewSideboard, *aUntapAll, *aRollDie, *aCreateToken, *aCreateAnotherToken;
|
QAction *aViewSideboard, *aUntapAll, *aRollDie, *aCreateToken, *aCreateAnotherToken;
|
||||||
|
|
||||||
QList<QAction *> aAddCounter, aSetCounter, aRemoveCounter;
|
QList<QAction *> aAddCounter, aSetCounter, aRemoveCounter;
|
||||||
QAction *aPlay, *aPlayFacedown, *aHide, *aTap, *aDoesntUntap, *aAttach, *aUnattach, *aDrawArrow, *aSetAnnotation, *aFlip, *aPeek, *aClone,
|
QAction *aPlay, *aPlayFacedown, *aHide, *aTap, *aDoesntUntap, *aAttach, *aUnattach, *aDrawArrow, *aSetAnnotation,
|
||||||
*aMoveToTopLibrary, *aMoveToBottomLibrary, *aMoveToHand, *aMoveToGraveyard, *aMoveToExile,
|
*aFlip, *aPeek, *aClone, *aMoveToTopLibrary, *aMoveToBottomLibrary, *aMoveToHand, *aMoveToGraveyard,
|
||||||
*aMoveToXfromTopOfLibrary, *aSelectAll, *aSelectRow, *aSelectColumn, *aIncrementAllCardCounters;
|
*aMoveToExile, *aMoveToXfromTopOfLibrary, *aSelectAll, *aSelectRow, *aSelectColumn, *aIncrementAllCardCounters;
|
||||||
|
|
||||||
bool shortcutsActive;
|
bool shortcutsActive;
|
||||||
QStringList predefinedTokens;
|
QStringList predefinedTokens;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
||||||
class Player;
|
class Player;
|
||||||
class PtMenu : public QMenu {
|
class PtMenu : public QMenu
|
||||||
|
{
|
||||||
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|
@ -23,7 +24,6 @@ public:
|
||||||
QAction *aDecPT = nullptr;
|
QAction *aDecPT = nullptr;
|
||||||
QAction *aSetPT = nullptr;
|
QAction *aSetPT = nullptr;
|
||||||
QAction *aResetPT = nullptr;
|
QAction *aResetPT = nullptr;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // COCKATRICE_PT_MENU_H
|
#endif // COCKATRICE_PT_MENU_H
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
||||||
class Player;
|
class Player;
|
||||||
class RfgMenu : public TearOffMenu {
|
class RfgMenu : public TearOffMenu
|
||||||
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit RfgMenu(Player *player, QWidget *parent = nullptr);
|
explicit RfgMenu(Player *player, QWidget *parent = nullptr);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue