7 #ifndef CURVE_SELECTOR_H 8 #define CURVE_SELECTOR_H 12 #include <QListWidget> 13 #include <QMouseEvent> 14 #include <QStandardItemModel> 16 #include <QItemSelection> 17 #include <unordered_set> 41 bool addCurve(
const std::string& plot_name);
43 void addCustom(
const QString& item_name);
45 void refreshColumns();
47 void removeCurve(
const std::string&
name);
49 void rebuildEntireList(
const std::vector<std::string>& names);
53 void changeFontSize(
int point_size);
55 bool is2ndColumnHidden()
const;
57 void update2ndColumnValues(
double time);
59 virtual void keyPressEvent(QKeyEvent* event)
override;
61 void updateAppearance();
65 void on_lineEditFilter_textChanged(
const QString& search_string);
67 void removeSelectedCurves();
69 void on_buttonAddCustom_clicked();
71 void on_buttonEditCustom_clicked();
73 void onCustomSelectionChanged(
const QItemSelection& selected,
74 const QItemSelection& deselected);
76 void on_checkBoxShowValues_toggled(
bool show);
78 void on_pushButtonTrash_clicked(
bool checked);
82 std::vector<std::string> getSelectedNames()
const;
84 void clearSelections();
86 void on_stylesheetChanged(QString theme);
92 Ui::CurveListPanel*
ui;
96 void updateTreeModel();
102 double _tracker_time = 0;
110 QString getTreeName(QString name);
114 void hiddenItemsChanged();
116 void createMathPlot(
const std::string& linked_plot);
118 void editMathPlot(
const std::string& plot_name);
120 void refreshMathPlot(
const std::string& curve_name);
122 void deleteCurves(
const std::vector<std::string>& curve_names);
124 void requestDeleteAll(
int);
127 #endif // CURVE_SELECTOR_H
std::unordered_map< std::string, std::shared_ptr< TransformFunction > > TransformsMap
CurveTreeView * _tree_view
const TransformsMap & _transforms_map
CurveTreeView * _custom_view
void clear(lua_State *L, int table_index)
std::unordered_set< std::string > _tree_view_items
PlotDataMapRef & _plot_data