moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kalzium / src / detailedgraphicaloverview.h
blob3e0b7f595ef4f61c06583a8276f8c5e8b112cdc4
1 #ifndef DETAILEDGRAPHICALOVERVIEW_H
2 #define DETAILEDGRAPHICALOVERVIEW_H
3 /***************************************************************************
4 copyright : (C) 2004 by Carsten Niehaus
5 email : cniehaus@kde.org
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #include <qwidget.h>
20 class Element;
23 /**
24 * @short The widget which displays the most important information
25 * in one widget like a lot people know it from school
26 * @author Carsten Niehaus
28 class DetailedGraphicalOverview : public QWidget
30 Q_OBJECT
32 public:
33 DetailedGraphicalOverview( Element *el, QWidget *parent, const char *name=0 );
34 DetailedGraphicalOverview( QWidget *parent, const char *name=0 );
36 void setElement( Element* el );
38 /**
39 * @return the QColor of the block
41 QColor PSEColor( const QString &Block ) const;
43 /**
44 * draw the small symbol which symbolises the
45 * relevence for humans
47 void drawBiologicalSymbol( QPainter *p );
49 //calculation of the corners
50 int x1,x2,y1,y2,h_t;
51 private:
52 Element *e;
54 protected:
55 virtual void paintEvent( QPaintEvent* );
58 #endif // DETAILEDGRAPHICALOVERVIEW_H