servatrice/cockatrice/src/window_sets.h

39 lines
877 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 *enableButton, *disableButton, *enableAllButton, *disableAllButton,
*upButton, *downButton, *bottomButton, *topButton;
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