started implementing a simple deck editor

This commit is contained in:
Max-Wilhelm Bruker 2009-04-04 19:51:23 +02:00
parent 46a43aade4
commit e6d6162426
13 changed files with 333 additions and 27 deletions

View 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 &current, const QModelIndex &previous);
void updateCardInfoRight(const QModelIndex &current, 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