mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-13 17:44:48 -07:00
started implementing a simple deck editor
This commit is contained in:
parent
46a43aade4
commit
e6d6162426
13 changed files with 333 additions and 27 deletions
39
cockatrice/src/window_deckeditor.h
Normal file
39
cockatrice/src/window_deckeditor.h
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
#ifndef WINDOW_DECKEDITOR_H
|
||||
#define WINDOW_DECKEDITOR_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QAbstractItemModel>
|
||||
|
||||
class CardDatabase;
|
||||
class CardDatabaseModel;
|
||||
class DeckListModel;
|
||||
class QTreeView;
|
||||
class CardInfoWidget;
|
||||
|
||||
class WndDeckEditor : public QMainWindow {
|
||||
Q_OBJECT
|
||||
private slots:
|
||||
void updateCardInfoLeft(const QModelIndex ¤t, const QModelIndex &previous);
|
||||
void updateCardInfoRight(const QModelIndex ¤t, const QModelIndex &previous);
|
||||
|
||||
void actNewDeck();
|
||||
void actLoadDeck();
|
||||
void actSaveDeck();
|
||||
void actSaveDeckAs();
|
||||
private:
|
||||
QString lastFileName;
|
||||
CardDatabase *db;
|
||||
|
||||
CardDatabaseModel *databaseModel;
|
||||
DeckListModel *deckModel;
|
||||
QTreeView *databaseView, *deckView;
|
||||
CardInfoWidget *cardInfo;
|
||||
|
||||
QMenu *deckMenu;
|
||||
QAction *aNewDeck, *aLoadDeck, *aSaveDeck, *aSaveDeckAs;
|
||||
public:
|
||||
WndDeckEditor(CardDatabase *_db, QWidget *parent = 0);
|
||||
~WndDeckEditor();
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue