-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy pathCondFormatManager.h
More file actions
56 lines (46 loc) · 1.2 KB
/
CondFormatManager.h
File metadata and controls
56 lines (46 loc) · 1.2 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
50
51
52
53
54
55
56
#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() const;
private:
enum Columns {
ColumnForeground = 0,
ColumnBackground,
ColumnFont,
ColumnSize,
ColumnBold,
ColumnItalic,
ColumnUnderline,
ColumnAlignment,
ColumnFilter
};
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 moveItem(int offset);
void upItem();
void downItem();
void buttonBoxClicked(QAbstractButton* button);
public slots:
void itemClicked(QTreeWidgetItem* item, int column);
};
#endif // CONDFORMATMANAGER_H