File tree Expand file tree Collapse file tree 4 files changed +73
-0
lines changed Expand file tree Collapse file tree 4 files changed +73
-0
lines changed Original file line number Diff line number Diff line change 57
57
%Include qgsrect.sip
58
58
%Include qgsrendercontext.sip
59
59
%Include qgsrenderer.sip
60
+ %Include qgsrunprocess.sip
60
61
%Include qgsscalecalculator.sip
61
62
%Include qgssinglesymbolrenderer.sip
62
63
%Include qgssnapper.sip
Original file line number Diff line number Diff line change
1
+
2
+ /** \ingroup core
3
+ * A class that executes an external program/script.
4
+ * It can optionally capture the standard output and error from the
5
+ * process and displays them in a dialog box.
6
+ */
7
+ class QgsRunProcess: QObject
8
+ {
9
+ %TypeHeaderCode
10
+ #include <qgsrunprocess.h>
11
+ %End
12
+
13
+ public:
14
+ // This class deletes itself, so to ensure that it is only created
15
+ // using new, the Named Consturctor Idiom is used, and one needs to
16
+ // use the create() static function to get an instance of this class.
17
+
18
+ // The action argument contains string with the command.
19
+ // If capture is true, the standard output and error from the process
20
+ // will be sent to QgsMessageOuptut - usually a dialog box.
21
+ static QgsRunProcess* create( const QString& action, bool capture );
22
+
23
+ public slots:
24
+ void stdoutAvailable();
25
+ void stderrAvailable();
26
+ void processError( QProcess::ProcessError );
27
+ void processExit( int, QProcess::ExitStatus );
28
+ void dialogGone();
29
+
30
+ private:
31
+ QgsRunProcess( const QString& action, bool capture );
32
+ ~QgsRunProcess();
33
+ };
Original file line number Diff line number Diff line change 15
15
%Include qgsmapcanvasitem.sip
16
16
%Include qgsmapcanvasmap.sip
17
17
%Include qgsmapcanvassnapper.sip
18
+ %Include qgsmaptip.sip
18
19
%Include qgsmaptool.sip
19
20
%Include qgsmaptoolemitpoint.sip
20
21
%Include qgsmaptoolpan.sip
Original file line number Diff line number Diff line change
1
+
2
+ /** \ingroup gui
3
+ * A maptip is a class to display a tip on a map canvas
4
+ * when a mouse is hovered over a feature.
5
+ */
6
+ class QgsMapTip
7
+ {
8
+ %TypeHeaderCode
9
+ #include <qgsmaptip.h>
10
+ %End
11
+
12
+ public:
13
+ /** Default constructor
14
+ */
15
+ QgsMapTip();
16
+ /** Destructor
17
+ */
18
+ virtual ~QgsMapTip();
19
+ /** Show a maptip at a given point on the map canvas
20
+ * @param QgsMapLayer thepLayer - a qgis vector map layer pointer that will
21
+ * be used to provide the attribute data for the map tip.
22
+ * @param QgsPoint theMapPosition - a reference to the position of the cursor
23
+ * in map coordinatess.
24
+ * @param QgsPoint thePixelPosition - a reference to the position of the cursor
25
+ * in pixel coordinates.
26
+ * @param QgsMapCanvas thepMapCanvas - a map canvas on which the tip is drawn
27
+ */
28
+ void showMapTip( QgsMapLayer * thepLayer,
29
+ QgsPoint & theMapPosition,
30
+ QPoint & thePixelPosition,
31
+ QgsMapCanvas *mpMapCanvas );
32
+ /** Clear the current maptip if it exists
33
+ * @param QgsMapCanvas mpMapCanvas - the canvas from which the tip should
34
+ * be cleared.
35
+ */
36
+ void clear( QgsMapCanvas *mpMapCanvas );
37
+
38
+ };
You can’t perform that action at this time.
0 commit comments