|
| 1 | +/************************************************************************ |
| 2 | + * This file has been generated automatically from * |
| 3 | + * * |
| 4 | + * src/gui/qgsexternalresourcewidget.h * |
| 5 | + * * |
| 6 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 7 | + ************************************************************************/ |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
1 | 13 |
|
2 | 14 | class QgsExternalResourceWidget : QWidget
|
3 | 15 | {
|
4 |
| -%TypeHeaderCode |
5 |
| -#include <qgsexternalresourcewidget.h> |
| 16 | +%Docstring |
| 17 | + Widget to display file path with a push button for an "open file" dialog |
| 18 | + It can also be used to display a picture or a web page. |
| 19 | +* |
6 | 20 | %End
|
7 | 21 |
|
| 22 | +%TypeHeaderCode |
| 23 | +#include "qgsexternalresourcewidget.h" |
| 24 | +%End |
8 | 25 | public:
|
9 |
| - |
10 | 26 | enum DocumentViewerContent
|
11 | 27 | {
|
12 | 28 | NoContent,
|
13 | 29 | Image,
|
14 | 30 | Web
|
15 | 31 | };
|
16 | 32 |
|
17 |
| - /** |
18 |
| - * @brief QgsExternalResourceWidget creates a widget with a file widget and a document viewer |
19 |
| - * Both part of the widget are optional. |
20 |
| - * @see QgsFileWidget |
21 |
| - */ |
22 |
| - explicit QgsExternalResourceWidget( QWidget *parent = 0 ); |
23 |
| - |
24 |
| - /** |
25 |
| - * @brief documentPath returns the path of the current document in the widget |
26 |
| - * @param type determines the type of the returned null variant if the document is not defined yet |
27 |
| - */ |
| 33 | + explicit QgsExternalResourceWidget( QWidget *parent /TransferThis/ = 0 ); |
| 34 | +%Docstring |
| 35 | + QgsExternalResourceWidget creates a widget with a file widget and a document viewer |
| 36 | + Both part of the widget are optional. |
| 37 | + \see QgsFileWidget |
| 38 | +%End |
| 39 | + |
28 | 40 | QVariant documentPath( QVariant::Type type = QVariant::String ) const;
|
29 |
| - void setDocumentPath( const QVariant& documentPath ); |
| 41 | +%Docstring |
| 42 | + documentPath returns the path of the current document in the widget |
| 43 | + \param type determines the type of the returned null variant if the document is not defined yet |
| 44 | + :rtype: QVariant |
| 45 | +%End |
| 46 | + void setDocumentPath( const QVariant &documentPath ); |
30 | 47 |
|
31 |
| - //! access the file widget to allow its configuration |
32 |
| - QgsFileWidget* fileWidget(); |
| 48 | + QgsFileWidget *fileWidget(); |
| 49 | +%Docstring |
| 50 | +access the file widget to allow its configuration |
| 51 | + :rtype: QgsFileWidget |
| 52 | +%End |
33 | 53 |
|
34 |
| - //! returns if the file widget is visible in the widget |
35 | 54 | bool fileWidgetVisible() const;
|
36 |
| - //! set the visiblity of the file widget in the layout |
| 55 | +%Docstring |
| 56 | +returns if the file widget is visible in the widget |
| 57 | + :rtype: bool |
| 58 | +%End |
37 | 59 | void setFileWidgetVisible( bool visible );
|
| 60 | +%Docstring |
| 61 | +set the visiblity of the file widget in the layout |
| 62 | +%End |
38 | 63 |
|
39 |
| - //! returns the type of content used in the document viewer |
40 | 64 | QgsExternalResourceWidget::DocumentViewerContent documentViewerContent() const;
|
41 |
| - //! setDocumentViewerContent defines the type of content to be shown. Widget will be adapted accordingly |
| 65 | +%Docstring |
| 66 | +returns the type of content used in the document viewer |
| 67 | + :rtype: QgsExternalResourceWidget.DocumentViewerContent |
| 68 | +%End |
42 | 69 | void setDocumentViewerContent( QgsExternalResourceWidget::DocumentViewerContent content );
|
| 70 | +%Docstring |
| 71 | +setDocumentViewerContent defines the type of content to be shown. Widget will be adapted accordingly |
| 72 | +%End |
43 | 73 |
|
44 |
| - //! returns the height of the document viewer |
45 | 74 | int documentViewerHeight() const;
|
46 |
| - /** |
47 |
| - * @brief setDocumentViewerWidth set the height of the document viewer. |
48 |
| - * @param height the height. Use 0 for automatic best display. |
49 |
| - */ |
| 75 | +%Docstring |
| 76 | +returns the height of the document viewer |
| 77 | + :rtype: int |
| 78 | +%End |
| 79 | + |
50 | 80 | void setDocumentViewerHeight( int height );
|
51 |
| - //! returns the width of the document viewer |
| 81 | +%Docstring |
| 82 | + setDocumentViewerWidth set the height of the document viewer. |
| 83 | + \param height the height. Use 0 for automatic best display. |
| 84 | +%End |
52 | 85 | int documentViewerWidth() const ;
|
53 |
| - /** |
54 |
| - * @brief setDocumentViewerWidth set the width of the document viewer. |
55 |
| - * @param width the width. Use 0 for automatic best display. |
56 |
| - */ |
| 86 | +%Docstring |
| 87 | +returns the width of the document viewer |
| 88 | + :rtype: int |
| 89 | +%End |
| 90 | + |
57 | 91 | void setDocumentViewerWidth( int width );
|
| 92 | +%Docstring |
| 93 | + setDocumentViewerWidth set the width of the document viewer. |
| 94 | + \param width the width. Use 0 for automatic best display. |
| 95 | +%End |
58 | 96 |
|
59 |
| - //! defines if the widget is readonly |
60 | 97 | void setReadOnly( bool readOnly );
|
| 98 | +%Docstring |
| 99 | +defines if the widget is readonly |
| 100 | +%End |
61 | 101 |
|
62 |
| - /** |
63 |
| - * Configures if paths are handled absolute or relative and if relative, |
64 |
| - * which should be the base path. |
65 |
| - */ |
66 | 102 | QgsFileWidget::RelativeStorage relativeStorage() const;
|
| 103 | +%Docstring |
| 104 | + Configures if paths are handled absolute or relative and if relative, |
| 105 | + which should be the base path. |
| 106 | + :rtype: QgsFileWidget.RelativeStorage |
| 107 | +%End |
67 | 108 |
|
68 |
| - /** |
69 |
| - * Configures if paths are handled absolute or relative and if relative, |
70 |
| - * which should be the base path. |
71 |
| - */ |
72 | 109 | void setRelativeStorage( QgsFileWidget::RelativeStorage relativeStorage );
|
| 110 | +%Docstring |
| 111 | + Configures if paths are handled absolute or relative and if relative, |
| 112 | + which should be the base path. |
| 113 | +%End |
73 | 114 |
|
74 | 115 |
|
75 |
| - /** |
76 |
| - * Configures the base path which should be used if the relativeStorage property |
77 |
| - * is set to QgsFileWidget::RelativeDefaultPath. |
78 |
| - */ |
79 | 116 | QString defaultRoot() const;
|
| 117 | +%Docstring |
| 118 | + Configures the base path which should be used if the relativeStorage property |
| 119 | + is set to QgsFileWidget.RelativeDefaultPath. |
| 120 | + :rtype: str |
| 121 | +%End |
80 | 122 |
|
81 |
| - /** |
82 |
| - * Configures the base path which should be used if the relativeStorage property |
83 |
| - * is set to QgsFileWidget::RelativeDefaultPath. |
84 |
| - */ |
85 |
| - void setDefaultRoot(const QString& defaultRoot); |
| 123 | + void setDefaultRoot( const QString &defaultRoot ); |
| 124 | +%Docstring |
| 125 | + Configures the base path which should be used if the relativeStorage property |
| 126 | + is set to QgsFileWidget.RelativeDefaultPath. |
| 127 | +%End |
86 | 128 |
|
87 | 129 | signals:
|
88 |
| - //! emitteed as soon as the current document changes |
89 |
| - void valueChanged( const QString& ); |
| 130 | + void valueChanged( const QString & ); |
| 131 | +%Docstring |
| 132 | +emitteed as soon as the current document changes |
| 133 | +%End |
| 134 | + |
90 | 135 | };
|
| 136 | + |
| 137 | +/************************************************************************ |
| 138 | + * This file has been generated automatically from * |
| 139 | + * * |
| 140 | + * src/gui/qgsexternalresourcewidget.h * |
| 141 | + * * |
| 142 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 143 | + ************************************************************************/ |
0 commit comments