Skip to content
Permalink
Browse files
[FEATURE] add second browser
  • Loading branch information
jef-n committed Jan 14, 2013
1 parent b288b3a commit fcb5045571c65773549a0eb2fc1334ad4f6aaaca
Showing with 11 additions and 5 deletions.
  1. +7 −2 src/app/qgisapp.cpp
  2. +1 −0 src/app/qgisapp.h
  3. +2 −2 src/app/qgsbrowserdockwidget.cpp
  4. +1 −1 src/app/qgsbrowserdockwidget.h
@@ -525,12 +525,17 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
mSnappingDialog = new QgsSnappingDialog( this, mMapCanvas );
mSnappingDialog->setObjectName( "SnappingOption" );

mBrowserWidget = new QgsBrowserDockWidget( this );
mBrowserWidget = new QgsBrowserDockWidget( tr( "Browser" ), this );
mBrowserWidget->setObjectName( "Browser" );
addDockWidget( Qt::LeftDockWidgetArea, mBrowserWidget );
mBrowserWidget->hide();

// create the GPS tool on starting QGIS - this is like the Browser
mBrowserWidget2 = new QgsBrowserDockWidget( tr( "Browser (2)" ), this );
mBrowserWidget2->setObjectName( "Browser2" );
addDockWidget( Qt::LeftDockWidgetArea, mBrowserWidget2 );
mBrowserWidget2->hide();

// create the GPS tool on starting QGIS - this is like the browser
mpGpsWidget = new QgsGPSInformationWidget( mMapCanvas );
//create the dock widget
mpGpsDock = new QDockWidget( tr( "GPS Information" ), this );
@@ -1304,6 +1304,7 @@ class QgisApp : public QMainWindow, private Ui::MainWindow
QgsUndoWidget* mUndoWidget;

QgsBrowserDockWidget* mBrowserWidget;
QgsBrowserDockWidget* mBrowserWidget2;

QgsSnappingDialog* mSnappingDialog;

@@ -213,12 +213,12 @@ class QgsBrowserTreeFilterProxyModel : public QSortFilterProxyModel
}

};
QgsBrowserDockWidget::QgsBrowserDockWidget( QWidget * parent ) :
QgsBrowserDockWidget::QgsBrowserDockWidget( QString name, QWidget * parent ) :
QDockWidget( parent ), mModel( NULL ), mProxyModel( NULL )
{
setupUi( this );

setWindowTitle( tr( "Browser" ) );
setWindowTitle( name );

mBrowserView = new QgsBrowserTreeView( this );
mLayoutBrowser->addWidget( mBrowserView );
@@ -29,7 +29,7 @@ class QgsBrowserDockWidget : public QDockWidget, private Ui::QgsBrowserDockWidge
{
Q_OBJECT
public:
explicit QgsBrowserDockWidget( QWidget *parent = 0 );
explicit QgsBrowserDockWidget( QString name, QWidget *parent = 0 );

signals:

0 comments on commit fcb5045

Please sign in to comment.