forked from sqlitebrowser/sqlitebrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCondFormatManager.h
More file actions
49 lines (39 loc) · 1.05 KB
/
CondFormatManager.h
File metadata and controls
49 lines (39 loc) · 1.05 KB
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
#ifndef CONDFORMATMANAGER_H
#define CONDFORMATMANAGER_H
#include <QDialog>
#include <vector>
#include "Palette.h"
namespace Ui {
class CondFormatManager;
}
class CondFormat;
class QTreeWidgetItem;
class QAbstractButton;
class CondFormatManager : public QDialog
{
Q_OBJECT
public:
explicit CondFormatManager(const std::vector<CondFormat>& condFormats, const QString& encoding, QWidget *parent = nullptr);
~CondFormatManager() override;
std::vector<CondFormat> getCondFormats();
private:
enum Columns {
ColumnForeground = 0,
ColumnBackground = 1,
ColumnFilter = 2
};
Ui::CondFormatManager *ui;
std::vector<CondFormat> m_condFormats;
Palette m_condFormatPalette;
QString m_encoding;
private slots:
void addNewItem();
void addItem(const CondFormat& aCondFormat);
void removeItem();
void upItem();
void downItem();
void on_buttonBox_clicked(QAbstractButton* button);
public slots:
void itemClicked(QTreeWidgetItem* item, int column);
};
#endif // CONDFORMATMANAGER_H