mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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 )
|