1 #ifndef CURVE_SELECTOR_H 2 #define CURVE_SELECTOR_H 8 #include <QStandardItemModel> 10 #include <QItemSelection> 35 void addItem(
const QString& item_name);
37 void refreshColumns();
39 int findRowByName(
const std::string &text)
const;
41 void removeRow(
int row);
43 void rebuildEntireList(
const std::vector<std::string> &names);
52 QTableView* getTableView()
const;
54 QTableView* getCustomView()
const;
58 return getTableView()->isColumnHidden(1);
61 virtual void keyPressEvent(QKeyEvent * event)
override;
65 void on_radioContains_toggled(
bool checked);
67 void on_radioRegExp_toggled(
bool checked);
69 void on_radioPrefix_toggled(
bool checked);
71 void on_checkBoxCaseSensitive_toggled(
bool checked);
73 void on_lineEdit_textChanged(
const QString &search_string);
75 void on_pushButtonSettings_toggled(
bool checked);
77 void on_checkBoxHideSecondColumn_toggled(
bool checked);
79 void removeSelectedCurves();
81 void on_buttonAddCustom_clicked();
83 void on_buttonEditCustom_clicked();
85 void onCustomSelectionChanged(
const QItemSelection& selected,
const QItemSelection& deselected);
89 void clearSelections();
93 Ui::CurveListPanel *
ui;
101 bool eventFilter(QObject *
object, QEvent *event)
override;
103 void updateTreeModel();
105 std::vector<std::string> getNonHiddenSelectedRows();
116 void hiddenItemsChanged();
118 void createMathPlot(
const std::string& linked_plot);
119 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);
125 #endif // CURVE_SELECTOR_H bool is2ndColumnHidden() const
TreeModelCompleter * _completer
QStandardItemModel * getTableModel() const
std::unordered_map< std::string, CustomPlotPtr > CustomPlotMap
bool _completer_need_update
const CustomPlotMap & _custom_plots
QStandardItemModel * _model