/
qgscontinuouscolordialog.h
56 lines (42 loc) · 1.86 KB
/
qgscontinuouscolordialog.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
/***************************************************************************
qgscontinuouscolordialog.h
Continuous color renderer dialog
-------------------
begin : 2004-02-12
copyright : (C) 2004 by Gary E.Sherman
email : sherman at mrcc.com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSCONTINUOUSCOLORDIALOG_H
#define QGSCONTINUOUSCOLORDIALOG_H
#include "ui_qgscontinuouscolordialogbase.h"
#include <map>
class QgsVectorLayer;
class QgsContinuousColorDialog: public QDialog, private Ui::QgsContinuousColorDialogBase
{
Q_OBJECT
public:
QgsContinuousColorDialog( QgsVectorLayer* layer );
~QgsContinuousColorDialog();
public slots:
void apply();
protected slots:
void selectMinimumColor( const QColor& color );
void selectMaximumColor( const QColor& color );
void on_cb_polygonOutline_clicked();
protected:
QgsVectorLayer* mVectorLayer;
// Reimplements dialog keyPress event so we can ignore it
void keyPressEvent( QKeyEvent * event );
private:
/** Default constructor is private, do not use this */
QgsContinuousColorDialog();
};
#endif