Skip to content

Commit

Permalink
Remove all previously autoconnected slots from public API
Browse files Browse the repository at this point in the history
These are implementation details only, and should not be
part of the stable API.

We need the flexibility to change these at any stage without
being bound by any API contract.
  • Loading branch information
nyalldawson committed Oct 8, 2017
1 parent 1429f2c commit 7cfd284
Show file tree
Hide file tree
Showing 22 changed files with 137 additions and 331 deletions.
4 changes: 0 additions & 4 deletions python/gui/qgserrordialog.sip
Expand Up @@ -31,10 +31,6 @@ class QgsErrorDialog: QDialog
\param fl widget flags
%End

public slots:
void mDetailPushButton_clicked();
void mDetailCheckBox_stateChanged( int state );

};

/************************************************************************
Expand Down
13 changes: 0 additions & 13 deletions python/gui/qgsnewvectorlayerdialog.sip
Expand Up @@ -60,19 +60,6 @@ Returns the file format for storage
.. seealso:: crs()
%End

protected slots:
void mAddAttributeButton_clicked();
void mRemoveAttributeButton_clicked();
void mFileFormatComboBox_currentIndexChanged( int index );
void mTypeBox_currentIndexChanged( int index );

void showHelp();
%Docstring
Open the associated help
%End
void nameChanged( const QString & );
void selectionChanged();

};

/************************************************************************
Expand Down
55 changes: 3 additions & 52 deletions python/gui/qgsowssourceselect.sip
Expand Up @@ -48,63 +48,15 @@ Constructor
Triggered when the provider's connections need to be refreshed
%End

void mNewButton_clicked();
%Docstring
Opens the create connection dialog to build a new connection
%End
void mEditButton_clicked();
%Docstring
Opens a dialog to edit an existing connection
%End
void mDeleteButton_clicked();
%Docstring
Deletes the selected connection
%End
void mSaveButton_clicked();
%Docstring
Saves connections to the file
%End
void mLoadButton_clicked();
%Docstring
Loads connections from the file
%End

void mConnectButton_clicked();
%Docstring
Connects to the database using the stored connection parameters.
Once connected, available layers are displayed.
%End

void searchFinished();

void mChangeCRSButton_clicked();
%Docstring
Opens the Spatial Reference System dialog.
%End

virtual void mLayersTreeWidget_itemSelectionChanged();
%Docstring
Signaled when a layer selection is changed.
%End

void showStatusMessage( const QString &message );
%Docstring
Set status message to theMessage
%End

protected slots:
void showError( const QString &title, const QString &format, const QString &error );
%Docstring
show whatever error is exposed.
%End

void mConnectionsComboBox_activated( int );
%Docstring
Stores the selected datasource whenerver it is changed
%End

void mAddDefaultButton_clicked();
void showStatusMessage( const QString &message );
%Docstring
Add some default wms servers to the list
Set status message to theMessage
%End

protected:
Expand Down Expand Up @@ -245,7 +197,6 @@ Returns currently selected cache load control




};

/************************************************************************
Expand Down
41 changes: 6 additions & 35 deletions python/gui/qgsquerybuilder.sip
Expand Up @@ -39,34 +39,18 @@ class QgsQueryBuilder : QDialog
virtual void showEvent( QShowEvent *event );


QString sql();
%Docstring
:rtype: str
%End
void setSql( const QString &sqlStatement );

public slots:
virtual void accept();

virtual void reject();

void clear();
void btnEqual_clicked();
void btnLessThan_clicked();
void btnGreaterThan_clicked();
void btnPct_clicked();
void btnIn_clicked();
void btnNotIn_clicked();
void btnLike_clicked();
void btnILike_clicked();
QString sql();
%Docstring
:rtype: str
%End
void setSql( const QString &sqlStatement );
void lstFields_clicked( const QModelIndex &index );
void lstFields_doubleClicked( const QModelIndex &index );
void lstValues_doubleClicked( const QModelIndex &index );
void btnLessEqual_clicked();
void btnGreaterEqual_clicked();
void btnNotEqual_clicked();
void btnAnd_clicked();
void btnNot_clicked();
void btnOr_clicked();

void test();
%Docstring
Expand All @@ -76,19 +60,6 @@ class QgsQueryBuilder : QDialog
statement.
%End

void btnGetAllValues_clicked();
%Docstring
Get all distinct values for the field. Values are inserted
into the value list box
%End

void btnSampleValues_clicked();
%Docstring
Get sample distinct values for the selected field. The sample size is
limited to an arbitrary value (currently set to 25). The values
are inserted into the values list box.
%End

void setDatasourceDescription( const QString &uri );

};
Expand Down
38 changes: 0 additions & 38 deletions python/gui/qgssearchquerybuilder.sip
Expand Up @@ -39,44 +39,6 @@ change search string shown in text field
%End

public slots:
void btnEqual_clicked();
void on_btnOk_clicked();
void btnLessThan_clicked();
void btnGreaterThan_clicked();
void btnLike_clicked();
void btnILike_clicked();
void btnPct_clicked();
void btnIn_clicked();
void btnNotIn_clicked();

void lstFields_doubleClicked( const QModelIndex &index );
void lstValues_doubleClicked( const QModelIndex &index );
void btnLessEqual_clicked();
void btnGreaterEqual_clicked();
void btnNotEqual_clicked();
void btnAnd_clicked();
void btnNot_clicked();
void btnOr_clicked();
void btnClear_clicked();

void btnTest_clicked();
%Docstring
Test the constructed search string to see if it's correct.
The number of rows that would be returned is displayed in a message box.
%End

void btnGetAllValues_clicked();
%Docstring
Get all distinct values for the field. Values are inserted
into the value list box
%End

void btnSampleValues_clicked();
%Docstring
Get sample distinct values for the selected field. The sample size is
limited to an arbitrary value (currently set to 25). The values
are inserted into the values list box.
%End

void saveQuery();
void loadQuery();
Expand Down
4 changes: 0 additions & 4 deletions python/gui/raster/qgsrasterhistogramwidget.sip
Expand Up @@ -60,10 +60,6 @@ Apply a histoActionTriggered() event.
void refreshHistogram();
%Docstring
slot executed when user wishes to refresh raster histogramwidget
%End
void mSaveAsImageButton_clicked();
%Docstring
This slot lets you save the histogram as an image to disk
%End

virtual void apply();
Expand Down
2 changes: 0 additions & 2 deletions python/gui/symbology/qgsgraduatedsymbolrendererwidget.sip
Expand Up @@ -60,8 +60,6 @@ Toggle the link between classes boundaries

void rowsMoved();
void modelDataChanged();
void mSizeUnitWidget_changed();
void methodComboBox_currentIndexChanged( int );
void refreshRanges( bool reset = false );

protected:
Expand Down
3 changes: 1 addition & 2 deletions python/gui/symbology/qgssmartgroupeditordialog.sip
Expand Up @@ -103,9 +103,8 @@ function to create a new ConditionBox and update UI
slot to remove the condition with id int
%End

void buttonBox_accepted();

protected:

};

/************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion python/gui/symbology/qgsstylemanagerdialog.sip
Expand Up @@ -36,7 +36,6 @@ open add color ramp dialog, return color ramp's name if the ramp has been added
void exportItems();
void importItems();

void tabItemType_currentChanged( int );
void populateList();
%Docstring
adds symbols of some type to list
Expand Down Expand Up @@ -228,6 +227,7 @@ sets the text of the item with bold font




};

/************************************************************************
Expand Down

0 comments on commit 7cfd284

Please sign in to comment.