1 #ifndef CURVE_SELECTOR_H 2 #define CURVE_SELECTOR_H 8 #include <QStandardItemModel> 10 #include <QItemSelection> 33 void addCurve(
const QString& item_name);
35 void addCustom(
const QString& item_name);
37 void refreshColumns();
39 void removeCurve(
const std::string&
name);
41 void rebuildEntireList(
const std::vector<std::string>& names);
45 void changeFontSize(
int point_size);
47 bool is2ndColumnHidden()
const;
49 void update2ndColumnValues(
double time, std::unordered_map<std::string, PlotData>* numeric_data);
51 virtual void keyPressEvent(QKeyEvent* event)
override;
55 void on_lineEditFilter_textChanged(
const QString& search_string);
57 void removeSelectedCurves();
59 void on_buttonAddCustom_clicked();
61 void on_buttonEditCustom_clicked();
63 void onCustomSelectionChanged(
const QItemSelection& selected,
const QItemSelection& deselected);
65 void on_checkBoxShowValues_toggled(
bool show);
69 void clearSelections();
71 void on_stylesheetChanged(QString theme);
76 Ui::CurveListPanel*
ui;
78 void updateTreeModel();
83 double _tracker_time = 0;
84 std::unordered_map<std::string, PlotData>* _numeric_data =
nullptr;
94 void hiddenItemsChanged();
96 void createMathPlot(
const std::string& linked_plot);
97 void editMathPlot(
const std::string& plot_name);
98 void refreshMathPlot(
const std::string& curve_name);
100 void deleteCurves(
const std::vector<std::string>& curve_names);
103 #endif // CURVE_SELECTOR_H
CurveTreeView * _tree_view
std::unordered_map< std::string, CustomPlotPtr > CustomPlotMap
const CustomPlotMap & _custom_plots
void clear(lua_State *L, int table_index)
CurveTableView * _custom_view