root/deus/GraphIcon.h

Revision 8, 0.7 kB (checked in by pantley2, 4 years ago)

added old DEUS project to SVN

Line 
1 /*     
2  *      GraphIcon.h
3  *
4  *      Header for graph "icon" images
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;                 // position
29         bool modified;
30
31         bool selected;                  // draw a nice border when selected
32         void select();
33         void deselect();
34
35         QPixmap *background;    // just an image
36         void draw();
37        
38 protected:
39         int h, w;
40         //QPixmap *icon;                        // possibly contains text
41 };
42
Note: See TracBrowser for help on using the browser.