QGIS/python/gui/auto_generated/qgsexternalresourcewidget.sip.in

154 lines
4.5 KiB
Plaintext
Raw Normal View History

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsexternalresourcewidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2016-01-11 16:52:39 +01:00
%ModuleHeaderCode
// fix to allow compilation with sip that for some reason
// doesn't add this include to the file where the code from
// ConvertToSubClassCode goes.
#include <qgsexternalresourcewidget.h>
%End
2016-01-11 16:52:39 +01:00
class QgsExternalResourceWidget : QWidget
{
%Docstring
2017-12-15 10:36:55 -04:00
Widget to display file path with a push button for an "open file" dialog
It can also be used to display a picture or a web page.
*
2016-01-11 16:52:39 +01:00
%End
%TypeHeaderCode
#include "qgsexternalresourcewidget.h"
%End
%ConvertToSubClassCode
if ( qobject_cast<QgsExternalResourceWidget *>( sipCpp ) )
sipType = sipType_QgsExternalResourceWidget;
else
sipType = NULL;
%End
2016-01-11 16:52:39 +01:00
public:
enum DocumentViewerContent
2016-01-11 16:52:39 +01:00
{
NoContent,
Image,
Web
};
explicit QgsExternalResourceWidget( QWidget *parent /TransferThis/ = 0 );
%Docstring
QgsExternalResourceWidget creates a widget with a file widget and a document viewer
2017-12-15 10:36:55 -04:00
Both part of the widget are optional.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:class:`QgsFileWidget`
%End
2016-01-11 16:52:39 +01:00
QVariant documentPath( QVariant::Type type = QVariant::String ) const;
%Docstring
documentPath returns the path of the current document in the widget
2017-12-15 10:36:55 -04:00
2017-12-15 21:36:08 -04:00
:param type: determines the type of the returned null variant if the document is not defined yet
%End
void setDocumentPath( const QVariant &documentPath );
2016-01-11 16:52:39 +01:00
QgsFileWidget *fileWidget();
%Docstring
access the file widget to allow its configuration
%End
2016-01-11 16:52:39 +01:00
bool fileWidgetVisible() const;
%Docstring
returns if the file widget is visible in the widget
%End
void setFileWidgetVisible( bool visible );
%Docstring
set the visiblity of the file widget in the layout
%End
2016-01-11 16:52:39 +01:00
QgsExternalResourceWidget::DocumentViewerContent documentViewerContent() const;
%Docstring
returns the type of content used in the document viewer
%End
2016-01-11 16:52:39 +01:00
void setDocumentViewerContent( QgsExternalResourceWidget::DocumentViewerContent content );
%Docstring
setDocumentViewerContent defines the type of content to be shown. Widget will be adapted accordingly
%End
2016-01-11 16:52:39 +01:00
int documentViewerHeight() const;
%Docstring
returns the height of the document viewer
%End
2016-01-11 16:52:39 +01:00
void setDocumentViewerHeight( int height );
%Docstring
setDocumentViewerWidth set the height of the document viewer.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param height: the height. Use 0 for automatic best display.
%End
int documentViewerWidth() const;
%Docstring
returns the width of the document viewer
%End
2016-01-11 16:52:39 +01:00
void setDocumentViewerWidth( int width );
%Docstring
setDocumentViewerWidth set the width of the document viewer.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param width: the width. Use 0 for automatic best display.
%End
2016-01-11 16:52:39 +01:00
void setReadOnly( bool readOnly );
%Docstring
defines if the widget is readonly
%End
2016-01-11 16:52:39 +01:00
QgsFileWidget::RelativeStorage relativeStorage() const;
%Docstring
2017-12-15 10:36:55 -04:00
Configures if paths are handled absolute or relative and if relative,
which should be the base path.
%End
void setRelativeStorage( QgsFileWidget::RelativeStorage relativeStorage );
%Docstring
2017-12-15 10:36:55 -04:00
Configures if paths are handled absolute or relative and if relative,
which should be the base path.
%End
QString defaultRoot() const;
%Docstring
2017-12-15 10:36:55 -04:00
Configures the base path which should be used if the relativeStorage property
is set to QgsFileWidget.RelativeDefaultPath.
%End
void setDefaultRoot( const QString &defaultRoot );
%Docstring
2017-12-15 10:36:55 -04:00
Configures the base path which should be used if the relativeStorage property
is set to QgsFileWidget.RelativeDefaultPath.
%End
2016-01-11 16:52:39 +01:00
signals:
void valueChanged( const QString & );
%Docstring
emitteed as soon as the current document changes
%End
2016-01-11 16:52:39 +01:00
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsexternalresourcewidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/