-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCell.h
More file actions
39 lines (36 loc) · 797 Bytes
/
Copy pathCell.h
File metadata and controls
39 lines (36 loc) · 797 Bytes
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
39
#ifndef CELL_H
#define CELL_H
#include <vector>
#include <QColor>
class Cell{
private:
int posX;
int posY;
int val;
bool fixed;
bool clicked;
QColor cellColor;
QColor defCellColor;
QColor defFontColor;
QColor fontColor;
std::vector<bool> hints;
public:
Cell(int posX, int posY, int val, bool fixed = false);
int getVal();
void setVal(int val);
void addHint(int pos);
void removeHint(int pos);
bool isHint(int pos);
bool getFixed();
void setClicked(bool clicked);
bool getClicked();
int getRow();
int getCol();
QColor getCellColor();
void setCellColor(QColor color);
void setDefColor();
QColor getFontColor();
void setFontColor(QColor color);
void setDefFontColor();
};
#endif // CELL_H