You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeedu/kalzium/src/detailedgraphicaloverview.h

71 lines
1.9 KiB

#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 <tqwidget.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 TQWidget
{
Q_OBJECT
TQ_OBJECT
public:
DetailedGraphicalOverview( Element *el, TQWidget *tqparent, const char *name=0 );
DetailedGraphicalOverview( TQWidget *tqparent, 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( TQPainter *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( TQPaintEvent* );
/**
* initialization method
*/
virtual void init( Element* );
};
#endif // DETAILEDGRAPHICALOVERVIEW_H