15 #include <QPushButton>
17 #include <QGridLayout>
18 #include <QMessageBox>
19 #include <QStandardItemModel>
21 #include <QFormLayout>
23 #include <QDialogButtonBox>
28 #include <QInputDialog>
36 #include "filter_menu_header.h"
37 #include "filter_model.h"
41 #include "ui_filter_menu.h"
53 FilterMenu(
bool formatting_properties =
false, QWidget* parent = 0);
67 QStandardItemModel*
model();
73 void add_filters(QList<QList<QStandardItem*> >* filters);
93 QStringList inputDialog(std::string message);
100 bool check_if_filter_exists(std::string filter_name);
103 bool formatting_properties_;
127 void update(
const QModelIndex& start,
const QModelIndex& end);
136 void insert(
const QModelIndex& parent,
int start,
int end,
bool updated =
false);
144 void remove(
const QModelIndex& parent,
int start,
int end);
193 void filterUpdated(std::string name, std::string type,
bool hide,
bool inverted,
bool enabled, std::string color, std::string opacity, std::map<std::string, std::string> params,
bool last);
207 void filterInserted(std::string name, std::string type,
bool hide,
bool inverted,
bool enabled, std::string color, std::string opacity, std::map<std::string, std::string> params,
bool last);