entrylistconnector.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 #ifndef entrylistconnectorH
15 #define entrylistconnectorH
16 
17 #include "xnodeconnector.h"
18 #include "driver.h"
19 //---------------------------------------------------------------------------
20 
21 class QTableWidget;
22 class XScalarEntry;
23 class XChartList;
24 class XScalarEntryList;
25 class XDriver;
26 
28  Q_OBJECT
29 public:
31  (const shared_ptr<XScalarEntryList> &node, QTableWidget *item, const shared_ptr<XChartList> &chartlist);
32  virtual ~XEntryListConnector() {}
33 protected:
34  virtual void onCatch(const Snapshot &shot, const XListNodeBase::Payload::CatchEvent &e);
35  virtual void onRelease(const Snapshot &shot, const XListNodeBase::Payload::ReleaseEvent &e);
36 protected slots:
37 void cellClicked ( int row, int col);
38 private:
39  const shared_ptr<XChartList> m_chartList;
40 
41  struct tcons {
42  xqcon_ptr constore, condelta;
43  QLabel *label;
44  shared_ptr<XScalarEntry> entry;
45  shared_ptr<XDriver> driver;
46  shared_ptr<XListener> lsnOnRecord;
47  };
48  typedef std::deque<shared_ptr<tcons> > tconslist;
49  tconslist m_cons;
50  void onRecord(const Snapshot &shot, XDriver*);
51 };
52 
53 #endif

Generated for KAME4 by  doxygen 1.8.3