Skip to content
Permalink
Browse files

sipify gui part n

  • Loading branch information
3nids committed Jun 9, 2017
1 parent f677eaf commit 532b9a142ad6f70b5157d2435eaaefaf62665eb4
Showing with 2,278 additions and 1,049 deletions.
  1. +0 −26 python/auto_sip.blacklist
  2. +90 −21 python/gui/qgsprojectionselectiondialog.sip
  3. +103 −4 python/gui/qgsprojectionselectiontreewidget.sip
  4. +81 −55 python/gui/qgsprojectionselectionwidget.sip
  5. +51 −6 python/gui/qgspropertyassistantwidget.sip
  6. +63 −26 python/gui/qgsquerybuilder.sip
  7. +129 −73 python/gui/qgsrasterformatsaveoptionswidget.sip
  8. +91 −8 python/gui/qgsrasterlayersaveasdialog.sip
  9. +48 −12 python/gui/qgsrasterpyramidsoptionswidget.sip
  10. +207 −4 python/gui/qgsrubberband.sip
  11. +52 −3 python/gui/qgsscrollarea.sip
  12. +50 −26 python/gui/qgssearchquerybuilder.sip
  13. +212 −147 python/gui/qgsshortcutsmanager.sip
  14. +26 −6 python/gui/qgsslider.sip
  15. +65 −22 python/gui/qgssourceselectdialog.sip
  16. +55 −22 python/gui/qgssublayersdialog.sip
  17. +68 −44 python/gui/qgssubstitutionlistwidget.sip
  18. +43 −15 python/gui/qgstablewidgetbase.sip
  19. +41 −25 python/gui/qgstablewidgetitem.sip
  20. +69 −65 python/gui/qgstabwidget.sip
  21. +34 −12 python/gui/qgstaskmanagerwidget.sip
  22. +131 −86 python/gui/qgstextformatwidget.sip
  23. +74 −45 python/gui/qgstextpreview.sip
  24. +129 −79 python/gui/qgstreewidgetitem.sip
  25. +144 −100 python/gui/qgsunitselectionwidget.sip
  26. +36 −14 python/gui/qgsuserinputdockwidget.sip
  27. +95 −53 python/gui/qgsvariableeditorwidget.sip
  28. +8 −1 src/gui/qgspropertyassistantwidget.h
  29. +24 −24 src/gui/qgsrasterformatsaveoptionswidget.h
  30. +6 −3 src/gui/qgsrasterlayersaveasdialog.h
  31. +5 −6 src/gui/qgsrasterpyramidsoptionswidget.h
  32. +4 −0 src/gui/qgsscrollarea.h
  33. +2 −1 src/gui/qgssearchquerybuilder.h
  34. +2 −1 src/gui/qgsshortcutsmanager.h
  35. +8 −4 src/gui/qgssublayersdialog.h
  36. +6 −2 src/gui/qgstablewidgetbase.h
  37. +5 −0 src/gui/qgstaskmanagerwidget.h
  38. +1 −1 src/gui/qgsunitselectionwidget.h
  39. +4 −0 src/gui/qgsvariableeditorwidget.h
  40. +15 −6 src/ui/{qgstablewidgetbase.ui → qgstablewidgetuibase.ui}
  41. +1 −1 tests/src/python/acceptable_missing_doc.py
