64enum UatColumnsIOG {colEnabled = 0, colName, colDFilter, colColor, colStyle, colYAxis, colYField, colSMAPeriod, colYAxisFactor, colAOT, colMaxNum};
93 io_graph_item_unit_t value_units = IOG_ITEM_UNIT_PACKETS,
94 QString yfield = QString(),
95 bool is_sibling_dialog =
false,
96 const QVector<QString> convFilters = QVector<QString>() );
99 void addGraph(
bool checked,
bool asAOT, QString name, QString dfilter, QRgb color_idx, IOGraph::PlotStyles style,
100 io_graph_item_unit_t value_units, QString yfield,
int moving_average,
double yaxisfactor);
101 void addGraph(
bool checked,
bool asAOT, QString dfilter, io_graph_item_unit_t value_units, QString yfield);
102 void addGraph(
bool copy_from_current =
false);
103 void addDefaultGraph(
bool enabled,
int idx = 0);
104 void syncGraphSettings(
int row);
105 qsizetype graphCount()
const;
108 void scheduleReplot(
bool now =
false);
109 void scheduleRecalc(
bool now =
false);
110 void scheduleRetap(
bool now =
false);
115 void keyPressEvent(QKeyEvent *event);
119 void modelDataChanged(
const QModelIndex &topLeft,
const QModelIndex &bottomRight,
const QVector<int> &roles);
120 void modelRowsReset();
121 void modelRowsInserted(
const QModelIndex &parent,
int first,
int last);
122 void modelRowsRemoved(
const QModelIndex &parent,
int first,
int last);
123 void modelRowsMoved(
const QModelIndex &sourceParent,
int sourceStart,
int sourceEnd,
const QModelIndex &destinationParent,
int destinationRow);
126 void goToPacket(
int packet_num);
128 void intervalChanged(
int interval);
129 void reloadValueUnitFields();
132 Ui::IOGraphDialog *ui;
137 QPointer<UatModel> uat_model_;
141 QVector<IOGraph*> ioGraphs_;
144 QCPGraph *base_graph_;
145 QCPItemTracer *tracer_;
146 uint32_t packet_num_;
149 QRubberBand *rubber_band_;
158 const char* type_unit_name_;
160 QSharedPointer<QCPAxisTicker> number_ticker_;
161 QSharedPointer<QCPAxisTickerDateTime> datetime_ticker_;
165 void zoomAxes(
bool in);
166 void zoomXAxis(
bool in);
167 void zoomYAxis(
bool in);
168 void panAxes(
int x_pixels,
int y_pixels);
169 void toggleTracerStyle(
bool force_default =
false);
173 QRectF getZoomRanges(QRect zoom_rect);
174 void createIOGraph(
int currentRow);
175 void loadProfileGraphs(
uat_field_t* io_graph_fields);
176 void makeCsv(QTextStream &
stream)
const;
177 bool saveCsv(
const QString &file_name)
const;
178 IOGraph *currentActiveGraph()
const;
179 bool graphIsEnabled(
int row)
const;
180 bool graphAsAOT(
int row)
const;
183 static void applyChanges();
185 void copyFromProfile(QString filename);
186 void updateWidgets();
187 void showContextMenu(
const QPoint &pos);
188 void graphClicked(QMouseEvent *event);
189 void mouseMoved(QMouseEvent *event);
190 void mouseReleased(QMouseEvent *event);
191 void selectedFrameChanged(QList<int> frames);
195 void updateStatistics(
void);
196 void copyAsCsvClicked();
198 void graphUatSelectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected);
199 void on_intervalComboBox_currentIndexChanged(
int index);
200 void on_graphUat_currentItemChanged(
const QModelIndex ¤t,
const QModelIndex &previous);
202 void on_automaticUpdateCheckBox_toggled(
bool checked);
203 void on_newToolButton_clicked();
204 void on_deleteToolButton_clicked();
205 void on_copyToolButton_clicked();
206 void on_clearToolButton_clicked();
207 void on_moveUpwardsToolButton_clicked();
208 void on_moveDownwardsToolButton_clicked();
209 void on_dragRadioButton_toggled(
bool checked);
210 void on_zoomRadioButton_toggled(
bool checked);
211 void on_actionReset_triggered();
212 void on_actionZoomIn_triggered();
213 void on_actionZoomInX_triggered();
214 void on_actionZoomInY_triggered();
215 void on_actionZoomOut_triggered();
216 void on_actionZoomOutX_triggered();
217 void on_actionZoomOutY_triggered();
218 void on_actionMoveUp10_triggered();
219 void on_actionMoveLeft10_triggered();
220 void on_actionMoveRight10_triggered();
221 void on_actionMoveDown10_triggered();
222 void on_actionMoveUp1_triggered();
223 void on_actionMoveLeft1_triggered();
224 void on_actionMoveRight1_triggered();
225 void on_actionMoveDown1_triggered();
226 void on_actionGoToPacket_triggered();
227 void on_actionDragZoom_triggered();
228 void on_actionToggleTimeOrigin_triggered();
229 void on_actionCrosshairs_triggered();
230 void on_buttonBox_helpRequested();
231 void on_buttonBox_accepted();
232 void buttonBoxClicked(QAbstractButton *button);
233 void actionLegendTriggered(
bool checked);
234 void actionTimeOfDayTriggered(
bool checked);
235 void actionLogScaleTriggered(
bool checked);