-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutlineDialog.h
More file actions
41 lines (32 loc) · 787 Bytes
/
outlineDialog.h
File metadata and controls
41 lines (32 loc) · 787 Bytes
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
//outlineDialog.h
#ifndef OUTLINEDIALOG_H
#define OUTLINEDIALOG_H
#include <QDialog>
#include <QPolygonF>
#include <QPainter>
#include <QKeyEvent>
#include "GeoResult.h"
class COutlineDialog : public QDialog
{
Q_OBJECT
//Constructor
public:
explicit COutlineDialog(QWidget* parent = nullptr);
//Methods
public:
void setCountryGeometry(const QList<CGeoResult>& geoResults );
protected:
void paintEvent(QPaintEvent* event) override;
void keyPressEvent(QKeyEvent* event) override;
private:
//Member variables
private:
//Polygons
QList<QPolygonF> m_polygons;
//Colours and brightness
bool m_inverted;
int m_fgBrightness; //ranges from 0 to 255
int m_bgBrightness; //ranges from 0 to 255
QList<CGeoResult> m_geoPolygons;
};
#endif