@@ -41,32 +41,6 @@ core/composer/qgspaperitem.sip
core/composer/qgsscalebarstyle.sip
core/composer/qgssingleboxscalebarstyle.sip
core/composer/qgsticksscalebarstyle.sip
gui/qgsprojectionselectiondialog.sip
gui/qgsprojectionselectiontreewidget.sip
gui/qgsprojectionselectionwidget.sip
gui/qgspropertyassistantwidget.sip
gui/qgsquerybuilder.sip
gui/qgsrasterformatsaveoptionswidget.sip
gui/qgsrasterlayersaveasdialog.sip
gui/qgsrasterpyramidsoptionswidget.sip
gui/qgsrubberband.sip
gui/qgsscrollarea.sip
gui/qgssearchquerybuilder.sip
gui/qgsshortcutsmanager.sip
gui/qgsslider.sip
gui/qgssourceselectdialog.sip
gui/qgssublayersdialog.sip
gui/qgssubstitutionlistwidget.sip
gui/qgstablewidgetbase.sip
gui/qgstabwidget.sip
gui/qgstablewidgetitem.sip
gui/qgstaskmanagerwidget.sip
gui/qgstextformatwidget.sip
gui/qgstextpreview.sip
gui/qgstreewidgetitem.sip
gui/qgsunitselectionwidget.sip
gui/qgsuserinputdockwidget.sip
gui/qgsvariableeditorwidget.sip
gui/attributetable/qgsattributetabledelegate.sip
gui/attributetable/qgsattributetablefiltermodel.sip
gui/attributetable/qgsattributetablemodel.sip
@@ -1,43 +1,112 @@
class QgsProjectionSelectionDialog : QDialog //, private Ui::QgsGenericProjectionSelectorBase
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsprojectionselectiondialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/





