-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed QgsMarkerCatalogue::pixmapMarker() to imageMarker() as now it…
… returns QImage. Added Python wrappers for QgsSymbologyUtils and QgsMarkerCatalogue. git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6866 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
wonder
committed
Apr 2, 2007
1 parent
961da91
commit d4bac97
Showing
8 changed files
with
67 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
/** Catalogue of point symbols */ | ||
class QgsMarkerCatalogue /NoDefaultCtors/ | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsmarkercatalogue.h> | ||
%End | ||
|
||
public: | ||
//! Destructor | ||
~QgsMarkerCatalogue(); | ||
|
||
//! Access to canonical QgsMarkerCatalogue instance | ||
static QgsMarkerCatalogue *instance(); | ||
|
||
/**List of available markers*/ | ||
QStringList list(); | ||
|
||
/** Returns pixmap of the marker | ||
* \param fullName full name, e.g. hard:circle, svg:/home/usr1/marker1.svg | ||
*/ | ||
QImage imageMarker (QString fullName, int size, QPen pen, QBrush brush, bool qtBug = true ); | ||
|
||
/** Returns qpicture of the marker | ||
* \param fullName full name, e.g. hard:circle, svg:/home/usr1/marker1.svg | ||
*/ | ||
QPicture pictureMarker (QString fullName, int size, QPen pen, QBrush brush, bool qtBug = true ); | ||
|
||
/** Returns a pixmap given a filename of a svg marker | ||
* NOTE: this method needs to be public static for QgsMarkerDialog::visualizeMarkers */ | ||
static void svgMarker (QPainter * thepPainter, QString name, int size ); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
/**Namespace containing static methods which are useful for the symbology widgets*/ | ||
namespace QgsSymbologyUtils | ||
{ | ||
%TypeHeaderCode | ||
#include <qgssymbologyutils.h> | ||
%End | ||
|
||
QPixmap qString2LinePixmap(QString string); | ||
QPixmap char2LinePixmap(const char* c); | ||
QPixmap qString2PatternPixmap(QString string); | ||
QPixmap char2PatternPixmap(const char* c); | ||
QString penStyle2QString(Qt::PenStyle penstyle); | ||
const char* penStyle2Char(Qt::PenStyle penstyle); | ||
QPixmap penStyle2Pixmap(Qt::PenStyle penstyle); | ||
Qt::PenStyle qString2PenStyle(QString string); | ||
Qt::PenStyle char2PenStyle(const char* c); | ||
QString brushStyle2QString(Qt::BrushStyle brushstyle); | ||
const char* brushStyle2Char(Qt::BrushStyle brushstyle); | ||
QPixmap brushStyle2Pixmap(Qt::BrushStyle brushstyle); | ||
Qt::BrushStyle qString2BrushStyle(QString string); | ||
Qt::BrushStyle char2BrushStyle(const char* c); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters