Skip to content

Commit 0e1a037

Browse files
committed
Rearranging a bit the DQ GUI.
1 parent 2d5606d commit 0e1a037

File tree

3 files changed

+23
-26
lines changed

3 files changed

+23
-26
lines changed

app/scripts/controller/OrthoQualityController.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,12 @@
6060
this.listenTo(Communicator.mediator, "selection:changed", this.onSelectionChange);
6161
this.listenTo(Communicator.mediator, "selection:bbox:changed", this.onBBoxChange);
6262
this.listenTo(Communicator.mediator, "dialog:open:orthoQuality", this.onOrthoQualityOpen);
63-
this.listenTo(Communicator.mediator, "dialog:open:orthoQualitySelection", this.onOthroQualitySelectionOpen);
63+
this.listenTo(Communicator.mediator, "dialog:open:orthoQualitySelection", this.onOrthoQualitySelectionOpen);
6464
this.listenTo(Communicator.mediator, "dialog:close:orthoQualitySelection", this.onOrthoQualitySelectionClose);
6565
this.listenTo(Communicator.mediator, "dialog:toggle:orthoQualitySelection", this.onOrthoQualitySelectionToggle);
6666

6767
// instantiate component's view
6868
this.view = new qs.OrthoQualitySelectionView({model:this.model});
69-
console.log(" ** this.view="+this.view);
7069
},
7170

7271
// event handlers ...
@@ -123,7 +122,6 @@
123122

124123
onOrthoQualityOpen: function (toOpen)
125124
{
126-
console.log("onOrthoQualityOpen"+toOpen);
127125
if(toOpen){
128126
App.viewContent.show(new v.OrthoQualityView({model:this.model}));
129127
}
@@ -143,12 +141,11 @@
143141
}
144142
},
145143

146-
onOrthoQualitySelectionToggle: function (event)
147-
{
148-
if (this.isOrthoQualitySelectionClosed() ) {
149-
App.viewContent.show(this.view);
144+
onOrthoQualitySelectionToggle: function (event_) {
145+
if ( this.isOrthoQualitySelectionClosed() ) {
146+
this.onOrthoQualitySelectionOpen(event_);
150147
} else {
151-
this.view.close();
148+
this.onOrthoQualitySelectionClose(event_);
152149
}
153150
}
154151

app/scripts/views/OrthoQualityView.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
function( Backbone, Communicator, globals, m, OrthoQualityTmpl,
2929
SelectCoverageListItemTmpl, CoverageInfoTmpl,CoverageDownloadPostTmpl) {
3030

31-
//var qtmpUrl = "http://dream.eox.at/q1/pq.html";
32-
//var qtmpUrl = "http://127.0.0.1/qss/index.html";
33-
3431
function getQUrl(key) {
3532
var q_options = globals.objects.get('orthoQualityConfig');
3633
return q_options[key];
@@ -52,8 +49,8 @@
5249
events: {
5350
//"click #btn-select-all-coverages": "onSelectAllCoveragesClicked",
5451
//"click #btn-invert-coverage-selection": "onInvertCoverageSelectionClicked",
55-
"click #btn-refresh-list": "onRefreshClick",
56-
"click #btn-modify-selection": "onModifyClick",
52+
"click #btn-refresh-dq-list": "onRefreshClick",
53+
"click #btn-modify-dq-selection": "onModifyClick",
5754
//"click #btn-start-download": "onStartDownloadClicked"
5855
},
5956

@@ -118,15 +115,15 @@
118115
},
119116

120117
onRefreshClick: function () {
121-
Communicator.mediator.trigger("dialog:open:orthoQuality", false);
122-
Communicator.mediator.trigger("dialog:open:orthoQualitySelection", true);
118+
Communicator.mediator.trigger("dialog:open:orthoQuality", false);
119+
Communicator.mediator.trigger("dialog:open:orthoQuality", true);
123120
},
124121

125122
onModifyClick: function () {
126-
Communicator.mediator.trigger("dialog:open:orthoQuality", false);
123+
Communicator.mediator.trigger("dialog:open:orthoQuality", false);
127124
this.close();
128-
Communicator.mediator.trigger("dialog:open:orthoQualitySelection");
129-
},
125+
Communicator.mediator.trigger("dialog:open:orthoQualitySelection");
126+
},
130127

131128
onSelectAllCoveragesClicked: function() {
132129
// select all coverages

app/templates/OrthoQuality.hbs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
<p>
1919
resolution:
2020
<select class="input-small" id="select-resolution" title="Resolution for the Orthrectify process - should match that of the raw input image.">
21-
<option value="20">20</option>
22-
<option value="10">10</option>
23-
<option value="5" selected>5</option>
24-
<option value="2.5">2.5</option>
21+
<option value="20">20.0&nbsp;m</option>
22+
<option value="10">10.0&nbsp;m</option>
23+
<option value="5" selected>&nbsp;5.0&nbsp;m</option>
24+
<option value="2.5">&nbsp;2.5&nbsp;m</option>
2525
</select>
2626
&nbsp;&nbsp;projection:
27-
<select class="input-medium" id="select-output-crs" title="Select the CRS for orthorectification.">
27+
<select class="input-medium" id="select-output-crs" title="Select the CRS of the ortho-rectified product.">
2828
<option value="epsg:4326">Geog. Lat/Lon / WGS84 (EPSG:4326)</option>
2929
<option value="epsg:3857">Spherical Mercator(EPSG:3857)</option>
3030
<option value="epsg:3034">ETRS-LCC (EPSG:3034)</option>
@@ -159,8 +159,11 @@
159159
<option value="epsg:32760">UTM 60S / WGS84 (EPSG:32760)</option>
160160
</select>
161161
&nbsp;&nbsp;
162-
<button class="btn btn-default" id="btn-q-improve"><i class="icon-white icon-download-alt" title="Orthorectification."></i>Improve Quality</button>
163-
<button class="btn btn-default" id="btn-q-assess"><i class="icon-white icon-download-alt"></i>Assess Quality</button>
164-
<!-- button type="button" class="btn btn-default" id="btn-modify-selection" title="Return to the time and area specification."><i class="fa fa-fw fa-edit"></i> Modify</button -->
162+
</p>
163+
<p>
164+
<button class="btn btn-primary" id="btn-q-improve" style="float:right;margin-left:1ex;"><i class="icon-white icon-download-alt" title="Orthorectification."></i>Improve Quality</button>
165+
<button class="btn btn-primary" id="btn-q-assess" style="float:right;"><i class="icon-white icon-download-alt"></i>Assess Quality</button>
166+
<button type="button" class="btn btn-default" id="btn-refresh-dq-list" title="Refresh the list of the matching datasets (e.g., after modified layer selection)."><i class="fa fa-fw fa-refresh"></i> Refresh</button>
167+
<button type="button" class="btn btn-default" id="btn-modify-dq-selection" title="Return to the time and area specification."><i class="fa fa-fw fa-edit"></i> Modify</button>
165168
</p>
166169
</div>

0 commit comments

Comments
 (0)