mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
Redesigning deck editor to work with docks
Moved setting files & Added code for a future portable build
This commit is contained in:
parent
ba90d84a13
commit
e9e75961f4
11 changed files with 485 additions and 123 deletions
|
|
@ -20,6 +20,10 @@ class FilterTreeModel;
|
|||
class FilterBuilder;
|
||||
class CardInfo;
|
||||
class QGroupBox;
|
||||
class QHBoxLayout;
|
||||
class QPushButton;
|
||||
class QMainWindow;
|
||||
class QDockWidget;
|
||||
|
||||
class SearchLineEdit : public QLineEdit {
|
||||
private:
|
||||
|
|
@ -73,6 +77,12 @@ class TabDeckEditor : public Tab {
|
|||
void filterViewCustomContextMenu(const QPoint &point);
|
||||
void filterRemove(QAction *action);
|
||||
void setPriceTagFeatureEnabled(int enabled);
|
||||
|
||||
bool eventFilter(QObject *o, QEvent *e);
|
||||
void loadLayout();
|
||||
void restartLayout();
|
||||
void freeDocksSize();
|
||||
|
||||
private:
|
||||
CardInfo *currentCardInfo() const;
|
||||
void addCardHelper(QString zoneName);
|
||||
|
|
@ -99,14 +109,25 @@ private:
|
|||
QLabel *hashLabel;
|
||||
FilterTreeModel *filterModel;
|
||||
QTreeView *filterView;
|
||||
QGroupBox *filterBox;
|
||||
QWidget *filterBox;
|
||||
|
||||
QMenu *deckMenu, *dbMenu;
|
||||
QAction *aNewDeck, *aLoadDeck, *aSaveDeck, *aSaveDeckAs, *aLoadDeckFromClipboard, *aSaveDeckToClipboard, *aPrintDeck, *aAnalyzeDeck, *aClose, *aOpenCustomFolder;
|
||||
QAction *aEditSets, *aEditTokens, *aClearFilterAll, *aClearFilterOne;
|
||||
QAction *aAddCard, *aAddCardToSideboard, *aRemoveCard, *aIncrement, *aDecrement;// *aUpdatePrices;
|
||||
QAction *aResetLayout;
|
||||
|
||||
bool modified;
|
||||
QMainWindow *MainWindow;
|
||||
QVBoxLayout *centralFrame;
|
||||
QHBoxLayout *searchLayout;
|
||||
QPushButton *btnFilter;
|
||||
QPushButton *btnDeck;
|
||||
QPushButton *btnCard;
|
||||
QDockWidget *cardInfoDock;
|
||||
QDockWidget *deckDock;
|
||||
QDockWidget *filterDock;
|
||||
QWidget *centralWidget;
|
||||
public:
|
||||
TabDeckEditor(TabSupervisor *_tabSupervisor, QWidget *parent = 0);
|
||||
~TabDeckEditor();
|
||||
|
|
@ -115,6 +136,13 @@ public:
|
|||
void setDeck(DeckLoader *_deckLoader);
|
||||
void setModified(bool _windowModified);
|
||||
bool confirmClose();
|
||||
void createShowHideDocksButtons();
|
||||
void createDeckDock();
|
||||
void createCardInfoDock();
|
||||
void createFiltersDock();
|
||||
void createMenus();
|
||||
void createCentralFrame();
|
||||
|
||||
public slots:
|
||||
void closeRequest();
|
||||
void checkFirstRunDetected();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue