Unverified Commit 7fe069b1 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Add two predefined setpoints

parent a21657e8
......@@ -131,6 +131,8 @@ function j2000(element_name) {
this.button_preset_0 = new dt_ui_button(element_name + "_preset_0");
this.button_preset_1 = new dt_ui_button(element_name + "_preset_1");
this.button_preset_2 = new dt_ui_button(element_name + "_preset_2");
this.button_preset_3 = new dt_ui_button(element_name + "_preset_3");
this.button_preset_4 = new dt_ui_button(element_name + "_preset_4");
this.window.add([
this.elem_filler, this.lbl_ra, this.lbl_dec,
......@@ -139,7 +141,8 @@ function j2000(element_name) {
this.lbl_sp_new, this.txt_ra_sp, this.txt_dec_sp,
this.button_enabled, this.button_dt_model_enabled, this.button_refraction,
this.button_track, this.button_copy_pos, this.button_copy_sp,
this.button_preset_0, this.button_preset_1, this.button_preset_2]);
this.button_preset_0, this.button_preset_1, this.button_preset_2,
this.button_preset_3, this.button_preset_4]);
this.lbl_ra.text_set("Right ascension");
this.lbl_dec.text_set("Declination");
......@@ -162,6 +165,8 @@ function j2000(element_name) {
this.button_preset_0.text_set("Cassiopeia A");
this.button_preset_1.text_set("Cygnus A");
this.button_preset_2.text_set("PSR B0329+54");
this.button_preset_3.text_set("Crab (M1)");
this.button_preset_4.text_set("Orion (M42)");
this.window.resize_equal([
this.elem_filler, this.lbl_ra, this.lbl_dec,
......@@ -204,11 +209,13 @@ function j2000(element_name) {
this.button_dt_model_enabled], 10);
this.window.resize_equal([
this.button_preset_0, this.button_preset_1, this.button_preset_2]);
this.button_preset_0, this.button_preset_1, this.button_preset_2,
this.button_preset_3, this.button_preset_4]);
this.window.align_horizontal([this.lbl_dec, this.button_preset_0], 10);
this.window.align_vertical([
this.button_preset_0, this.button_preset_1, this.button_preset_2]);
this.button_preset_0, this.button_preset_1, this.button_preset_2,
this.button_preset_3, this.button_preset_4]);
/*
......@@ -298,6 +305,10 @@ function j2000(element_name) {
j2000_this.new_sp_set('19h59m28.3565','40d40m02.099'); }
this.button_preset_2.onclick = function() {
j2000_this.new_sp_set('03h32m59.4','054d34m43.6'); }
this.button_preset_3.onclick = function() {
j2000_this.new_sp_set('05h34m31.9','22d00m52.2'); }
this.button_preset_4.onclick = function() {
j2000_this.new_sp_set('05h35m17.31','-5d23m28.0'); }
this.copy_position = function() {
j2000_this.new_sp_set(j2000_this.ra_cur, j2000_this.dec_cur);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment