Source: hk_kdeclasses/hk_kdeclasses/hk_kdelabel.h
|
|
|
|
// ****************************************************************************
// copyright (c) 2000-2004 Horst Knorr
// This file is part of the hk_kdeclasses library.
// This file may be distributed and/or modified under the terms of the
// GNU Library Public License version 2 as published by the Free Software
// Foundation and appearing in the file LGPL included in the
// packaging of this file.
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
// ****************************************************************************
#ifndef HK_KDELABEL
#define HK_KDELABEL
#include
#include
class hk_kdesimpleform;
/**
*
*@short KDE Widget to display text in a form
*@version $Revision: 1.4 $
*@author Horst Knorr (hk_classes@knoda.org)
*/
class hk_kdelabel :public QLabel, public hk_label
{
Q_OBJECT
public:
hk_kdelabel(hk_kdesimpleform* form);
protected:
virtual void widget_specific_label_changed(void);
virtual bool widget_specific_coordinates(uint px,uint py,uint pwidth,uint pheight);
virtual void widget_specific_font_changed(void);
virtual void widget_specific_alignment(void);
virtual void resizeEvent (QResizeEvent *);
virtual void moveEvent ( QMoveEvent * ) ;
virtual void mousePressEvent(QMouseEvent*);
virtual void mouseDoubleClickEvent(QMouseEvent*);
virtual void widget_specific_backgroundcolour_changed(const hk_colour&);
virtual void widget_specific_foregroundcolour_changed(const hk_colour&);
virtual void drawFrame(QPainter*);
virtual void widget_specific_topline_changed(void);
virtual void widget_specific_bottomline_changed(void);
virtual void widget_specific_leftline_changed(void);
virtual void widget_specific_rightline_changed(void);
virtual void widget_specific_diagonalluro_changed(void);
virtual void widget_specific_diagonalloru_changed(void);
private:
void reposition(void);
void set_borders(void);
};
#endif
Generated by: horst on horstnotebook on Sun Jul 11 12:04:01 2004, using kdoc 2.0a54. |