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

superkaramba

  • superkaramba
  • src
datesensor.h
1 /***************************************************************************
2  * Copyright (C) 2003 by Hans Karlsson *
3  * karlsson.h@home.se *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  ***************************************************************************/
10 #ifndef DATESENSOR_H
11 #define DATESENSOR_H
12 #include "sensor.h"
13 #include "sensorparams.h"
14 #include <tqdatetime.h>
15 #include <kdatepicker.h>
16 #include <tqvbox.h>
17 
18 class DatePicker : public TQVBox
19 {
20 public:
21  DatePicker(TQWidget*);
22 private:
23  KDatePicker *picker;
24  void keyReleaseEvent(TQKeyEvent *e);
25 };
26 
27 class DateSensor : public Sensor
28 {
29 TQ_OBJECT
30 
31 public:
32  DateSensor( int interval );
33  ~DateSensor();
34 
35  void toggleCalendar(TQMouseEvent *ev);
36  void mousePressEvent(TQMouseEvent *ev);
37  void update();
38 
39 protected slots:
40  void slotCalendarDeleted();
41 
42 private:
43  bool hidden;
44  DatePicker* cal;
45 
46 };
47 
48 #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.8.13
This website is maintained by Timothy Pearson.