Skip to content
Permalink
Browse files
Patch from larsl that makes it possible to use the GPS plugin GUI again
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4881 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Feb 19, 2006
1 parent ec18a77 commit 524cf0a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
@@ -38,6 +38,25 @@ QgsGPSPluginGui::QgsGPSPluginGui(const BabelMap& importers,

connect(pbULEditDevices, SIGNAL(clicked()), this, SLOT(openDeviceEditor()));
connect(pbDLEditDevices, SIGNAL(clicked()), this, SLOT(openDeviceEditor()));

// make sure that the OK button is enabled only when it makes sense to
// click it
connect(leGPXFile, SIGNAL(textChanged(const QString&)),
this, SLOT(enableRelevantControls()));
connect(leIMPInput, SIGNAL(textChanged(const QString&)),
this, SLOT(enableRelevantControls()));
connect(leIMPOutput, SIGNAL(textChanged(const QString&)),
this, SLOT(enableRelevantControls()));
connect(leIMPLayer, SIGNAL(textChanged(const QString&)),
this, SLOT(enableRelevantControls()));
connect(leDLOutput, SIGNAL(textChanged(const QString&)),
this, SLOT(enableRelevantControls()));
connect(leDLBasename, SIGNAL(textChanged(const QString&)),
this, SLOT(enableRelevantControls()));
connect(cmbULLayer, SIGNAL(textChanged(QString)),
this, SLOT(enableRelevantControls()));
connect(tabWidget, SIGNAL(currentChanged(int)),
this, SLOT(enableRelevantControls()));
}
QgsGPSPluginGui::~QgsGPSPluginGui()
{
@@ -45,6 +45,7 @@ public slots:

void openDeviceEditor();
void devicesUpdated();
void enableRelevantControls();

void on_pbnGPXSelectFile_clicked();

@@ -55,11 +56,9 @@ public slots:

void on_pbnCancel_clicked();
void on_pbnOK_clicked();

private:

void enableRelevantControls();

void populateDeviceComboBox();
void populateULLayerComboBox();
void populateIMPBabelFormats();

0 comments on commit 524cf0a

Please sign in to comment.