@@ -16,53 +16,18 @@ email : tim at linfiniti.com
16
16
***************************************************************************/
17
17
/* $Id$ */
18
18
19
- /*
20
- Please observe the following variable naming guidelines when editing this class:
21
- ---------------------------------------------------------------------------------
22
- In my opinion, clarity of code is more important than brevity, so variables should be
23
- given clear, unambiguous names. Variables names should be written in mixed case, with
24
- a lowercase first letter. Each variable name should include a scope resolution
25
- indicator and a type indicator, in the form:
26
-
27
- [scope]+[name]+[type]
28
-
29
- Where scope resolution indicators are:
30
-
31
- - global vars and class members : [none]
32
- - variables passed as parameters to a function/method: the
33
- - variables declared locally in a method or function: my
34
-
35
- For example:
36
-
37
- class FooClass {
38
- int fooInt; //class var has no prefix
39
-
40
- void FooClass::fooMethod (int theBarInt) //function parameter prefixed by 'the'
41
- {
42
- fooInt=1;
43
- int myLocalInt=0; //function members prefixed by 'my'
44
- myLocalInt=fooInt+theBarInt;
45
- }
46
- }
47
-
48
- Using this scope resolution naming scheme makes the origin of each variable unambiguous
49
- and the code easy to read (especially by people who did not write it!).
50
-
51
- The [name] part of the variable should be short and descriptive, usually a noun.
52
-
53
- The [type] part of the variable should be the type class of the variable written out in full.
54
-
55
-
56
- DEBUG DIRECTIVES:
57
-
58
- When compiling you can make sure DEBUG is defined by including -DDEBUG in the gcc command (e.g. gcc -DDEBUG myprog.c ) if you
59
- wish to see edbug messages printed to stdout.
60
-
61
- */
62
19
20
+ #include " qgsapplication.h"
63
21
#include " qgslogger.h"
64
- #include " qgsrasterlayer .h"
22
+ #include " qgsmaplayerregistry .h"
65
23
#include " qgsmaptopixel.h"
24
+ #include " qgsproviderregistry.h"
25
+ #include " qgsrasterbandstats.h"
26
+ #include " qgsrasterlayer.h"
27
+ #include " qgsrasterpyramid.h"
28
+ #include " qgsrasterviewport.h"
29
+ #include " qgsrect.h"
30
+ #include " qgsspatialrefsys.h"
66
31
67
32
68
33
#include < cstdio>
@@ -72,53 +37,23 @@ email : tim at linfiniti.com
72
37
73
38
#include < QApplication>
74
39
#include < QCursor>
75
- #include < QPainter>
76
- #include < QImage>
77
- #include < QFont>
40
+ #include < QDomElement>
41
+ #include < QDomNode>
78
42
#include < QFile>
79
43
#include < QFileInfo>
44
+ #include < QFont>
80
45
#include < QFontMetrics>
81
- #include < QMatrix>
82
- #include < QMessageBox>
83
- #include < QRegExp>
84
- #include < QSlider>
85
- #include < QLabel>
86
- #include < QDomNode>
87
- #include < QDomElement>
88
46
#include < QFrame>
89
47
#include < QImage>
90
48
#include < QLabel>
91
49
#include < QMatrix>
50
+ #include < QMessageBox>
51
+ #include < QLibrary>
92
52
#include < QPainter>
93
53
#include < QPixmap>
94
54
#include < QRegExp>
55
+ #include < QSlider>
95
56
96
- /*
97
- *
98
- * New includes that will convert this class to a data provider interface
99
- * (B Morley)
100
- *
101
- */
102
-
103
- #include < QLibrary>
104
-
105
- #include " qgsproviderregistry.h"
106
-
107
- /*
108
- * END
109
- */
110
-
111
- #include " qgsrasterlayer.h"
112
-
113
- #include " qgsapplication.h"
114
- #include " qgslogger.h"
115
- #include " qgsmaplayerregistry.h"
116
- #include " qgsmaptopixel.h"
117
- #include " qgsrasterbandstats.h"
118
- #include " qgsrasterpyramid.h"
119
- #include " qgsrasterviewport.h"
120
- #include " qgsrect.h"
121
- #include " qgsspatialrefsys.h"
122
57
123
58
124
59
// workaround for MSVC compiler which already has defined macro max
0 commit comments