|
Revision 8, 0.7 kB
(checked in by pantley2, 4 years ago)
|
added old DEUS project to SVN
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
#pragma warning(disable: 4786) |
|---|
| 7 |
#pragma once |
|---|
| 8 |
|
|---|
| 9 |
#include <qpixmap.h> |
|---|
| 10 |
#include <string> |
|---|
| 11 |
|
|---|
| 12 |
const int ICON_H = 90; |
|---|
| 13 |
const int ICON_W = 120; |
|---|
| 14 |
|
|---|
| 15 |
class GraphIcon |
|---|
| 16 |
{ |
|---|
| 17 |
public: |
|---|
| 18 |
GraphIcon(); |
|---|
| 19 |
GraphIcon(class AuthorNode *parent); |
|---|
| 20 |
~GraphIcon(); |
|---|
| 21 |
|
|---|
| 22 |
class AuthorNode *parent; |
|---|
| 23 |
|
|---|
| 24 |
QPixmap* getIcon(); |
|---|
| 25 |
inline int width() {return w;} |
|---|
| 26 |
inline int height() {return h;} |
|---|
| 27 |
|
|---|
| 28 |
int ul_x, ul_y; |
|---|
| 29 |
bool modified; |
|---|
| 30 |
|
|---|
| 31 |
bool selected; |
|---|
| 32 |
void select(); |
|---|
| 33 |
void deselect(); |
|---|
| 34 |
|
|---|
| 35 |
QPixmap *background; |
|---|
| 36 |
void draw(); |
|---|
| 37 |
|
|---|
| 38 |
protected: |
|---|
| 39 |
int h, w; |
|---|
| 40 |
|
|---|
| 41 |
}; |
|---|
| 42 |
|
|---|