• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • superkaramba
 

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 TQVBox
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   TQ_OBJECT
00031 public:
00032   DateSensor( int interval );
00033   ~DateSensor();
00034 
00035   void toggleCalendar(TQMouseEvent *ev);
00036   void mousePressEvent(TQMouseEvent *ev);
00037   void update();
00038 
00039 protected slots:
00040   void slotCalendarDeleted();
00041 
00042 private:
00043   bool hidden;
00044   DatePicker* cal;
00045 
00046 };
00047 
00048 #endif // SENSOR_H

superkaramba

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

superkaramba

Skip menu "superkaramba"
  • kcalc
  •   knumber
  • superkaramba
Generated for superkaramba by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |