-
Notifications
You must be signed in to change notification settings - Fork 0
/
autopricedialog.h
60 lines (50 loc) · 1.71 KB
/
autopricedialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef AUTOPRICEDIALOG_H
#define AUTOPRICEDIALOG_H
#include <QDialog>
#include <QPalette>
#include <QRegularExpression>
class AutoPriceItemModel;
class QDataWidgetMapper;
class QModelIndex;
class QListWidget;
class QListWidgetItem;
namespace Ui {
class AutoPriceDialog;
}
class AutoPriceDialog : public QDialog
{
Q_OBJECT
public:
explicit AutoPriceDialog(QWidget *parent, AutoPriceItemModel *model);
~AutoPriceDialog();
QDataWidgetMapper *GetMapper() { return mapper_;}
private:
Ui::AutoPriceDialog *ui;
AutoPriceItemModel *model_;
QDataWidgetMapper *mapper_;
QPalette error_palette_;
QPalette normal_palette_;
int current_row_;
QRegularExpression active_expression_;
void SetActiveExpression(QString str);
void AddStringToListWidget(QString str, QListWidget *widget);
void LoadListWidgetFromRowColumn(QListWidget *widget, int row, int column);
void UpdateListWidgetErrorState(QListWidget *widget);
void UpdateListWidgetItemErrorState(QListWidgetItem *item);
QStringList ListWidgetToStringList(const QListWidget *widget);
int ErrorCount() const;
int ListWidgetErrorCount(QListWidget *widget) const;
public Q_SLOTS:
void OnIndexChanged(const QModelIndex &index);
private slots:
void on_AutoPriceDialog_accepted();
void on_lineEdit_textChanged(const QString &arg1);
void on_toolButton_match_remove_clicked();
void on_toolButton_match_add_clicked();
void on_toolButton_mismatch_remove_clicked();
void on_toolButton_mismatch_add_clicked();
void on_listWidget_match_itemChanged(QListWidgetItem *item);
void on_listWidget_mismatch_itemChanged(QListWidgetItem *item);
void on_buttonBox_accepted();
};
#endif // AUTOPRICEDIALOG_H