2021-08-15 11:09:08 +00:00
|
|
|
#ifndef LABELSMANAGEMENT_H
|
|
|
|
#define LABELSMANAGEMENT_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QLineEdit>
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QStandardItemModel>
|
|
|
|
#include <QTableView>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class DBUnit;
|
|
|
|
|
2021-08-16 12:46:04 +00:00
|
|
|
namespace ViewComp {
|
2021-08-15 11:09:08 +00:00
|
|
|
class LabelsManagement : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit LabelsManagement(DBUnit* tool, QWidget* parent = nullptr);
|
|
|
|
|
|
|
|
private:
|
|
|
|
DBUnit* const db_host;
|
|
|
|
|
|
|
|
QLineEdit* const keywords_input;
|
|
|
|
QTableView* const labels_view;
|
|
|
|
QStandardItemModel* const labels_model;
|
|
|
|
QPushButton *const append, *const remove;
|
|
|
|
|
|
|
|
void init_labels_model(QStandardItemModel* model);
|
|
|
|
void input_query(const QString& keywords);
|
|
|
|
};
|
|
|
|
|
2021-08-16 12:46:04 +00:00
|
|
|
}
|
|
|
|
|
2021-08-15 11:09:08 +00:00
|
|
|
#endif // LABELSMANAGEMENT_H
|