caltable.h
1 /***************************************************************************
2  Copyright (C) 2002-2015 Kentaro Kitagawa
3  kitagawa@phys.s.u-tokyo.ac.jp
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  You should have received a copy of the GNU Library General
11  Public License and a list of authors along with this program;
12  see the files COPYING and AUTHORS.
13 ***************************************************************************/
14 //----------------------------------------------------------------------------
15 #ifndef caltableH
16 #define caltableH
17 //----------------------------------------------------------------------------
18 
19 #include "thermometer.h"
20 #include "xnodeconnector.h"
21 //----------------------------------------------------------------------------
22 
23 class Ui_FrmCalTable;
25 class Ui_FrmGraphNURL;
27 class XWaveNGraph;
28 
29 class XConCalTable : public XQConnector {
30  Q_OBJECT
31 public:
32  XConCalTable(const shared_ptr<XThermometerList> &list, FrmCalTable *form);
33  virtual ~XConCalTable() {}
34 
35  const shared_ptr<XTouchableNode> &display() const {return m_display;}
36  const shared_ptr<XDoubleNode> &temp() const {return m_temp;}
37  const shared_ptr<XDoubleNode> &value() const {return m_value;}
38  const shared_ptr<XItemNode<XThermometerList, XThermometer> >&thermometer() const {
39  return m_thermometer;
40  }
41 
42 private:
43  shared_ptr<XThermometerList> m_list;
44 
45  const shared_ptr<XTouchableNode> m_display;
46  const shared_ptr<XDoubleNode> m_temp, m_value;
47  shared_ptr<XItemNode<XThermometerList, XThermometer> > m_thermometer;
48  xqcon_ptr m_conThermo, m_conTemp, m_conValue, m_conDisplay;
49 
50  shared_ptr<XListener> m_lsnTemp, m_lsnValue;
51  shared_ptr<XListener> m_lsnDisplay;
52 
53  void onTempChanged(const Snapshot &shot, XValueNodeBase *);
54  void onValueChanged(const Snapshot &shot, XValueNodeBase *);
55  void onDisplayTouched(const Snapshot &shot, XTouchableNode *);
56  FrmCalTable *const m_pForm;
57  qshared_ptr<FrmGraphNURL> m_waveform;
58  const shared_ptr<XWaveNGraph> m_wave;
59 };
60 
61 //----------------------------------------------------------------------------
62 #endif

Generated for KAME4 by  doxygen 1.8.3