summaryrefslogtreecommitdiffstats
path: root/kalzium/src/detailedgraphicaloverview.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch)
treed3bb9f5d25a2dc09ca81adecf39621d871534297 /kalzium/src/detailedgraphicaloverview.h
downloadtdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz
tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalzium/src/detailedgraphicaloverview.h')
-rw-r--r--kalzium/src/detailedgraphicaloverview.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/kalzium/src/detailedgraphicaloverview.h b/kalzium/src/detailedgraphicaloverview.h
new file mode 100644
index 00000000..2f095be7
--- /dev/null
+++ b/kalzium/src/detailedgraphicaloverview.h
@@ -0,0 +1,69 @@
+#ifndef DETAILEDGRAPHICALOVERVIEW_H
+#define DETAILEDGRAPHICALOVERVIEW_H
+/***************************************************************************
+ copyright : (C) 2004 by Carsten Niehaus
+ email : cniehaus@kde.org
+
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include <qwidget.h>
+
+class Element;
+
+
+/**
+ * @short The widget which displays the most important information
+ * in one widget like a lot people know it from school
+ * @author Carsten Niehaus
+ */
+class DetailedGraphicalOverview : public QWidget
+{
+ Q_OBJECT
+
+ public:
+ DetailedGraphicalOverview( Element *el, QWidget *parent, const char *name=0 );
+ DetailedGraphicalOverview( QWidget *parent, const char *name=0 );
+
+ /**
+ * sets the elements whose data will be used to @p el
+ */
+ void setElement( Element* el ){
+ m_element = el;
+ update();
+ }
+
+ /**
+ * draw the small symbol which symbolises the
+ * relevence for humans
+ */
+ void drawBiologicalSymbol( QPainter *p );
+
+ //calculation of the corners
+ int x1,x2,y1,y2,h_t;
+
+ private:
+ /**
+ * the element whose data will be used
+ */
+ Element *m_element;
+
+ protected:
+ virtual void paintEvent( QPaintEvent* );
+
+ /**
+ * initialization method
+ */
+ virtual void init( Element* );
+};
+
+#endif // DETAILEDGRAPHICALOVERVIEW_H
+