@@ -51,35 +51,39 @@ QgsNewHttpConnection::QgsNewHttpConnection(
51
51
txtName->setText ( connName );
52
52
txtUrl->setText ( settings.value ( key + " /url" ).toString () );
53
53
54
- if ( mBaseKey == " /Qgis/connections-wms/" )
54
+ cbxIgnoreGetMapURI->setChecked ( settings.value ( key + " /ignoreGetMapURI" , false ).toBool () );
55
+ cbxIgnoreAxisOrientation->setChecked ( settings.value ( key + " /ignoreAxisOrientation" , false ).toBool () );
56
+ cbxInvertAxisOrientation->setChecked ( settings.value ( key + " /invertAxisOrientation" , false ).toBool () );
57
+ cbxIgnoreGetFeatureInfoURI->setChecked ( settings.value ( key + " /ignoreGetFeatureInfoURI" , false ).toBool () );
58
+
59
+ txtUserName->setText ( settings.value ( credentialsKey + " /username" ).toString () );
60
+ txtPassword->setText ( settings.value ( credentialsKey + " /password" ).toString () );
61
+ }
62
+
63
+ if ( mBaseKey != " /Qgis/connections-wms/" )
64
+ {
65
+ if ( mBaseKey == " /Qgis/connections-wcs/" )
55
66
{
56
- cbxIgnoreGetMapURI->setChecked ( settings.value ( key + " /ignoreGetMapURI" , false ).toBool () );
57
- cbxIgnoreGetFeatureInfoURI->setChecked ( settings.value ( key + " /ignoreGetFeatureInfoURI" , false ).toBool () );
58
- cbxIgnoreAxisOrientation->setChecked ( settings.value ( key + " /ignoreAxisOrientation" , false ).toBool () );
59
- cbxInvertAxisOrientation->setChecked ( settings.value ( key + " /invertAxisOrientation" , false ).toBool () );
67
+ cbxIgnoreGetMapURI->setText ( tr ( " Ignore GetCoverage URI reported in capabilities" ) );
68
+ cbxIgnoreAxisOrientation->setText ( tr ( " Ignore axis orientation" ) );
60
69
}
61
70
else
62
71
{
63
72
cbxIgnoreGetMapURI->setVisible ( false );
64
- cbxIgnoreGetFeatureInfoURI->setVisible ( false );
65
73
cbxIgnoreAxisOrientation->setVisible ( false );
66
74
cbxInvertAxisOrientation->setVisible ( false );
75
+ mGroupBox ->layout ()->removeWidget ( cbxIgnoreGetMapURI );
76
+ mGroupBox ->layout ()->removeWidget ( cbxIgnoreAxisOrientation );
77
+ mGroupBox ->layout ()->removeWidget ( cbxInvertAxisOrientation );
67
78
}
68
79
69
- txtUserName->setText ( settings.value ( credentialsKey + " /username" ).toString () );
70
- txtPassword->setText ( settings.value ( credentialsKey + " /password" ).toString () );
71
- }
72
- if ( mBaseKey != " /Qgis/connections-wms/" )
73
- {
74
- cbxIgnoreGetMapURI->setVisible ( false );
75
80
cbxIgnoreGetFeatureInfoURI->setVisible ( false );
76
- mGroupBox ->layout ()->removeWidget ( cbxIgnoreGetMapURI );
77
81
mGroupBox ->layout ()->removeWidget ( cbxIgnoreGetFeatureInfoURI );
82
+
78
83
// Adjust height
79
84
int w = width ();
80
85
adjustSize ();
81
86
resize ( w, height () );
82
-
83
87
}
84
88
85
89
on_txtName_textChanged ( connName );
@@ -134,13 +138,16 @@ void QgsNewHttpConnection::accept()
134
138
}
135
139
136
140
settings.setValue ( key + " /url" , url.toString () );
137
- if ( mBaseKey == " /Qgis/connections-wms/" )
141
+ if ( mBaseKey == " /Qgis/connections-wms/" || mBaseKey == " /Qgis/connections-wcs/ " )
138
142
{
139
143
settings.setValue ( key + " /ignoreGetMapURI" , cbxIgnoreGetMapURI->isChecked () );
140
- settings.setValue ( key + " /ignoreGetFeatureInfoURI" , cbxIgnoreGetFeatureInfoURI->isChecked () );
141
144
settings.setValue ( key + " /ignoreAxisOrientation" , cbxIgnoreAxisOrientation->isChecked () );
142
145
settings.setValue ( key + " /invertAxisOrientation" , cbxInvertAxisOrientation->isChecked () );
143
146
}
147
+ if ( mBaseKey == " /Qgis/connections-wms/" )
148
+ {
149
+ settings.setValue ( key + " /ignoreGetFeatureInfoURI" , cbxIgnoreGetFeatureInfoURI->isChecked () );
150
+ }
144
151
145
152
settings.setValue ( credentialsKey + " /username" , txtUserName->text () );
146
153
settings.setValue ( credentialsKey + " /password" , txtPassword->text () );
0 commit comments