2017-04-01 11:05:22 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsanimatedicon.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
2017-03-30 17:54:46 +02:00
|
|
|
|
|
|
|
|
2017-03-19 12:52:35 +01:00
|
|
|
|
|
|
|
class QgsAnimatedIcon : QObject
|
|
|
|
{
|
2021-03-22 21:13:52 +01:00
|
|
|
%Docstring(signature="appended")
|
2017-12-15 10:36:55 -04:00
|
|
|
Animated icon is keeping an animation running if there are listeners connected to frameChanged
|
2017-03-30 17:54:46 +02:00
|
|
|
%End
|
|
|
|
|
2017-03-19 12:52:35 +01:00
|
|
|
%TypeHeaderCode
|
2017-03-30 17:54:46 +02:00
|
|
|
#include "qgsanimatedicon.h"
|
2017-03-19 12:52:35 +01:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-03-30 17:54:46 +02:00
|
|
|
QgsAnimatedIcon( const QString &iconPath = QString(), QObject *parent = 0 );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Create a new animated icon. Optionally, the ``iconPath`` can already be specified.
|
2017-03-30 17:54:46 +02:00
|
|
|
%End
|
2017-03-19 12:52:35 +01:00
|
|
|
|
|
|
|
QString iconPath() const;
|
2017-03-30 17:54:46 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Path to a movie, e.g. animated GIF
|
2017-03-30 17:54:46 +02:00
|
|
|
%End
|
|
|
|
|
2017-03-19 12:52:35 +01:00
|
|
|
void setIconPath( const QString &iconPath );
|
2017-03-30 17:54:46 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Path to a movie, e.g. animated GIF
|
2017-03-30 17:54:46 +02:00
|
|
|
%End
|
|
|
|
|
2017-03-19 12:52:35 +01:00
|
|
|
QIcon icon() const;
|
2017-03-30 17:54:46 +02:00
|
|
|
%Docstring
|
2018-05-26 18:44:30 +10:00
|
|
|
Gets the icons representation in the current frame.
|
2020-06-15 09:04:13 +10:00
|
|
|
This will need to be called repeatedly, whenever a :py:func:`~QgsAnimatedIcon.frameChanged`
|
2017-12-15 10:36:55 -04:00
|
|
|
signal is emitted.
|
2017-03-30 17:54:46 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
|
2017-03-19 12:52:35 +01:00
|
|
|
bool connectFrameChanged( const QObject *receiver, const char *method );
|
2017-03-30 17:54:46 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Connect a slot that will be notified repeatedly whenever a frame changes and which should
|
|
|
|
request the current icon and trigger UI updates.
|
|
|
|
|
|
|
|
Connect to the frame changed signal with this method and not directly. This method
|
|
|
|
makes sure the annimation is started.
|
2017-03-30 17:54:46 +02:00
|
|
|
|
2017-04-02 20:52:50 +10:00
|
|
|
.. versionadded:: 3.0
|
2017-03-30 17:54:46 +02:00
|
|
|
%End
|
|
|
|
|
2017-03-19 12:52:35 +01:00
|
|
|
bool disconnectFrameChanged( const QObject *receiver, const char *method );
|
2017-03-30 17:54:46 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Convenience function to disconnect the same style that the frame change connection was established.
|
|
|
|
|
2017-04-02 20:52:50 +10:00
|
|
|
.. versionadded:: 3.0
|
2017-03-30 17:54:46 +02:00
|
|
|
%End
|
|
|
|
|
2017-03-19 12:52:35 +01:00
|
|
|
|
|
|
|
int width() const;
|
2017-03-30 17:54:46 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
The native width of the icon.
|
|
|
|
|
2017-04-02 20:52:50 +10:00
|
|
|
.. versionadded:: 3.0
|
2017-03-30 17:54:46 +02:00
|
|
|
%End
|
|
|
|
|
2017-03-19 12:52:35 +01:00
|
|
|
int height() const;
|
2017-03-30 17:54:46 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
The native height of the icon.
|
|
|
|
|
2017-04-02 20:52:50 +10:00
|
|
|
.. versionadded:: 3.0
|
2017-03-30 17:54:46 +02:00
|
|
|
%End
|
|
|
|
|
2017-03-19 12:52:35 +01:00
|
|
|
signals:
|
2017-03-30 17:54:46 +02:00
|
|
|
|
2017-03-19 12:52:35 +01:00
|
|
|
void frameChanged();
|
2017-03-30 17:54:46 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Emitted when the icon changed. You should use connectFrameChanged instead of connecting
|
|
|
|
to this signal directly.
|
|
|
|
Connecting to this signal directly will cause the animation not to be started.
|
2017-03-30 17:54:46 +02:00
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`connectFrameChanged`
|
2017-03-30 17:54:46 +02:00
|
|
|
%End
|
|
|
|
|
2017-03-19 12:52:35 +01:00
|
|
|
};
|
2017-03-30 17:54:46 +02:00
|
|
|
|
2017-04-01 11:05:22 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsanimatedicon.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|