mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
111 lines
3.3 KiB
Plaintext
111 lines
3.3 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgsscalevisibilitydialog.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
class QgsScaleVisibilityDialog : QDialog
|
|
{
|
|
%Docstring(signature="appended")
|
|
A dialog allowing users to enter a scale visibility range.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsscalevisibilitydialog.h"
|
|
%End
|
|
public:
|
|
explicit QgsScaleVisibilityDialog( QWidget *parent /TransferThis/ = 0, const QString &title = QString(), QgsMapCanvas *mapCanvas = 0 );
|
|
%Docstring
|
|
Constructor for QgsScaleVisibilityDialog, with specified dialog
|
|
``title``. The ``mapCanvas`` argument can be used to associate the
|
|
dialog with a map canvas, allowing use of the current map scale within
|
|
the dialog.
|
|
%End
|
|
|
|
bool hasScaleVisibility() const;
|
|
%Docstring
|
|
Returns ``True`` if scale based visibility is enabled.
|
|
%End
|
|
|
|
double minimumScale() const;
|
|
%Docstring
|
|
Returns the selected minimum scale, or 0 if minimum scale is not set.
|
|
The scale value indicates the scale denominator, e.g. 1000.0 for a
|
|
1:1000 map.
|
|
|
|
.. seealso:: :py:func:`maximumScale`
|
|
|
|
.. seealso:: :py:func:`setMinimumScale`
|
|
%End
|
|
|
|
double maximumScale() const;
|
|
%Docstring
|
|
Returns the selected maximum scale, or 0 if maximum scale is not set.
|
|
The scale value indicates the scale denominator, e.g. 1000.0 for a
|
|
1:1000 map.
|
|
|
|
.. seealso:: :py:func:`minimumScale`
|
|
|
|
.. seealso:: :py:func:`setMaximumScale`
|
|
%End
|
|
|
|
public slots:
|
|
|
|
void setScaleVisiblity( bool hasScaleVisibility ) /Deprecated="Since 3.40. Use setScaleVisibility()."/;
|
|
%Docstring
|
|
Set whether scale based visibility is enabled.
|
|
|
|
.. seealso:: :py:func:`hasScaleVisibility`
|
|
|
|
.. deprecated:: 3.40
|
|
|
|
Use :py:func:`~QgsScaleVisibilityDialog.setScaleVisibility`.
|
|
%End
|
|
|
|
void setScaleVisibility( bool hasScaleVisibility );
|
|
%Docstring
|
|
Set whether scale based visibility is enabled.
|
|
|
|
.. seealso:: :py:func:`hasScaleVisibility`
|
|
|
|
.. versionadded:: 3.38
|
|
%End
|
|
|
|
void setMinimumScale( double scale );
|
|
%Docstring
|
|
Set the minimum ``scale``, or 0 to indicate the minimum is not set. The
|
|
scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000
|
|
map.
|
|
|
|
.. seealso:: :py:func:`minimumScale`
|
|
|
|
.. seealso:: :py:func:`setMaximumScale`
|
|
%End
|
|
|
|
void setMaximumScale( double scale );
|
|
%Docstring
|
|
Set the maximum ``scale``, or 0 to indicate the minimum is not set. The
|
|
scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000
|
|
map.
|
|
|
|
.. seealso:: :py:func:`maximumScale`
|
|
|
|
.. seealso:: :py:func:`setMinimumScale`
|
|
%End
|
|
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgsscalevisibilitydialog.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|