servatrice/cockatrice/src/window_sets.h
2015-05-14 13:12:24 +02:00

39 lines
822 B
C++

#ifndef WINDOW_SETS_H
#define WINDOW_SETS_H
#include <QMainWindow>
class SetsModel;
class SetsProxyModel;
class QPushButton;
class CardDatabase;
class QItemSelection;
class QTreeView;
class WndSets : public QMainWindow {
Q_OBJECT
private:
SetsModel *model;
QTreeView *view;
QPushButton *enableAllButton, *disableAllButton;
QAction *aUp, *aDown, *aBottom, *aTop;
public:
WndSets(QWidget *parent = 0);
~WndSets();
protected:
void selectRow(int row);
private slots:
void actEnable();
void actDisable();
void actEnableAll();
void actDisableAll();
void actSave();
void actRestore();
void actUp();
void actDown();
void actTop();
void actBottom();
void actToggleButtons(const QItemSelection & selected, const QItemSelection & deselected);
};
#endif