Skip to content

Commit 6446f0e

Browse files
author
timlinux
committedApr 14, 2005
Wired up move first and move last button sin custom projections dialog.
git-svn-id: http://svn.osgeo.org/qgis/trunk@3158 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 69b88d7 commit 6446f0e

File tree

6 files changed

+483
-46
lines changed

6 files changed

+483
-46
lines changed
 

‎ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
------------------------------------------------------------------------------
33
Version 0.6 'Simon' .... development version
44
QGIS Change Log
5+
2005-04-14 [timlinux] 0.6devel15
6+
** Wired up move first and move last buttons on custom projection dialog
57
2005-04-14 [timlinux] 0.6devel14
68
** Status bar widgets show text in 8pt arial. Closes bug #1077217
79
2005-04-13 [timlinux] 0.6devel13

‎configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dnl ---------------------------------------------------------------------------
2626
MAJOR_VERSION=0
2727
MINOR_VERSION=6
2828
MICRO_VERSION=0
29-
EXTRA_VERSION=14
29+
EXTRA_VERSION=15
3030
if test $EXTRA_VERSION -eq 0; then
3131
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}
3232
else

‎src/qgscustomprojectiondialog.cpp

Lines changed: 278 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
QgsCustomProjectionDialog::QgsCustomProjectionDialog( QWidget* parent , const char* name , WFlags fl )
4242
: QgsCustomProjectionDialogBase( parent, "Projection Designer", fl )
4343
{
44-
QString myQGisSettingsDir = QDir::homeDirPath () + "/.qgis/";
44+
mQGisSettingsDir = QDir::homeDirPath () + "/.qgis/";
4545
// first we look for ~/.qgis/user_projections.db
4646
// if it doesnt exist we copy it in from the global resources dir
4747
QFileInfo myFileInfo;
48-
myFileInfo.setFile(myQGisSettingsDir+"user_projections.db");
48+
myFileInfo.setFile(mQGisSettingsDir+"user_projections.db");
4949
if ( !myFileInfo.exists( ) )
5050
{
5151
// make sure the ~/.qgis dir exists first
@@ -73,11 +73,11 @@ QgsCustomProjectionDialog::QgsCustomProjectionDialog( QWidget* parent , const ch
7373
return ;
7474
}
7575

76-
std::ofstream myOutputStream(QString(myQGisSettingsDir+"user_projections.db").latin1());
76+
std::ofstream myOutputStream(QString(mQGisSettingsDir+"user_projections.db").latin1());
7777

7878
if (! myOutputStream)
7979
{
80-
std::cerr << "cannot open " << QString(myQGisSettingsDir+"user_projections.db").latin1() << " for output\n";
80+
std::cerr << "cannot open " << QString(mQGisSettingsDir+"user_projections.db").latin1() << " for output\n";
8181
//XXX Do better error handling
8282
return ;
8383
}
@@ -89,6 +89,27 @@ QgsCustomProjectionDialog::QgsCustomProjectionDialog( QWidget* parent , const ch
8989
}
9090

9191
}
92+
93+
//
94+
// Setup member vars
95+
//
96+
mCurrentRecordId="";
97+
mCurrentRecordNo=0;
98+
99+
//
100+
// Set up databound controls
101+
//
102+
getProjList();
103+
getEllipsoidList();
104+
}
105+
106+
QgsCustomProjectionDialog::~QgsCustomProjectionDialog()
107+
{
108+
109+
}
110+
111+
void QgsCustomProjectionDialog::getProjList ()
112+
{
92113
//
93114
// Populate the projection combo
94115
//
@@ -98,7 +119,7 @@ QgsCustomProjectionDialog::QgsCustomProjectionDialog( QWidget* parent , const ch
98119
sqlite3_stmt *myPreparedStatement;
99120
int myResult;
100121
//check the db is available
101-
myResult = sqlite3_open(QString(myQGisSettingsDir+"user_projections.db").latin1(), &myDatabase);
122+
myResult = sqlite3_open(QString(mQGisSettingsDir+"user_projections.db").latin1(), &myDatabase);
102123
if(myResult)
103124
{
104125
std::cout << "Can't open database: " << sqlite3_errmsg(myDatabase) << std::endl;
@@ -119,8 +140,32 @@ QgsCustomProjectionDialog::QgsCustomProjectionDialog( QWidget* parent , const ch
119140
}
120141
}
121142
sqlite3_finalize(myPreparedStatement);
143+
sqlite3_close(myDatabase);
144+
}
145+
146+
void QgsCustomProjectionDialog::getEllipsoidList()
147+
{
148+
149+
//
150+
// Populate the ellipsoid combo
151+
//
152+
sqlite3 *myDatabase;
153+
char *myErrorMessage = 0;
154+
const char *myTail;
155+
sqlite3_stmt *myPreparedStatement;
156+
int myResult;
157+
//check the db is available
158+
myResult = sqlite3_open(QString(mQGisSettingsDir+"user_projections.db").latin1(), &myDatabase);
159+
if(myResult)
160+
{
161+
std::cout << "Can't open database: " << sqlite3_errmsg(myDatabase) << std::endl;
162+
// XXX This will likely never happen since on open, sqlite creates the
163+
// database if it does not exist.
164+
assert(myResult == 0);
165+
}
166+
122167
// Set up the query to retreive the projection information needed to populate the ELLIPSOID list
123-
mySql = "select * from tbl_ellipsoid order by name";
168+
QString mySql = "select * from tbl_ellipsoid order by name";
124169
myResult = sqlite3_prepare(myDatabase, (const char *)mySql, mySql.length(), &myPreparedStatement, &myTail);
125170
// XXX Need to free memory from the error msg if one is set
126171
if(myResult == SQLITE_OK)
@@ -134,51 +179,271 @@ QgsCustomProjectionDialog::QgsCustomProjectionDialog( QWidget* parent , const ch
134179
sqlite3_finalize(myPreparedStatement);
135180
sqlite3_close(myDatabase);
136181
}
182+
void QgsCustomProjectionDialog::pbnHelp_clicked()
183+
{
137184

138-
QgsCustomProjectionDialog::~QgsCustomProjectionDialog()
185+
}
186+
187+
188+
void QgsCustomProjectionDialog::pbnOK_clicked()
139189
{
190+
140191
}
141192

142193

143-
void QgsCustomProjectionDialog::pbnHelp_clicked()
194+
void QgsCustomProjectionDialog::pbnApply_clicked()
144195
{
145196

146197
}
147198

148199

149-
void QgsCustomProjectionDialog::pbnOK_clicked()
200+
void QgsCustomProjectionDialog::pbnCancel_clicked()
150201
{
151202

152203
}
153204

154205

155-
void QgsCustomProjectionDialog::pbnApply_clicked()
206+
long QgsCustomProjectionDialog::getRecordCount()
156207
{
208+
sqlite3 *myDatabase;
209+
char *myErrorMessage = 0;
210+
const char *myTail;
211+
sqlite3_stmt *myPreparedStatement;
212+
int myResult;
213+
long myRecordCount=0;
214+
//check the db is available
215+
myResult = sqlite3_open(QString(mQGisSettingsDir+"user_projections.db").latin1(), &myDatabase);
216+
if(myResult)
217+
{
218+
std::cout << "Can't open database: " << sqlite3_errmsg(myDatabase) << std::endl;
219+
// XXX This will likely never happen since on open, sqlite creates the
220+
// database if it does not exist.
221+
assert(myResult == 0);
222+
}
223+
// Set up the query to retreive the projection information needed to populate the ELLIPSOID list
224+
QString mySql = "select count(*) from tbl_user_projection";
225+
myResult = sqlite3_prepare(myDatabase, (const char *)mySql, mySql.length(), &myPreparedStatement, &myTail);
226+
// XXX Need to free memory from the error msg if one is set
227+
if(myResult == SQLITE_OK)
228+
{
229+
sqlite3_step(myPreparedStatement) == SQLITE_ROW;
230+
QString myRecordCountString((char *)sqlite3_column_text(myPreparedStatement,0));
231+
myRecordCount=myRecordCountString.toLong();
232+
}
233+
// close the sqlite3 statement
234+
sqlite3_finalize(myPreparedStatement);
235+
sqlite3_close(myDatabase);
236+
return myRecordCount;
157237

158238
}
159239

240+
QString QgsCustomProjectionDialog::getProjectionFamilyName(QString theProjectionFamilyId)
241+
{
242+
sqlite3 *myDatabase;
243+
char *myErrorMessage = 0;
244+
const char *myTail;
245+
sqlite3_stmt *myPreparedStatement;
246+
int myResult;
247+
QString myName;
248+
//check the db is available
249+
myResult = sqlite3_open(QString(mQGisSettingsDir+"user_projections.db").latin1(), &myDatabase);
250+
if(myResult)
251+
{
252+
std::cout << "Can't open database: " << sqlite3_errmsg(myDatabase) << std::endl;
253+
// XXX This will likely never happen since on open, sqlite creates the
254+
// database if it does not exist.
255+
assert(myResult == 0);
256+
}
257+
// Set up the query to retreive the projection information needed to populate the ELLIPSOID list
258+
QString mySql = "select name from tbl_projection where acronym='" + theProjectionFamilyId + "'";
259+
myResult = sqlite3_prepare(myDatabase, (const char *)mySql, mySql.length(), &myPreparedStatement, &myTail);
260+
// XXX Need to free memory from the error msg if one is set
261+
if(myResult == SQLITE_OK)
262+
{
263+
sqlite3_step(myPreparedStatement) == SQLITE_ROW;
264+
myName = QString((char *)sqlite3_column_text(myPreparedStatement,0));
265+
}
266+
// close the sqlite3 statement
267+
sqlite3_finalize(myPreparedStatement);
268+
sqlite3_close(myDatabase);
269+
return myName;
160270

161-
void QgsCustomProjectionDialog::pbnCancel_clicked()
271+
}
272+
QString QgsCustomProjectionDialog::getEllipsoidName(QString theEllipsoidId)
162273
{
274+
sqlite3 *myDatabase;
275+
char *myErrorMessage = 0;
276+
const char *myTail;
277+
sqlite3_stmt *myPreparedStatement;
278+
int myResult;
279+
QString myName;
280+
//check the db is available
281+
myResult = sqlite3_open(QString(mQGisSettingsDir+"user_projections.db").latin1(), &myDatabase);
282+
if(myResult)
283+
{
284+
std::cout << "Can't open database: " << sqlite3_errmsg(myDatabase) << std::endl;
285+
// XXX This will likely never happen since on open, sqlite creates the
286+
// database if it does not exist.
287+
assert(myResult == 0);
288+
}
289+
// Set up the query to retreive the projection information needed to populate the ELLIPSOID list
290+
QString mySql = "select name from tbl_ellipsoid where acronym='" + theEllipsoidId + "'";
291+
myResult = sqlite3_prepare(myDatabase, (const char *)mySql, mySql.length(), &myPreparedStatement, &myTail);
292+
// XXX Need to free memory from the error msg if one is set
293+
if(myResult == SQLITE_OK)
294+
{
295+
sqlite3_step(myPreparedStatement) == SQLITE_ROW;
296+
myName = QString((char *)sqlite3_column_text(myPreparedStatement,0));
297+
}
298+
// close the sqlite3 statement
299+
sqlite3_finalize(myPreparedStatement);
300+
sqlite3_close(myDatabase);
301+
return myName;
302+
303+
}
304+
305+
void QgsCustomProjectionDialog::pbnFirst_clicked()
306+
{
307+
#ifdef QGISDEBUG
308+
std::cout << "QgsCustomProjectionDialog::pbnFirst_clicked()" << std::endl;
309+
#endif
310+
sqlite3 *myDatabase;
311+
char *myErrorMessage = 0;
312+
const char *myTail;
313+
sqlite3_stmt *myPreparedStatement;
314+
int myResult;
315+
//check the db is available
316+
myResult = sqlite3_open(QString(mQGisSettingsDir+"user_projections.db").latin1(), &myDatabase);
317+
if(myResult)
318+
{
319+
std::cout << "Can't open database: " << sqlite3_errmsg(myDatabase) << std::endl;
320+
// XXX This will likely never happen since on open, sqlite creates the
321+
// database if it does not exist.
322+
assert(myResult == 0);
323+
}
324+
325+
QString mySql = "select * from tbl_user_projection order by description limit 1";
326+
myResult = sqlite3_prepare(myDatabase, (const char *)mySql, mySql.length(), &myPreparedStatement, &myTail);
327+
// XXX Need to free memory from the error msg if one is set
328+
if(myResult == SQLITE_OK)
329+
{
330+
sqlite3_step(myPreparedStatement) == SQLITE_ROW;
331+
leName->setText((char *)sqlite3_column_text(myPreparedStatement,1));
332+
QString myProjectionFamilyId((char *)sqlite3_column_text(myPreparedStatement,2));
333+
cboProjectionFamily->setCurrentText(getProjectionFamilyName(myProjectionFamilyId));
334+
QString myEllipsoidId((char *)sqlite3_column_text(myPreparedStatement,3));
335+
cboEllipsoid->setCurrentText(getEllipsoidName(myEllipsoidId));
336+
leParameters->setText((char *)sqlite3_column_text(myPreparedStatement,4));
337+
}
338+
else
339+
{
340+
#ifdef QGISDEBUG
341+
std::cout << "pbnFirst query failed: " << mySql << std::endl;
342+
#endif
343+
344+
}
345+
sqlite3_finalize(myPreparedStatement);
346+
sqlite3_close(myDatabase);
347+
}
348+
349+
350+
void QgsCustomProjectionDialog::pbnPrevious_clicked()
351+
{
352+
#ifdef QGISDEBUG
353+
std::cout << "QgsCustomProjectionDialog::pbnPrevious_clicked()" << std::endl;
354+
#endif
355+
356+
}
357+
358+
359+
void QgsCustomProjectionDialog::pbnNext_clicked()
360+
{
361+
#ifdef QGISDEBUG
362+
std::cout << "QgsCustomProjectionDialog::pbnNext_clicked()" << std::endl;
363+
#endif
364+
365+
}
366+
367+
368+
void QgsCustomProjectionDialog::pbnLast_clicked()
369+
{
370+
#ifdef QGISDEBUG
371+
std::cout << "QgsCustomProjectionDialog::pbnLast_clicked()" << std::endl;
372+
#endif
373+
sqlite3 *myDatabase;
374+
char *myErrorMessage = 0;
375+
const char *myTail;
376+
sqlite3_stmt *myPreparedStatement;
377+
int myResult;
378+
//check the db is available
379+
myResult = sqlite3_open(QString(mQGisSettingsDir+"user_projections.db").latin1(), &myDatabase);
380+
if(myResult)
381+
{
382+
std::cout << "Can't open database: " << sqlite3_errmsg(myDatabase) << std::endl;
383+
// XXX This will likely never happen since on open, sqlite creates the
384+
// database if it does not exist.
385+
assert(myResult == 0);
386+
}
387+
388+
QString mySql = "select * from tbl_user_projection order by description desc limit 1";
389+
myResult = sqlite3_prepare(myDatabase, (const char *)mySql, mySql.length(), &myPreparedStatement, &myTail);
390+
// XXX Need to free memory from the error msg if one is set
391+
if(myResult == SQLITE_OK)
392+
{
393+
sqlite3_step(myPreparedStatement) == SQLITE_ROW;
394+
leName->setText((char *)sqlite3_column_text(myPreparedStatement,1));
395+
QString myProjectionFamilyId((char *)sqlite3_column_text(myPreparedStatement,2));
396+
cboProjectionFamily->setCurrentText(getProjectionFamilyName(myProjectionFamilyId));
397+
QString myEllipsoidId((char *)sqlite3_column_text(myPreparedStatement,3));
398+
cboEllipsoid->setCurrentText(getProjectionFamilyName(myEllipsoidId));
399+
leParameters->setText((char *)sqlite3_column_text(myPreparedStatement,4));
400+
}
401+
else
402+
{
403+
#ifdef QGISDEBUG
404+
std::cout << "pbnLast query failed: " << mySql << std::endl;
405+
#endif
406+
407+
}
408+
sqlite3_finalize(myPreparedStatement);
409+
sqlite3_close(myDatabase);
163410

164411
}
165412

166413

414+
void QgsCustomProjectionDialog::pbnNew_clicked()
415+
{
416+
#ifdef QGISDEBUG
417+
std::cout << "QgsCustomProjectionDialog::pbnNew_clicked()" << std::endl;
418+
#endif
419+
420+
}
421+
422+
423+
void QgsCustomProjectionDialog::pbnSave_clicked()
424+
{
425+
#ifdef QGISDEBUG
426+
std::cout << "QgsCustomProjectionDialog::pbnSave_clicked()" << std::endl;
427+
#endif
428+
429+
}
430+
431+
432+
167433
void QgsCustomProjectionDialog::cboProjectionFamily_highlighted( const QString & theText)
168434
{
169435
#ifdef QGISDEBUG
170436
std::cout << "Projection selected from combo" << std::endl;
171437
#endif
172438
//search the sqlite user projections db for the projection entry
173439
//and display its parameters
174-
QString myQGisSettingsDir = QDir::homeDirPath () + "/.qgis/";
175440
sqlite3 *myDatabase;
176441
char *myErrorMessage = 0;
177442
const char *myTail;
178443
sqlite3_stmt *myPreparedStatement;
179444
int myResult;
180445
//check the db is available
181-
myResult = sqlite3_open(QString(myQGisSettingsDir+"user_projections.db").latin1(), &myDatabase);
446+
myResult = sqlite3_open(QString(mQGisSettingsDir+"user_projections.db").latin1(), &myDatabase);
182447
if(myResult)
183448
{
184449
std::cout << "Can't open database: " << sqlite3_errmsg(myDatabase) << std::endl;

‎src/qgscustomprojectiondialog.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,29 @@ public slots:
3535
void pbnApply_clicked();
3636
void pbnCancel_clicked();
3737
void cboProjectionFamily_highlighted( const QString & );
38+
//
39+
// Database navigation controles
40+
//
41+
long getRecordCount();
42+
void pbnFirst_clicked();
43+
void pbnPrevious_clicked();
44+
void pbnNext_clicked();
45+
void pbnLast_clicked();
46+
void pbnNew_clicked();
47+
void pbnSave_clicked();
48+
49+
//
50+
// Contol population
51+
//
52+
void getProjList();
53+
void getEllipsoidList();
54+
QString getProjectionFamilyName(QString theProjectionFamilyId);
55+
QString getEllipsoidName(QString theEllipsoidId);
56+
private:
57+
QString mCurrentRecordId;
58+
long mCurrentRecordNo;
59+
long mRecordCount;
60+
QString mQGisSettingsDir;
3861
};
3962

4063
#endif

‎src/qgscustomprojectiondialogbase.ui

Lines changed: 143 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<x>0</x>
1010
<y>0</y>
1111
<width>600</width>
12-
<height>480</height>
12+
<height>336</height>
1313
</rect>
1414
</property>
1515
<property name="caption">
@@ -19,46 +19,20 @@
1919
<property name="name">
2020
<cstring>unnamed</cstring>
2121
</property>
22-
<widget class="QPushButton" row="6" column="5">
22+
<widget class="QPushButton" row="7" column="5">
2323
<property name="name">
2424
<cstring>pbnCancel</cstring>
2525
</property>
2626
<property name="text">
2727
<string>Cancel</string>
2828
</property>
2929
</widget>
30-
<widget class="QLabel" row="5" column="0">
31-
<property name="name">
32-
<cstring>textLabel4</cstring>
33-
</property>
34-
<property name="text">
35-
<string>Expected
36-
Parameters:</string>
37-
</property>
38-
</widget>
3930
<widget class="QComboBox" row="3" column="2" rowspan="1" colspan="4">
4031
<property name="name">
4132
<cstring>cboEllipsoid</cstring>
4233
</property>
4334
</widget>
44-
<widget class="QTextEdit" row="5" column="2" rowspan="1" colspan="4">
45-
<property name="name">
46-
<cstring>txtExpectedParameters</cstring>
47-
</property>
48-
<property name="frameShadow">
49-
<enum>Plain</enum>
50-
</property>
51-
<property name="margin">
52-
<number>1</number>
53-
</property>
54-
<property name="midLineWidth">
55-
<number>1</number>
56-
</property>
57-
<property name="textFormat">
58-
<enum>LogText</enum>
59-
</property>
60-
</widget>
61-
<spacer row="6" column="1" rowspan="1" colspan="2">
35+
<spacer row="7" column="1" rowspan="1" colspan="2">
6236
<property name="name">
6337
<cstring>spacer1</cstring>
6438
</property>
@@ -80,7 +54,7 @@ Parameters:</string>
8054
<cstring>leName</cstring>
8155
</property>
8256
</widget>
83-
<widget class="QPushButton" row="6" column="3">
57+
<widget class="QPushButton" row="7" column="3">
8458
<property name="name">
8559
<cstring>pbnOK</cstring>
8660
</property>
@@ -101,7 +75,7 @@ Parameters:</string>
10175
<string>Name:</string>
10276
</property>
10377
</widget>
104-
<widget class="QPushButton" row="6" column="4">
78+
<widget class="QPushButton" row="7" column="4">
10579
<property name="name">
10680
<cstring>pbnApply</cstring>
10781
</property>
@@ -125,7 +99,7 @@ Parameters:</string>
12599
<string>Projection Family:</string>
126100
</property>
127101
</widget>
128-
<widget class="QPushButton" row="6" column="0">
102+
<widget class="QPushButton" row="7" column="0">
129103
<property name="name">
130104
<cstring>pbnHelp</cstring>
131105
</property>
@@ -160,6 +134,101 @@ Parameters:</string>
160134
<cstring>leParameters</cstring>
161135
</property>
162136
</widget>
137+
<widget class="QTextEdit" row="5" column="2" rowspan="1" colspan="4">
138+
<property name="name">
139+
<cstring>txtExpectedParameters</cstring>
140+
</property>
141+
<property name="frameShadow">
142+
<enum>Plain</enum>
143+
</property>
144+
<property name="margin">
145+
<number>1</number>
146+
</property>
147+
<property name="midLineWidth">
148+
<number>1</number>
149+
</property>
150+
<property name="textFormat">
151+
<enum>LogText</enum>
152+
</property>
153+
</widget>
154+
<widget class="QLabel" row="5" column="0">
155+
<property name="name">
156+
<cstring>textLabel4</cstring>
157+
</property>
158+
<property name="text">
159+
<string>Expected
160+
Parameters:</string>
161+
</property>
162+
</widget>
163+
<widget class="QLayoutWidget" row="6" column="0" rowspan="1" colspan="6">
164+
<property name="name">
165+
<cstring>layout2</cstring>
166+
</property>
167+
<hbox>
168+
<property name="name">
169+
<cstring>unnamed</cstring>
170+
</property>
171+
<widget class="QPushButton">
172+
<property name="name">
173+
<cstring>pbnFirst</cstring>
174+
</property>
175+
<property name="text">
176+
<string>|&lt;</string>
177+
</property>
178+
</widget>
179+
<widget class="QPushButton">
180+
<property name="name">
181+
<cstring>pbnPrevious</cstring>
182+
</property>
183+
<property name="text">
184+
<string>&lt;</string>
185+
</property>
186+
</widget>
187+
<widget class="QLabel">
188+
<property name="name">
189+
<cstring>lblRecordNo</cstring>
190+
</property>
191+
<property name="text">
192+
<string>1 of 1</string>
193+
</property>
194+
<property name="alignment">
195+
<set>AlignCenter</set>
196+
</property>
197+
</widget>
198+
<widget class="QPushButton">
199+
<property name="name">
200+
<cstring>pbnNext</cstring>
201+
</property>
202+
<property name="text">
203+
<string>&gt;</string>
204+
</property>
205+
</widget>
206+
<widget class="QPushButton">
207+
<property name="name">
208+
<cstring>pbnLast</cstring>
209+
</property>
210+
<property name="text">
211+
<string>&gt;|</string>
212+
</property>
213+
</widget>
214+
<widget class="QPushButton">
215+
<property name="name">
216+
<cstring>pbnNew</cstring>
217+
</property>
218+
<property name="text">
219+
<string>New</string>
220+
</property>
221+
</widget>
222+
<widget class="QPushButton">
223+
<property name="name">
224+
<cstring>pbnSave</cstring>
225+
</property>
226+
<property name="text">
227+
<string>Save</string>
228+
</property>
229+
</widget>
230+
</hbox>
231+
</widget>
163232
</grid>
164233
</widget>
165234
<connections>
@@ -205,6 +274,42 @@ Parameters:</string>
205274
<receiver>QgsCustomProjectionDialogBase</receiver>
206275
<slot>cboProjectionFamily_highlighted(const QString&amp;)</slot>
207276
</connection>
277+
<connection>
278+
<sender>pbnFirst</sender>
279+
<signal>clicked()</signal>
280+
<receiver>QgsCustomProjectionDialogBase</receiver>
281+
<slot>pbnFirst_clicked()</slot>
282+
</connection>
283+
<connection>
284+
<sender>pbnPrevious</sender>
285+
<signal>clicked()</signal>
286+
<receiver>QgsCustomProjectionDialogBase</receiver>
287+
<slot>pbnPrevious_clicked()</slot>
288+
</connection>
289+
<connection>
290+
<sender>pbnNext</sender>
291+
<signal>clicked()</signal>
292+
<receiver>QgsCustomProjectionDialogBase</receiver>
293+
<slot>pbnNext_clicked()</slot>
294+
</connection>
295+
<connection>
296+
<sender>pbnLast</sender>
297+
<signal>clicked()</signal>
298+
<receiver>QgsCustomProjectionDialogBase</receiver>
299+
<slot>pbnLast_clicked()</slot>
300+
</connection>
301+
<connection>
302+
<sender>pbnNew</sender>
303+
<signal>clicked()</signal>
304+
<receiver>QgsCustomProjectionDialogBase</receiver>
305+
<slot>pbnNew_clicked()</slot>
306+
</connection>
307+
<connection>
308+
<sender>pbnSave</sender>
309+
<signal>clicked()</signal>
310+
<receiver>QgsCustomProjectionDialogBase</receiver>
311+
<slot>pbnSave_clicked()</slot>
312+
</connection>
208313
</connections>
209314
<includes>
210315
<include location="local" impldecl="in implementation">qgscustomprojectiondialogbase.ui.h</include>
@@ -217,6 +322,12 @@ Parameters:</string>
217322
<slot>cboProjectionFamily_textChanged( const QString &amp; )</slot>
218323
<slot>cboProjectionFamily_activated( const QString &amp; )</slot>
219324
<slot>cboProjectionFamily_highlighted( const QString &amp; )</slot>
325+
<slot>pbnFirst_clicked()</slot>
326+
<slot>pbnPrevious_clicked()</slot>
327+
<slot>pbnNext_clicked()</slot>
328+
<slot>pbnLast_clicked()</slot>
329+
<slot>pbnNew_clicked()</slot>
330+
<slot>pbnSave_clicked()</slot>
220331
</slots>
221332
<layoutdefaults spacing="6" margin="11"/>
222333
</UI>

‎src/qgscustomprojectiondialogbase.ui.h

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,39 @@ void QgsCustomProjectionDialogBase::cboProjectionFamily_highlighted( const QStri
5151
{
5252

5353
}
54+
55+
56+
void QgsCustomProjectionDialogBase::pbnFirst_clicked()
57+
{
58+
59+
}
60+
61+
62+
void QgsCustomProjectionDialogBase::pbnPrevious_clicked()
63+
{
64+
65+
}
66+
67+
68+
void QgsCustomProjectionDialogBase::pbnNext_clicked()
69+
{
70+
71+
}
72+
73+
74+
void QgsCustomProjectionDialogBase::pbnLast_clicked()
75+
{
76+
77+
}
78+
79+
80+
void QgsCustomProjectionDialogBase::pbnNew_clicked()
81+
{
82+
83+
}
84+
85+
86+
void QgsCustomProjectionDialogBase::pbnSave_clicked()
87+
{
88+
89+
}

0 commit comments

Comments
 (0)
Please sign in to comment.