• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

superkaramba

datesensor.h

00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Hans Karlsson                                   *
00003  *   karlsson.h@home.se                                                      *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 #ifndef DATESENSOR_H
00011 #define DATESENSOR_H
00012 #include "sensor.h"
00013 #include "sensorparams.h"
00014 #include <tqdatetime.h>
00015 #include <kdatepicker.h>
00016 #include <tqvbox.h>
00017 
00018 class DatePicker : public QVBox
00019 {
00020 public:
00021     DatePicker(TQWidget*);
00022 private:
00023     KDatePicker *picker;
00024     void keyReleaseEvent(TQKeyEvent *e);
00025 };
00026 
00027 class DateSensor :  public Sensor
00028 {
00029 Q_OBJECT
00030 public:
00031   DateSensor( int interval );
00032   ~DateSensor();
00033 
00034   void toggleCalendar(TQMouseEvent *ev);
00035   void mousePressEvent(TQMouseEvent *ev);
00036   void update();
00037 
00038 protected slots:
00039   void slotCalendarDeleted();
00040 
00041 private:
00042   bool hidden;
00043   DatePicker* cal;
00044 
00045 };
00046 
00047 #endif // SENSOR_H

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

@topname@

Skip menu "@topname@"
  • kcalc
  •   knumber
  • superkaramba
Generated for @topname@ by doxygen 1.5.6
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal