File: moveGeneratorDialog.h

package info (click to toggle)
gpsshogi 0.7.0-3.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 111,280 kB
  • sloc: cpp: 80,962; perl: 12,610; ruby: 3,929; javascript: 1,631; makefile: 1,202; sh: 473; tcl: 166; ansic: 67
file content (38 lines) | stat: -rw-r--r-- 888 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _MOVE_GENERATOR_DIALOG_H
#define _MOVE_GENERATOR_DIALOG_H
#include <qdialog.h>
#include "osl/simpleState.h"
#include <vector>

class QSpinBox;
class QTableView;
class MoveGeneratorDialog : public QDialog
{
Q_OBJECT
public:
  MoveGeneratorDialog(const osl::SimpleState &state,
		      const std::vector<osl::Move> &moves,
		      int limit, 
		      osl::Move next = osl::Move::INVALID(),
		      QWidget *parent = 0);
public slots:
  void setStatus(const osl::SimpleState &state,
		 const std::vector<osl::Move> &moves,
		 int limit, osl::Move next_move);
private slots:
  void setLimit(int limit);
private:
  void updateMoves();
  QTableView *view;
  QSpinBox *spinBox;
  int limit;
  osl::SimpleState state;
  std::vector<osl::Move> moves;
  osl::Move next_move;
};

#endif // _MOVE_GENERATOR_DIALOG_H
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End: