Skip to content

Commit

Permalink
Patch from larsl that makes it possible to use the GPS plugin GUI again
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@4881 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Feb 19, 2006
1 parent 38abcd7 commit c63eb20
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
19 changes: 19 additions & 0 deletions src/plugins/gps_importer/qgsgpsplugingui.cpp
Expand Up @@ -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()
{
Expand Down
5 changes: 2 additions & 3 deletions src/plugins/gps_importer/qgsgpsplugingui.h
Expand Up @@ -45,6 +45,7 @@ public slots:

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

void on_pbnGPXSelectFile_clicked();

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

void on_pbnCancel_clicked();
void on_pbnOK_clicked();

private:

void enableRelevantControls();

void populateDeviceComboBox();
void populateULLayerComboBox();
void populateIMPBabelFormats();
Expand Down

0 comments on commit c63eb20

Please sign in to comment.