19
19
***************************************************************************/
20
20
21
21
22
- #include " omgtipfactory .h"
22
+ #include " qgstipfactory .h"
23
23
#include < QTime>
24
24
// for rand & srand
25
25
#include < cstdlib>
26
26
27
27
28
- OmgTipFactory::OmgTipFactory () : QObject()
28
+ QgsTipFactory::QgsTipFactory () : QObject()
29
29
{
30
30
// Im just doing this in a simple way so
31
31
// its easy for translators...later
32
32
// it its worth the time Ill move this data
33
33
// into a sqlite database...
34
- OmgTip myTip;
35
- myTip.setTitle (tr (" openModeller is open source" ));
36
- myTip.setContent (tr (" openModeller is open source software."
34
+ QgsTip myTip;
35
+ myTip.setTitle (tr (" Quantum GIS is open source" ));
36
+ myTip.setContent (tr (" Quantum GIS is open source software."
37
37
" This means that the software source code can be freely viewed "
38
38
" and modified. The GPL places a restriction that any modifications "
39
39
" you make must be made available to the openModeller project, and "
40
40
" that you can not create a new version of openModeller under a "
41
- " 'closed source' license. Visit <a href=\" http://openModeller.sf.net \" >"
42
- " the openModeller home page (http://openModeller.sf.net )</a> for more"
41
+ " 'closed source' license. Visit <a href=\" http://qgis.org \" >"
42
+ " the QGIS home page (http://qgis.org )</a> for more"
43
43
" information." ));
44
44
addGenericTip (myTip);
45
45
//
46
- myTip.setTitle (tr (" openModeller Publications" ));
46
+ myTip.setTitle (tr (" QGIS Publications" ));
47
47
myTip.setContent (tr (" If you write a scientific paper or any other article"
48
- " that refers to openModeller we would love to include your work"
49
- " in the references section of "
50
- " the openModeller home page (http://openModeller.sf.net).</a> "
48
+ " that refers to QGIS we would love to include your work"
49
+ " in the <a href= \" http://www.qgis.org/en/community/qgis-case-studies.html \" >case studies section</a> of"
50
+ " the Quantum GIS home page (http://http://www.qgis.org/en/community/qgis-case-studies.html). "
51
51
));
52
52
addGenericTip (myTip);
53
- myTip.setTitle (tr (" Become an openModeller Desktop translator" ));
54
- myTip.setContent (tr (" Would you like to see openModeller Desktop "
53
+ myTip.setTitle (tr (" Become an QGIS translator" ));
54
+ myTip.setContent (tr (" Would you like to see QGIS "
55
55
" in your native language? We are looking for more translators"
56
56
" and would appreciate your help! The translation process is "
57
57
" fairly straight forward - instructions are available in the "
58
- " resources section of "
59
- " the openModeller home page (http://openModeller.sf.net ).</a>"
58
+ " QGIS wiki "
59
+ " <a href= \" http://www.qgis.org/wiki/GUI_Translation \" >translator's page (http://www.qgis.org/wiki/GUI_Translation ).</a>"
60
60
));
61
61
addGuiTip (myTip);
62
- myTip.setTitle (tr (" openModeller Mailing lists" ));
63
- myTip.setContent (tr (" If you need help using openModeller Desktop"
64
- " we have a mailing list where users help each other with issues"
65
- " related to niche modelling and using openModeller Desktop."
66
- " Details on how to subscribe are in the resources section of"
67
- " the openModeller home page (http://openModeller.sf.net).</a>"
62
+ myTip.setTitle (tr (" QGIS Mailing lists" ));
63
+ myTip.setContent (tr (" If you need help using QGIS"
64
+ " we have a 'users' mailing list where users help each other with issues"
65
+ " related to using our sofware. We also have a 'developers' mailing list."
66
+ " for those wanting help and to discuss things relating the the QGIS code base."
67
+ " Details on how to subscribe are in the <a href=\" http://www.qgis.org/en/community/mailing-lists.html\" >community section</a> of"
68
+ " the QGIS home page (http://www.qgis.org/en/community/mailing-lists.html)."
68
69
));
69
70
addGuiTip (myTip);
70
- myTip.setTitle (tr (" Is it 'modelling ' or 'modeling '?" ));
71
- myTip.setContent (tr (" Both spellings are correct. For openModeller "
72
- " we use the former spelling ."
71
+ myTip.setTitle (tr (" Is it 'QGIS ' or 'Quantum GIS '?" ));
72
+ myTip.setContent (tr (" Both are correct. For articles we suggest you write 'Quantum GIS (QGIS) is ....' "
73
+ " and then refer to it as QGIS thereafter ."
73
74
));
74
75
addGenericTip (myTip);
75
- myTip.setTitle (tr (" How do I refer to openModeller?" ));
76
- myTip.setContent (tr (" openModeller is spelled with a lower case"
77
- " 'o' at the start of the word - even if its the beginning"
78
- " of a sentance. We have various subprojects of the openModeller "
76
+ myTip.setTitle (tr (" How do I refer to Quantum GIS?" ));
77
+ myTip.setContent (tr (" QGIS is spelled in all caps."
78
+ " We have various subprojects of the QGIS project "
79
79
" project and it will help to avoid confusion if you refer to each by"
80
80
" its name:"
81
81
" <ul>"
82
- " <li>openModeller Library - this is the C++ library that contains"
83
- " the core logic for carrying out niche modelling"
84
- " <li>openModeller Console - these are a collection of command"
85
- " line tools that allow you to run niche models from a unix or"
86
- " DOS shell, or from a scripting environment."
87
- " <li>openModeller Web Service - The openModeller Web Service"
88
- " allows for remote execution of niche models."
89
- " <li>openModeller Desktop - the openModeller Desktop provides"
90
- " a graphical user interface for the openModeller Library. It"
91
- " also includes the capability to run models using the"
92
- " openModeller Web Service (though this is still considered"
93
- " experimental)."
82
+ " <li>QGIS Library - this is the C++ library that contains"
83
+ " the core logic that is used to build the QGIS user interface and other applications.</li>"
84
+ " <li>QGIS Application - this is the desktop application that you know and love so much :-).</li>"
85
+ " <li>QGIS Mapserver - this is a server-side application based on the QGIS Library"
86
+ " that will serve up your .qgs projects using the WMS protocol.</li>"
94
87
" </ul>"
95
88
));
96
89
addGenericTip (myTip);
97
- myTip.setTitle (tr (" How can I improve model execution times?" ));
98
- myTip.setContent (tr (" Model processing time is typically determined by"
99
- " <ul>"
100
- " <li>the algorithm you select,</li>"
101
- " <li>the number, extents and spatial resolution of your format and environmental layers,</li>"
102
- " <li>the number of cells excluded by your mask (if any),</li>"
103
- " <li>in some cases the number of presence and absence points (e.g. distance algs),</li>"
104
- " <li>the speed of the computer the model is running on (CPU, disk access etc).</li>"
105
- " </ul>"
106
- " So if you want to improve model processing times you need to adjust "
107
- " one of these variables. One thing noticed quite commonly is that people "
108
- " use extremely high resolution datasets that often carry little "
109
- " additional information over lower resolution equivalents. For example "
110
- " interpolating widely dispersed weather station data to produce a 50cm "
111
- " raster probably carries little additional value over for example using "
112
- " 10m2 pixels.<br>"
113
- " Another area of performance improvement you can look at is "
114
- " preselecting environmental variables using techniques such as Chi "
115
- " Square test. Future versions of openModeller will integrate the ability "
116
- " to do this type of preselection."
117
- ));
118
- addGenericTip (myTip);
119
90
/* Template for adding more tips
120
91
myTip.setTitle(tr(""));
121
92
myTip.setContent(tr(""
@@ -124,52 +95,52 @@ OmgTipFactory::OmgTipFactory() : QObject()
124
95
*/
125
96
}
126
97
127
- OmgTipFactory ::~OmgTipFactory ()
98
+ QgsTipFactory ::~QgsTipFactory ()
128
99
{
129
100
130
101
}
131
102
// private helper method
132
- void OmgTipFactory ::addGuiTip (OmgTip theTip)
103
+ void QgsTipFactory ::addGuiTip (QgsTip theTip)
133
104
{
134
105
mGuiTips << theTip;
135
106
mAllTips << theTip;
136
107
}
137
108
// private helper method
138
- void OmgTipFactory ::addGenericTip (OmgTip theTip)
109
+ void QgsTipFactory ::addGenericTip (QgsTip theTip)
139
110
{
140
111
mGenericTips << theTip;
141
112
mAllTips << theTip;
142
113
}
143
- OmgTip OmgTipFactory ::getTip ()
114
+ QgsTip QgsTipFactory ::getTip ()
144
115
{
145
116
srand (QTime::currentTime ().msec ());
146
117
int myRand = rand ();
147
118
int myValue = static_cast <int > (myRand % mAllTips .count ()); // range [0,(count-1)]
148
- OmgTip myTip = mAllTips .at (myValue);
119
+ QgsTip myTip = mAllTips .at (myValue);
149
120
return myTip;
150
121
}
151
- OmgTip OmgTipFactory ::getTip (int thePosition)
122
+ QgsTip QgsTipFactory ::getTip (int thePosition)
152
123
{
153
- OmgTip myTip = mAllTips .at (thePosition);
124
+ QgsTip myTip = mAllTips .at (thePosition);
154
125
return myTip;
155
126
}
156
- OmgTip OmgTipFactory ::getGenericTip ()
127
+ QgsTip QgsTipFactory ::getGenericTip ()
157
128
{
158
129
srand (QTime::currentTime ().msec ());
159
130
int myRand = rand ();
160
131
int myValue = static_cast <int > (myRand % mGenericTips .count ()); // range [0,(count-1)]
161
- OmgTip myTip = mGenericTips .at (myValue);
132
+ QgsTip myTip = mGenericTips .at (myValue);
162
133
return myTip;
163
134
}
164
- OmgTip OmgTipFactory ::getGuiTip ()
135
+ QgsTip QgsTipFactory ::getGuiTip ()
165
136
{
166
137
srand (QTime::currentTime ().msec ());
167
138
int myRand = rand ();
168
139
int myValue = static_cast <int > (myRand % mGuiTips .count ()); // range [0,(count-1)]
169
- OmgTip myTip = mGuiTips .at (myValue);
140
+ QgsTip myTip = mGuiTips .at (myValue);
170
141
return myTip;
171
142
}
172
- int OmgTipFactory ::randomNumber (int theMax)
143
+ int QgsTipFactory ::randomNumber (int theMax)
173
144
{
174
145
return 0 ;
175
146
}
0 commit comments