Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

oxyframe.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002    application:             : Oxygen
00003 
00004    begin                    : September 2002
00005    copyright                : ( C ) 2002 by Carsten Niehaus
00006    email                    : cniehaus@handhelds.org
00007  **************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  * This program is free software; you can redistribute it and/or modify    *
00012  * it under the terms of the GNU General Public License as published by    *
00013  * the Free Software Foundation; either version 2 of the License, or       *
00014  * ( at your option ) any later version.                                   *
00015  *                                                                         *
00016  **************************************************************************/
00017 
00018 #include "oxyframe.h"
00019 
00020 OxyFrame::OxyFrame(QWidget *parent, const char *name, QString symbol ) 
00021   : QLabel(parent,name)
00022 {
00023     N = name;
00024     this->setFrameStyle( QFrame::Box );
00025     this->setLineWidth( 0 );
00026     this->setMidLineWidth( 1 );
00027     this->setFrameShadow( QFrame::Sunken );
00028     setMinimumSize(6,6);
00029     setScaledContents( true );
00030     QFont font;
00031     font.setWeight(QFont::Light);
00032     font.setPixelSize(3);
00033     setFont( font );
00034     setText( symbol );
00035 }
00036 
00037 void OxyFrame::mousePressEvent (  QMouseEvent* /*e*/ ){
00038     emit num( N );
00039 };

Generated on Sat Nov 5 16:17:07 2005 for OPIE by  doxygen 1.4.2