class QgsProjectionSelectionDialog : QDialog
{
%TypeHeaderCode
#include <qgsprojectionselectiondialog.h>
%Docstring
A generic dialog to prompt the user for a Coordinate Reference System.

Typically you will use this when you want to prompt the user for
a coordinate system identifier e.g. from a plugin you might do this
to get an epsg code:
\code
QgsProjectionSelectionDialog mySelector( mQGisIface->mainWindow() );
mySelector.setCrs( crs );
if ( mySelector.exec() )
{
mCrs = mySelector.crs();
}
\endcode

If you wish to embed the projection selector into an existing dialog
the you probably want to look at QgsProjectionSelectionWidget instead.
.. versionadded:: 3.0
%End

%TypeHeaderCode
#include "qgsprojectionselectiondialog.h"
%End
public:
/**
* Constructor
*/

QgsProjectionSelectionDialog( QWidget *parent /TransferThis/ = 0,
const Qt::WindowFlags &fl = QgsGuiUtils::ModalDialogFlags );
Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
%Docstring
Constructor for QgsProjectionSelectionDialog.
%End


//! Destructor
~QgsProjectionSelectionDialog();

QgsCoordinateReferenceSystem crs() const;
%Docstring
Returns the CRS currently selected in the widget.
.. versionadded:: 3.0
.. seealso:: setCrs()
:rtype: QgsCoordinateReferenceSystem
%End

void setMessage( const QString &message );
%Docstring
Sets a ``message`` to show in the dialog. If an empty string is
passed, the message will be a generic
'define the CRS for this layer'.
%End

void setShowNoProjection( bool show );
%Docstring
Sets whether a "no/invalid" projection option should be shown. If this
option is selected, calling crs() will return an invalid QgsCoordinateReferenceSystem.
.. seealso:: showNoProjection()
.. versionadded:: 3.0
%End

bool showNoProjection() const;
%Docstring
Returns whether the "no/invalid" projection option is shown. If this
option is selected, calling crs() will return an invalid QgsCoordinateReferenceSystem.
.. versionadded:: 3.0
.. seealso:: setShowNoProjection()
:rtype: bool
%End

public slots:


void setCrs( const QgsCoordinateReferenceSystem &crs );
%Docstring
Sets the initial ``crs`` to show within the dialog.
.. versionadded:: 3.0
.. seealso:: crs()
%End

/**
* \brief filters this dialog by the given CRSs
*
* Sets this dialog to filter the available projections to those listed
* by the given Coordinate Reference Systems.
*
* \param crsFilter a list of OGC Coordinate Reference Systems to filter the
* list of projections by. This is useful in (e.g.) WMS situations
* where you just want to offer what the WMS server can support.
*
* \warning This function's behavior is undefined if it is called after the dialog is shown.
*/
void setOgcWmsCrsFilter( const QSet<QString> &crsFilter );
%Docstring
filters this dialog by the given CRSs

Sets this dialog to filter the available projections to those listed
by the given Coordinate Reference Systems.

\param crsFilter a list of OGC Coordinate Reference Systems to filter the
list of projections by. This is useful in (e.g.) WMS situations
where you just want to offer what the WMS server can support.

\warning This function's behavior is undefined if it is called after the dialog is shown.
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsprojectionselectiondialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
@@ -1,37 +1,136 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsprojectionselectiontreewidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/






class QgsProjectionSelectionTreeWidget : QWidget
{
%TypeHeaderCode
#include <qgsprojectionselectiontreewidget.h>
%Docstring
A widget for selecting a coordinate reference system from a tree.

This widget implements a tree view of projections, as seen in the
QgsProjectionSelectionDialog dialog. In most cases it is more
suitable to use the compact QgsProjectionSelectionWidget widget.

.. seealso:: QgsProjectionSelectionDialog.
.. seealso:: QgsProjectionSelectionWidget
.. versionadded:: 3.0
%End

%TypeHeaderCode
#include "qgsprojectionselectiontreewidget.h"
%End
public:

QgsProjectionSelectionTreeWidget( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsProjectionSelectionTreeWidget.
%End

~QgsProjectionSelectionTreeWidget();

QgsCoordinateReferenceSystem crs() const;
%Docstring
Returns the CRS currently selected in the widget.
.. versionadded:: 3.0
.. seealso:: setCrs()
:rtype: QgsCoordinateReferenceSystem
%End

void setShowNoProjection( bool show );
%Docstring
Sets whether a "no/invalid" projection option should be shown. If this
option is selected, calling crs() will return an invalid QgsCoordinateReferenceSystem.
.. seealso:: showNoProjection()
.. versionadded:: 3.0
%End

bool showNoProjection() const;
%Docstring
Returns whether the "no/invalid" projection option is shown. If this
option is selected, calling crs() will return an invalid QgsCoordinateReferenceSystem.
.. versionadded:: 3.0
.. seealso:: setShowNoProjection()
:rtype: bool
%End

bool hasValidSelection() const;
%Docstring
Returns true if the current selection in the widget is a valid choice. Valid
selections include any projection and also the "no/invalid projection" option
(if setShowNoProjection() was called). Invalid selections are the group
headers (such as "Geographic Coordinate Systems"
:rtype: bool
%End

public slots:

void setCrs( const QgsCoordinateReferenceSystem &crs );
%Docstring
Sets the initial ``crs`` to show within the dialog.
.. versionadded:: 3.0
.. seealso:: crs()
%End

void setOgcWmsCrsFilter( const QSet<QString> &crsFilter );
%Docstring
filters this widget by the given CRSs

Sets this widget to filter the available projections to those listed
by the given Coordinate Reference Systems.

\param crsFilter a list of OGC Coordinate Reference Systems to filter the
list of projections by. This is useful in (e.g.) WMS situations
where you just want to offer what the WMS server can support.

\warning This function's behavior is undefined if it is called after the widget is shown.
%End

void pushProjectionToFront();
%Docstring
Marks the current selected projection for push to front of recent projections list.
%End

signals:

void crsSelected();
%Docstring
Emitted when a projection is selected in the widget.
%End

void initialized();
%Docstring
Notifies others that the widget is now fully initialized, including deferred selection of projection.
.. versionadded:: 2.4
%End

void projectionDoubleClicked();
%Docstring
Emitted when a projection is double clicked in the list.
.. versionadded:: 2.14
%End

protected:
void showEvent( QShowEvent *event );
virtual void showEvent( QShowEvent *event );


virtual void resizeEvent( QResizeEvent *event );


void resizeEvent( QResizeEvent *event );
};

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsprojectionselectiontreewidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/

0 comments on commit 532b9a1

Please sign in to comment.
You can’t perform that action at this time.