-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4193 from nyalldawson/proj_widget_api
Rename projection selection widgets and clean up API
- Loading branch information
Showing
41 changed files
with
394 additions
and
499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
class QgsProjectionSelectionDialog : QDialog //, private Ui::QgsGenericProjectionSelectorBase | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsprojectionselectiondialog.h> | ||
%End | ||
|
||
public: | ||
/** | ||
* Constructor | ||
*/ | ||
QgsProjectionSelectionDialog( QWidget *parent /TransferThis/ = 0, | ||
const Qt::WindowFlags& fl = QgisGui::ModalDialogFlags ); | ||
|
||
//! Destructor | ||
~QgsProjectionSelectionDialog(); | ||
|
||
QgsCoordinateReferenceSystem crs() const; | ||
|
||
void setMessage( const QString& message ); | ||
|
||
public slots: | ||
|
||
|
||
void setCrs( const QgsCoordinateReferenceSystem& crs ); | ||
|
||
/** | ||
* \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 ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
class QgsProjectionSelectionTreeWidget : QWidget | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsprojectionselectiontreewidget.h> | ||
%End | ||
|
||
public: | ||
QgsProjectionSelectionTreeWidget( QWidget* parent /TransferThis/ ); | ||
|
||
~QgsProjectionSelectionTreeWidget(); | ||
|
||
QgsCoordinateReferenceSystem crs() const; | ||
|
||
public slots: | ||
|
||
void setCrs( const QgsCoordinateReferenceSystem& crs ); | ||
void setOgcWmsCrsFilter( const QSet<QString>& crsFilter ); | ||
void pushProjectionToFront(); | ||
|
||
signals: | ||
|
||
void crsSelected(); | ||
void initialized(); | ||
void projectionDoubleClicked(); | ||
|
||
protected: | ||
void showEvent( QShowEvent * event ); | ||
|
||
void resizeEvent( QResizeEvent * event ); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.