20 #include "xnodeconnector.h"
27 class QAbstractButton;
31 class Ui_FrmGraphNURL;
41 QLineEdit *ed, QAbstractButton *btn, QPushButton *btndump);
44 const shared_ptr<XGraph> &graph()
const {
return m_graph;}
45 const shared_ptr<XStringNode> &filename()
const {
return m_filename;}
47 const shared_ptr<XTouchableNode> &dump()
const {
return m_dump;}
53 void insertPlot(
const XString &label,
int colx = 0,
int coly1 = 1,
54 int coly2 = -1,
int colweight = -1,
int colz = -1);
56 void setLabel(
unsigned int col,
const char *label);
57 const std::vector<XString> &labels()
const {
return m_labels;}
58 void setRowCount(
unsigned int rowcnt);
59 void setColCount(
unsigned int colcnt,
const char **labels);
60 unsigned int rowCount()
const {
61 return m_colcnt ? m_cols.size() / m_colcnt : 0;}
62 unsigned int colCount()
const {
return m_colcnt;}
63 unsigned int numPlots()
const {
return m_plots.size();}
65 const double *cols(
unsigned int n)
const;
66 double *cols(
unsigned int n);
67 const double *weight()
const;
69 int colX(
unsigned int plotnum)
const {
return m_plots[plotnum].colx;}
71 int colY1(
unsigned int plotnum)
const {
return m_plots[plotnum].coly1;}
73 int colY2(
unsigned int plotnum)
const {
return m_plots[plotnum].coly2;}
75 int colWeight(
unsigned int plotnum)
const {
return m_plots[plotnum].colweight;}
77 int colZ(
unsigned int plotnum)
const {
return m_plots[plotnum].colz;}
79 const shared_ptr<XXYPlot> &
plot(
unsigned int plotnum)
const {
return m_plots[plotnum].xyplot;}
80 const shared_ptr<XAxis> &axisx()
const {
return m_axisx;}
81 const shared_ptr<XAxis> &axisy()
const {
return m_axisy;}
82 const shared_ptr<XAxis> &axisy2()
const {
return m_axisy2;}
83 const shared_ptr<XAxis> &axisz()
const {
return m_axisz;}
84 const shared_ptr<XAxis> &axisw()
const {
return m_axisw;}
86 const Talker<bool> &onIconChanged()
const {
return m_tlkOnIconChanged;}
87 Talker<bool> &onIconChanged() {
return m_tlkOnIconChanged;}
91 shared_ptr<XXYPlot> xyplot;
92 int colx, coly1, coly2, colweight, colz;
94 unsigned int m_colcnt;
95 std::vector<XString> m_labels;
96 std::vector<double> m_cols;
98 std::vector<Plot> m_plots;
99 shared_ptr<XAxis> m_axisx, m_axisy, m_axisy2, m_axisw, m_axisz;
106 QPushButton *
const m_btnDump;
108 const shared_ptr<XGraph> m_graph;
110 const shared_ptr<XTouchableNode> m_dump;
111 const shared_ptr<XStringNode> m_filename;
113 shared_ptr<XListener> m_lsnOnDumpTouched, m_lsnOnFilenameChanged,
118 void onIconChanged(
const Snapshot &shot,
bool );
122 std::fstream m_stream;