QGIS/widgets/projectionselector/qgsprojectionselector.h
gsherman a6afcbea35 Fix for compile error. Makefile.am is still not consistent with others.
WIN32 #ifdef has been temporarily removed.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3335 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-05-08 03:46:40 +00:00

70 lines
2.3 KiB
C++

/***************************************************************************
* Copyright (C) 2005 by Tim Sutton *
* tim@linfiniti.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 QGSPROJECTIONSELECTOR_H
#define QGSPROJECTIONSELECTOR_H
#include "qgsprojectionselectorbase.h"
#include <qgis.h>
#include <qstring.h>
#include <qlistview.h>
/**
@author Tim Sutton
*/
class QgsProjectionSelector: public QgsProjectionSelectorBase
{
Q_OBJECT
public:
QgsProjectionSelector( QWidget* parent , const char* name ,WFlags fl =0 );
~QgsProjectionSelector();
//! Populate the proj tree view with user defined projection names...
void getUserProjList();
//! Populate the proj tree view with system projection names...
void getProjList();
void updateProjAndEllipsoidAcronyms(int theSrsid,QString theProj4String);
public slots:
void setSelectedSRSName(QString theSRSName);
QString getSelectedName();
void setSelectedSRSID(long theSRSID);
QString getCurrentProj4String();
long getCurrentSRID(); //posgis style projection identifier
long getCurrentSRSID();//qgis projection identfier
void pbnFind_clicked();
private:
// List view nodes for the tree view of projections
//! User defined projections node
QListViewItem *mUserProjList;
//! GEOGCS node
QListViewItem *mGeoList;
//! PROJCS node
QListViewItem *mProjList;
//! Users custom coordinate system file
QString mCustomCsFile;
//! File name of the sqlite3 database
QString mSrsDatabaseFileName;
//private handler for when user selects a cs
//it will cause wktSelected and sridSelected events to be spawned
void coordinateSystemSelected(QListViewItem*);
signals:
void wktSelected(QString theWKT);
void sridSelected(QString theSRID);
//! Refresh any listening canvases
void refresh();
};
#endif