00001 /* 00002 00003 clock module for kdm 00004 00005 Copyright (C) 2000 Espen Sand, espen@kde.org 00006 Based on work by NN (yet to be determined) 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 2 of the License, or 00011 (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program; if not, write to the Free Software 00020 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00021 00022 */ 00023 00024 #ifndef _KDM_CLOCK_H_ 00025 #define _KDM_CLOCK_H_ 00026 00027 #include <tqframe.h> 00028 00029 class KdmClock : public TQFrame { 00030 Q_OBJECT 00031 typedef TQFrame inherited; 00032 00033 public: 00034 KdmClock( TQWidget *parent=0, const char *name=0 ); 00035 00036 protected: 00037 virtual void showEvent( TQShowEvent * ); 00038 virtual void paintEvent( TQPaintEvent * ); 00039 00040 private slots: 00041 void timeout(); 00042 00043 private: 00044 TQBrush mBackgroundBrush; 00045 TQFont mFont; 00046 bool mSecond; 00047 bool mDigital; 00048 bool mDate; 00049 bool mBorder; 00050 }; 00051 00052 #endif
1.6.1