mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Problems: Polygon outlines are not drawn. This was checked twice and no cause was found. Projections do not work in all circumstances Note that both the proj4 library and sqlite3 are now required. The build system has not been modified to test for these yet. Qt 3.3.x is required to build this source tree. Make sure to increment the EXTRA_VERSION in configure.in when committing changes. Make sure to update the Changelog with each commit git-svn-id: http://svn.osgeo.org/qgis/trunk@3112 c8812cc2-4d05-0410-92ff-de0c093fc19c
96 lines
2.4 KiB
C++
96 lines
2.4 KiB
C++
#include "qgsprojectionselectorplugin.h"
|
|
#include "../widgets/projectionselector/qgsprojectionselector.h"
|
|
|
|
static const char *projectionselector_pixmap[] = {
|
|
"22 22 8 1",
|
|
" c Gray100",
|
|
". c Gray97",
|
|
"X c #4f504f",
|
|
"o c #00007f",
|
|
"O c Gray0",
|
|
"+ c none",
|
|
"@ c Gray0",
|
|
"# c Gray0",
|
|
"++++++++++++++++++++++",
|
|
"++++++++++++++++++++++",
|
|
"++++++++++++++++++++++",
|
|
"++++++++++++++++++++++",
|
|
"+OOOOOOOOOOOOOOOOOOOO+",
|
|
"OOXXXXXXXXXXXXXXXXXXOO",
|
|
"OXX. O",
|
|
"OX. ooooooooo O",
|
|
"OX. o o .O",
|
|
"OX o o O",
|
|
"OX o o O",
|
|
"O o o O",
|
|
"OX o o o O",
|
|
"OX o o o O",
|
|
"OX o o O",
|
|
"OX ooooooooo o O",
|
|
"OO..................OO",
|
|
"+OOOOOOOOOOOOOOOOOOOO+",
|
|
"++++++++++++++++++++++",
|
|
"++++++++++++++++++++++",
|
|
"++++++++++++++++++++++",
|
|
"++++++++++++++++++++++"
|
|
};
|
|
|
|
QgsProjectionSelectorPlugin::QgsProjectionSelectorPlugin()
|
|
{
|
|
}
|
|
|
|
QStringList QgsProjectionSelectorPlugin::keys() const
|
|
{
|
|
QStringList list;
|
|
list << "QgsProjectionSelector";
|
|
return list;
|
|
}
|
|
|
|
QWidget* QgsProjectionSelectorPlugin::create( const QString &key, QWidget* parent, const char* name )
|
|
{
|
|
if ( key == "QgsProjectionSelector" )
|
|
return new QgsProjectionSelector( parent, name );
|
|
return 0;
|
|
}
|
|
|
|
QString QgsProjectionSelectorPlugin::group( const QString& feature ) const
|
|
{
|
|
if ( feature == "QgsProjectionSelector" )
|
|
return "QGIS";
|
|
return QString::null;
|
|
}
|
|
|
|
QIconSet QgsProjectionSelectorPlugin::iconSet( const QString& ) const
|
|
{
|
|
return QIconSet( QPixmap( projectionselector_pixmap ) );
|
|
}
|
|
|
|
QString QgsProjectionSelectorPlugin::includeFile( const QString& feature ) const
|
|
{
|
|
if ( feature == "QgsProjectionSelector" )
|
|
return "qgsprojectionselector.h";
|
|
return QString::null;
|
|
}
|
|
|
|
QString QgsProjectionSelectorPlugin::toolTip( const QString& feature ) const
|
|
{
|
|
if ( feature == "QgsProjectionSelector" )
|
|
return "QGIS Projection Selector Widget";
|
|
return QString::null;
|
|
}
|
|
|
|
QString QgsProjectionSelectorPlugin::whatsThis( const QString& feature ) const
|
|
{
|
|
if ( feature == "QgsProjectionSelector" )
|
|
return "A widget to choose a projection name from a list";
|
|
return QString::null;
|
|
}
|
|
|
|
bool QgsProjectionSelectorPlugin::isContainer( const QString& ) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
|
|
Q_EXPORT_PLUGIN( QgsProjectionSelectorPlugin )
|