-
-
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 #4659 from boundlessgeo/browser-to-gui
Move QgsBrowserDockWidget from app to gui
- Loading branch information
Showing
10 changed files
with
897 additions
and
529 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsbrowserdockwidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsBrowserDockWidget : QgsDockWidget | ||
{ | ||
%Docstring | ||
The QgsBrowserDockWidget class | ||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsbrowserdockwidget.h" | ||
%End | ||
public: | ||
|
||
explicit QgsBrowserDockWidget( const QString &name, QWidget *parent /TransferThis/ = 0 ); | ||
%Docstring | ||
Constructor for QgsBrowserDockWidget | ||
\param name name of the widget | ||
\param parent parent widget | ||
%End | ||
~QgsBrowserDockWidget(); | ||
void addFavoriteDirectory( const QString &favDir ); | ||
%Docstring | ||
Add directory to favorites | ||
%End | ||
|
||
public slots: | ||
void addLayerAtIndex( const QModelIndex &index ); | ||
%Docstring | ||
Add layer at index | ||
%End | ||
void showContextMenu( QPoint ); | ||
%Docstring | ||
Show context menu | ||
%End | ||
|
||
void addFavorite(); | ||
%Docstring | ||
Add current item to favorite | ||
%End | ||
void addFavoriteDirectory(); | ||
%Docstring | ||
Add directory from file dialog to favorite | ||
%End | ||
void removeFavorite(); | ||
%Docstring | ||
Remove from favorite | ||
%End | ||
|
||
void refresh(); | ||
%Docstring | ||
Refresh browser view model (and view) | ||
%End | ||
|
||
void showFilterWidget( bool visible ); | ||
%Docstring | ||
Show/hide filter widget | ||
%End | ||
void enablePropertiesWidget( bool enable ); | ||
%Docstring | ||
Enable/disable properties widget | ||
%End | ||
void setFilterSyntax( QAction * ); | ||
%Docstring | ||
Set filter syntax | ||
%End | ||
void setCaseSensitive( bool caseSensitive ); | ||
%Docstring | ||
Set filter case sensitivity | ||
%End | ||
void setFilter(); | ||
%Docstring | ||
Apply filter to the model | ||
%End | ||
void updateProjectHome(); | ||
%Docstring | ||
Update project home directory | ||
%End | ||
|
||
void addSelectedLayers(); | ||
%Docstring | ||
Add selected layers to the project | ||
%End | ||
void showProperties(); | ||
%Docstring | ||
Show the layer properties | ||
%End | ||
void hideItem(); | ||
%Docstring | ||
Hide current item | ||
%End | ||
void toggleFastScan(); | ||
%Docstring | ||
Toggle fast scan | ||
%End | ||
|
||
void selectionChanged( const QItemSelection &selected, const QItemSelection &deselected ); | ||
%Docstring | ||
Selection hass changed | ||
%End | ||
void splitterMoved(); | ||
%Docstring | ||
Splitter has been moved | ||
%End | ||
|
||
signals: | ||
void openFile( const QString & ); | ||
%Docstring | ||
Emitted when a file needs to be opened | ||
%End | ||
void handleDropUriList( const QgsMimeDataUtils::UriList & ); | ||
%Docstring | ||
Emitted when drop uri list needs to be handled | ||
%End | ||
|
||
protected: | ||
virtual void showEvent( QShowEvent *event ); | ||
|
||
%Docstring | ||
Show event override | ||
%End | ||
|
||
}; | ||
|
||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsbrowserdockwidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
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.