| 1 | =head1 DOCUMENTATION 2600 | ||
| 2 | |||
| 3 | =head2 SYNOPSIS | ||
| 4 | |||
| 5 | PROGRAM NAME: immodpg (interactive ray trace modeling) | ||
| 6 | AUTHOR: Juan Lorenzo | ||
| 7 | |||
| 8 | =head2 CHANGES and their DATES | ||
| 9 | |||
| 10 | DATES: Feb 7 2020 | ||
| 11 | April 4 2021 | ||
| 12 | |||
| 13 | Version 0.0.1 , 0.0.2 | ||
| 14 | |||
| 15 | =head2 DESCRIPTION | ||
| 16 | |||
| 17 | Interactively model first arrivals using raytracing approximation | ||
| 18 | |||
| 19 | =head2 USE | ||
| 20 | |||
| 21 | =head2 Examplesoff | ||
| 22 | |||
| 23 | =head2 SEISMIC UNIX NOTES | ||
| 24 | |||
| 25 | =head2 STEPS | ||
| 26 | |||
| 27 | =head2 NOTES | ||
| 28 | |||
| 29 | We are using Moose. | ||
| 30 | Moose already declares that you need debuggers turned on | ||
| 31 | so you don't need a linew like the following: | ||
| 32 | use warnings; | ||
| 33 | |||
| 34 | When program starts change file is initialized to "no". --change file | ||
| 35 | is deleted and reset to a default "no" at the start. | ||
| 36 | change file is set to yes in Perl. | ||
| 37 | however we are careful only to do so when the file indicates a previous 'no' | ||
| 38 | and reset to no in fortran after fortran uses the setting | ||
| 39 | When exiting the change file contains a "yes" | ||
| 40 | |||
| 41 | Avoids asynchronous reading and writing crashes | ||
| 42 | Lock files are not failsafe | ||
| 43 | |||
| 44 | There are two types of methods: | ||
| 45 | |||
| 46 | One method type only sets the message type (immodpg->set_option(message #)) and | ||
| 47 | indicates a forced change (immodpg->set_change(yes)) for use with fortran | ||
| 48 | program immodpg.for | ||
| 49 | e.g., _setVbot_plus, _set_move_down. | ||
| 50 | The gui shows a symbol for these cases | ||
| 51 | |||
| 52 | A second type of method manages changing values for a parameter as well | ||
| 53 | as the functions of the first method. These actions are relegated to | ||
| 54 | immodpg | ||
| 55 | eg., _setVbot, _setVtop_upper_layer, _setVincrement, _set_clip, _set_layer | ||
| 56 | The gui shows a parameter value that can be changed by the user. | ||
| 57 | The Entry widget is configured to recognize text value changes and | ||
| 58 | a return(1) is needed to indicate a successful validation | ||
| 59 | |||
| 60 | immodpg must follow premmod to prevent logical circularity | ||
| 61 | as a result of the use of the 'aliased' syntax | ||
| 62 | |||
| 63 | April 2021, removed commented lines | ||
| 64 | |||
| 65 | =cut | ||
| 66 | |||
| 67 | use Moose; | ||
| 68 | our $VERSION = '0.0.1'; | ||
| 69 | |||
| 70 | use Time::HiRes qw(gettimeofday tv_interval); | ||
| 71 | use Tk; | ||
| 72 | |||
| 73 | # Aliases | ||
| 74 | use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants'; | ||
| 75 | use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config'; | ||
| 76 | use aliased 'App::SeismicUnixGui::configs::big_streams::immodpg_config'; | ||
| 77 | use aliased 'App::SeismicUnixGui::big_streams::immodpg_global_constants'; | ||
| 78 | use aliased 'App::SeismicUnixGui::misc::premmod'; | ||
| 79 | use App::SeismicUnixGui::big_streams::immodpg '0.0.2'; | ||
| 80 | use aliased 'App::SeismicUnixGui::big_streams::immodpg'; | ||
| 81 | use aliased 'App::SeismicUnixGui::sunix::shell::xk'; | ||
| 82 | |||
| 83 | =head2 private anonymous hash | ||
| 84 | Hands off variables for external printing | ||
| 85 | Stores GUI widget references for immodpg | ||
| 86 | =cut | ||
| 87 | |||
| 88 | my $immodpg_Tk = { | ||
| 89 | _prompt => '', | ||
| 90 | _base_file_name => '', | ||
| 91 | _pre_digitized_XT_pairs => '', | ||
| 92 | _data_traces => '', | ||
| 93 | _clip4plotEntry => '', | ||
| 94 | _lower_layerLabel => '', | ||
| 95 | _min_t_s => '', | ||
| 96 | _min_x_m => '', | ||
| 97 | _mw => '', | ||
| 98 | _thickness_increment_m => '', | ||
| 99 | _thickness_mEntry => '', | ||
| 100 | _thickness_mLabel => '', | ||
| 101 | _source_depth_m => '', | ||
| 102 | _receiver_depth_m => '', | ||
| 103 | _reducing_vel_mps => '', | ||
| 104 | _plot_min_x_m => '', | ||
| 105 | _plot_max_x_m => '', | ||
| 106 | _plot_min_t_s => '', | ||
| 107 | _plot_max_t_s => '', | ||
| 108 | _previous_model => '', | ||
| 109 | _new_model => '', | ||
| 110 | _layer => '', | ||
| 111 | _mw => '', | ||
| 112 | _thickness_increment_mEntry => '', | ||
| 113 | _upper_layerLabel => '', | ||
| 114 | _VbotEntry => '', | ||
| 115 | _VbotNtop_factorEntry => '', | ||
| 116 | _Vbot_upper_layerEntry => '', | ||
| 117 | _Vincrement => '', | ||
| 118 | _VincrementEntry => '', | ||
| 119 | |||
| 120 | }; | ||
| 121 | |||
| 122 | =head2 Instantiate classes: | ||
| 123 | |||
| 124 | Create a new version of the package | ||
| 125 | with a unique name | ||
| 126 | |||
| 127 | =cut | ||
| 128 | |||
| 129 | my $get_L_SU = L_SU_global_constants->new(); | ||
| 130 | my $IMMODPG_CONST = immodpg_global_constants->new(); | ||
| 131 | my $immodpg = immodpg->new(); | ||
| 132 | my $immodpg_config = immodpg_config->new(); | ||
| 133 | |||
| 134 | my $premmod = premmod->new(); | ||
| 135 | my $xk = xk->new(); | ||
| 136 | my $Project = Project_config->new(); | ||
| 137 | |||
| 138 | my $IMMODPG = $Project->IMMODPG(); | ||
| 139 | |||
| 140 | my $var_L_SU = $get_L_SU->var(); | ||
| 141 | my $global_libs = $get_L_SU->global_libs(); | ||
| 142 | |||
| 143 | my $immodpg_var = $IMMODPG_CONST->var(); | ||
| 144 | my $change_thickness_m_opt = $immodpg_var->{_thickness_m_opt}; | ||
| 145 | my $clip_opt = $immodpg_var->{_clip_opt}; | ||
| 146 | my $exit_opt = $immodpg_var->{_exit_opt}; | ||
| 147 | my $immodpg_model = $immodpg_var ->{_immodpg_model}; | ||
| 148 | my $move_down_opt = $immodpg_var->{_move_down_opt}; | ||
| 149 | my $move_left_opt = $immodpg_var->{_move_left_opt}; | ||
| 150 | my $move_minus_opt = $immodpg_var->{_move_minus_opt}; | ||
| 151 | my $move_right_opt = $immodpg_var->{_move_right_opt}; | ||
| 152 | my $move_up_opt = $immodpg_var->{_move_up_opt}; | ||
| 153 | my $thickness_m_minus_opt = $immodpg_var->{_thickness_m_minus_opt}; | ||
| 154 | my $thickness_m_plus_opt = $immodpg_var->{_thickness_m_plus_opt}; | ||
| 155 | my $zoom_minus_opt = $immodpg_var->{_zoom_minus_opt}; | ||
| 156 | my $zoom_plus_opt = $immodpg_var->{_zoom_plus_opt}; | ||
| 157 | |||
| 158 | my $Vbot_opt = $immodpg_var->{_Vbot_opt}; | ||
| 159 | my $Vbot_upper_layer_opt = $immodpg_var->{_Vbot_upper_layer_opt}; | ||
| 160 | my $Vbot_minus_opt = $immodpg_var->{_Vbot_minus_opt}; | ||
| 161 | my $Vbot_plus_opt = $immodpg_var->{_Vbot_plus_opt}; | ||
| 162 | my $Vtop_opt = $immodpg_var->{_Vtop_opt}; | ||
| 163 | my $Vtop_lower_layer_opt = $immodpg_var->{_Vtop_lower_layer_opt}; | ||
| 164 | my $Vtop_minus_opt = $immodpg_var->{_Vtop_minus_opt}; | ||
| 165 | my $Vtop_plus_opt = $immodpg_var->{_Vtop_plus_opt}; | ||
| 166 | |||
| 167 | my $VbotNVtop_lower_layer_minus_opt = $immodpg_var->{_VbotNVtop_lower_layer_minus_opt}; | ||
| 168 | my $VbotNVtop_lower_layer_plus_opt = $immodpg_var->{_VbotNVtop_lower_layer_plus_opt}; | ||
| 169 | my $VtopNVbot_upper_layer_minus_opt = $immodpg_var->{_VtopNVbot_upper_layer_minus_opt}; | ||
| 170 | my $VtopNVbot_upper_layer_plus_opt = $immodpg_var->{_VtopNVbot_upper_layer_plus_opt}; | ||
| 171 | my $VbotNtop_multiply_opt = $immodpg_var->{_VbotNtop_multiply_opt}; | ||
| 172 | my $VbotNtop_plus_opt = $immodpg_var->{_VbotNtop_plus_opt}; | ||
| 173 | my $VbotNtop_minus_opt = $immodpg_var->{_VbotNtop_minus_opt}; | ||
| 174 | |||
| 175 | my $update_opt = $immodpg_var->{_update_opt}; | ||
| 176 | my $yes = $var_L_SU->{_yes}; | ||
| 177 | my $empty_string = $var_L_SU->{_empty_string}; | ||
| 178 | my $on = $var_L_SU->{_on}; | ||
| 179 | my $off = $var_L_SU->{_off}; | ||
| 180 | |||
| 181 | =head2 Declare variables | ||
| 182 | in local memory space | ||
| 183 | |||
| 184 | =cut | ||
| 185 | |||
| 186 | my ( $Vtop_plus_button, $Vtop_minus_button ); | ||
| 187 | my ( $Vbot_plus_button, $Vbot_minus_button ); | ||
| 188 | my ( $VbotNtop_plus_button, $VbotNtop_minus_button ); | ||
| 189 | my ( $VtopNVbot_upper_layer_plus_button, $VtopNVbot_upper_layer_minus_button ); | ||
| 190 | my ( $VbotNVtop_lower_layer_plus_button, $VbotNVtop_lower_layer_minus_button ); | ||
| 191 | my $VbotNtop_multiply_button; | ||
| 192 | my ( $zoom_plus_button, $zoom_minus_button ); | ||
| 193 | my ( $move_down_button, $move_left_button ); | ||
| 194 | my ( $move_up_button, $move_right_button ); | ||
| 195 | my ( $thickness_m_plus_button, $thickness_m_minus_button ); | ||
| 196 | my ( $exit_button, $update_button ); | ||
| 197 | |||
| 198 | my $rb_value = "red"; | ||
| 199 | our $mw; | ||
| 200 | |||
| 201 | =head2 DEFAULT VALUES | ||
| 202 | |||
| 203 | Default values for screen | ||
| 204 | when the configuration file is missing | ||
| 205 | |||
| 206 | =cut | ||
| 207 | |||
| 208 | my $Vtop_default = 1500.0; | ||
| 209 | my $Vbot_default = 1600.0; | ||
| 210 | my $VbotNtop_factor_default = 1.; | ||
| 211 | my $Vtop_lower_layer_default = 1600.0; | ||
| 212 | my $Vbot_upper_layer_default = 15000.0; | ||
| 213 | my $change_default = $immodpg_var->{_change_default}; | ||
| 214 | my $clip4plot_default = 1; | ||
| 215 | my $layer_default = 2; | ||
| 216 | my $lower_layer_default = 3; | ||
| 217 | my $thickness_m_default = 1000.001; | ||
| 218 | my $upper_layer_default = 1; | ||
| 219 | my $Vincrement_mps_default = 10; | ||
| 220 | my $thickness_increment_m_default = 10; | ||
| 221 | |||
| 222 | =head2 initialize: | ||
| 223 | |||
| 224 | Useful variables with defaults | ||
| 225 | |||
| 226 | =cut | ||
| 227 | |||
| 228 | my $Vtop = $Vtop_default; | ||
| 229 | my $Vbot = $Vbot_default; | ||
| 230 | my $VbotNtop_factor = $VbotNtop_factor_default; | ||
| 231 | my $Vtop_lower_layer = $Vtop_lower_layer_default; | ||
| 232 | my $Vbot_upper_layer = $Vbot_upper_layer_default; | ||
| 233 | my $upper_layer = $upper_layer_default; | ||
| 234 | my $clip4plot = $clip4plot_default; | ||
| 235 | my $layer = $layer_default; | ||
| 236 | my $lower_layer = $lower_layer_default; | ||
| 237 | my $thickness_m = $thickness_m_default; | ||
| 238 | my $Vincrement_mps = $Vincrement_mps_default; | ||
| 239 | my $thickness_increment_m = $thickness_increment_m_default; | ||
| 240 | |||
| 241 | #--------------------------------------------- | ||
| 242 | # Create Main Window | ||
| 243 | #--------------------------------------------- | ||
| 244 | |||
| 245 | =head2 Create Main Window | ||
| 246 | |||
| 247 | Start event-driven loop | ||
| 248 | Interaction with user | ||
| 249 | |||
| 250 | immodpg requires Main window widget to display | ||
| 251 | error messages | ||
| 252 | |||
| 253 | Decide whether to | ||
| 254 | Start Main widget but temporarily withdraw | ||
| 255 | until checks are complete | ||
| 256 | Window is needed for error messages | ||
| 257 | |||
| 258 | =cut | ||
| 259 | |||
| 260 | $mw = MainWindow->new; | ||
| 261 | $mw->withdraw; | ||
| 262 | |||
| 263 | $immodpg_Tk->{_mw} = $mw; | ||
| 264 | $immodpg->set_widgets($immodpg_Tk); | ||
| 265 | $immodpg->initialize_messages(); | ||
| 266 | |||
| 267 | =head2 Clean old files | ||
| 268 | |||
| 269 | from past sessions | ||
| 270 | |||
| 271 | =cut | ||
| 272 | |||
| 273 | $immodpg->clean_trash(); | ||
| 274 | |||
| 275 | =head2 Initialize files | ||
| 276 | |||
| 277 | After cleaning trash | ||
| 278 | |||
| 279 | =cut | ||
| 280 | my $replacement= $global_libs->{_configs_big_streams}.'/'.$immodpg_model; | ||
| 281 | my $missing = $IMMODPG.'/'.$immodpg_model; | ||
| 282 | $immodpg->set_missing($missing); | ||
| 283 | $immodpg->set_replacement4missing($replacement); | ||
| 284 | $immodpg->get_replacement4missing(); | ||
| 285 | |||
| 286 | |||
| 287 | =head2 Initialize values | ||
| 288 | |||
| 289 | In modules | ||
| 290 | |||
| 291 | =cut | ||
| 292 | $immodpg->set_defaults(); | ||
| 293 | $immodpg->set_change( $change_default); | ||
| 294 | $immodpg->initialize_model(); | ||
| 295 | |||
| 296 | =head2 Get starting configuration | ||
| 297 | |||
| 298 | Parameters from a configuration file | ||
| 299 | |||
| 300 | =cut | ||
| 301 | |||
| 302 | my ( $CFG_h, $CFG_aref ) = $immodpg_config->get_values(); | ||
| 303 | |||
| 304 | my $base_file_name = $CFG_h->{immodpg}{1}{base_file_name}; | ||
| 305 | my $pre_digitized_XT_pairs = $CFG_h->{immodpg}{1}{offset_type}; | ||
| 306 | my $data_traces = $CFG_h->{immodpg}{1}{data_traces}; | ||
| 307 | $clip4plot = $CFG_h->{immodpg}{1}{clip}; | ||
| 308 | my $min_t_s = $CFG_h->{immodpg}{1}{min_t_s}; | ||
| 309 | my $min_x_m = $CFG_h->{immodpg}{1}{min_x_m}; | ||
| 310 | my $data_x_inc_m = $CFG_h->{immodpg}{1}{data_x_inc_m}; | ||
| 311 | my $source_depth_m = $CFG_h->{immodpg}{1}{source_depth_m}; | ||
| 312 | my $receiver_depth_m = $CFG_h->{immodpg}{1}{receiver_depth_m}; | ||
| 313 | my $reducing_vel_mps = $CFG_h->{immodpg}{1}{reducing_vel_mps}; | ||
| 314 | my $plot_min_x_m = $CFG_h->{immodpg}{1}{plot_min_x_m}; | ||
| 315 | my $plot_max_x_m = $CFG_h->{immodpg}{1}{plot_max_x_m}; | ||
| 316 | my $plot_min_t_s = $CFG_h->{immodpg}{1}{plot_min_t_s}; | ||
| 317 | my $plot_max_t_s = $CFG_h->{immodpg}{1}{plot_max_t_s}; | ||
| 318 | my $previous_model = $CFG_h->{immodpg}{1}{previous_model}; | ||
| 319 | my $new_model = $CFG_h->{immodpg}{1}{new_model}; | ||
| 320 | $layer = $CFG_h->{immodpg}{1}{layer}; | ||
| 321 | $VbotNtop_factor = $CFG_h->{immodpg}{1}{VbotNtop_factor}; | ||
| 322 | $Vincrement_mps = $CFG_h->{immodpg}{1}{Vincrement_mps}; | ||
| 323 | $thickness_increment_m = $CFG_h->{immodpg}{1}{thickness_increment_m}; | ||
| 324 | |||
| 325 | =head2 Error checks | ||
| 326 | |||
| 327 | Adjust working, upper, | ||
| 328 | and lower layer for | ||
| 329 | extraneous values | ||
| 330 | |||
| 331 | =cut | ||
| 332 | |||
| 333 | $immodpg->set_clip_control($clip4plot); | ||
| 334 | $clip4plot = $immodpg->get_control_clip(); | ||
| 335 | |||
| 336 | $immodpg->set_layer_control($layer); | ||
| 337 | $layer = $immodpg->get_control_layer(); | ||
| 338 | my $number_of_layers = $immodpg->get_number_of_layers(); | ||
| 339 | |||
| 340 | $upper_layer = $layer - 1; | ||
| 341 | |||
| 342 | if ( $upper_layer < 1 ) { | ||
| 343 | |||
| 344 | $upper_layer = $empty_string; | ||
| 345 | } | ||
| 346 | |||
| 347 | $lower_layer = $layer + 1; | ||
| 348 | |||
| 349 | =head2 Get model values | ||
| 350 | |||
| 351 | of Vp, thickness, and error switch from | ||
| 352 | immodpg.out for initial settings | ||
| 353 | in GUI | ||
| 354 | |||
| 355 | =cut | ||
| 356 | |||
| 357 | $immodpg->set_model_layer($layer); | ||
| 358 | |||
| 359 | my ( $Vp_ref, $dz, $error_switch ) = $immodpg->get_initialVp_dz4gui(); | ||
| 360 | |||
| 361 | # ------------------ | ||
| 362 | # CASE 1 ALL OK | ||
| 363 | # ------------------ | ||
| 364 | if ( $error_switch eq $off ) { | ||
| 365 | |||
| 366 | my @V = @$Vp_ref; | ||
| 367 | |||
| 368 | # Extract velocity values | ||
| 369 | $Vbot_upper_layer = $V[0]; | ||
| 370 | $Vtop = $V[1]; | ||
| 371 | $Vbot = $V[2]; | ||
| 372 | $Vtop_lower_layer = $V[3]; | ||
| 373 | |||
| 374 | # Layer thickness | ||
| 375 | $thickness_m = $dz; | ||
| 376 | |||
| 377 | # ------------------ | ||
| 378 | # CASE 2 BAD MODEL FILE | ||
| 379 | # ------------------ | ||
| 380 | } elsif ( $error_switch eq $on ) { | ||
| 381 | |||
| 382 | print("immodpg.pl, CORRUPT immodpg.out (fortran binary model file)\n"); | ||
| 383 | |||
| 384 | } else { | ||
| 385 | print("immodpg.pl, unexpected variable\n"); | ||
| 386 | } | ||
| 387 | |||
| 388 | =head2 Prepare su file | ||
| 389 | for input to immodpg.for | ||
| 390 | generate a binary file | ||
| 391 | |||
| 392 | =cut | ||
| 393 | |||
| 394 | $premmod->set_binary_strip(); | ||
| 395 | $premmod->out_header_values(); | ||
| 396 | |||
| 397 | =head2 Establish Main Window | ||
| 398 | |||
| 399 | =cut | ||
| 400 | $mw->deiconify(); | ||
| 401 | $mw->raise(); | ||
| 402 | $mw->geometry("430x280+40+100"); | ||
| 403 | $mw->title("immodpg2"); | ||
| 404 | $mw->configure( | ||
| 405 | -highlightcolor => 'blue', | ||
| 406 | -background => $var_L_SU->{_my_purple}, | ||
| 407 | ); | ||
| 408 | $mw->focusFollowsMouse; | ||
| 409 | |||
| 410 | |||
| 411 | =head2 tTp_settings frame | ||
| 412 | |||
| 413 | Contains: | ||
| 414 | (1) working layer | ||
| 415 | (2) z inc and V inc in m/s | ||
| 416 | |||
| 417 | help goes to superflow bindings | ||
| 418 | |||
| 419 | =cut | ||
| 420 | |||
| 421 | my $Vlayer_frame = $mw->Frame( | ||
| 422 | -borderwidth => $var_L_SU->{_no_borderwidth}, | ||
| 423 | -background => $var_L_SU->{_my_purple}, | ||
| 424 | -relief => 'groove', | ||
| 425 | ); | ||
| 426 | |||
| 427 | =head2 Font Registry | ||
| 428 | |||
| 429 | Font types | ||
| 430 | |||
| 431 | =cut | ||
| 432 | |||
| 433 | my $arial_14 = $mw->fontCreate( | ||
| 434 | 'arial_14', | ||
| 435 | -family => 'arial', | ||
| 436 | -weight => 'normal', | ||
| 437 | -size => -14 | ||
| 438 | ); | ||
| 439 | |||
| 440 | my $arial_14_bold = $mw->fontCreate( | ||
| 441 | 'arial_14_bold', | ||
| 442 | -family => 'arial', | ||
| 443 | -weight => 'bold', | ||
| 444 | -size => -14 | ||
| 445 | ); | ||
| 446 | |||
| 447 | my $arial_14_italic = $mw->fontCreate( | ||
| 448 | 'arial_14_italic', | ||
| 449 | -family => 'arial', | ||
| 450 | -slant => 'italic', | ||
| 451 | -weight => 'bold', | ||
| 452 | -size => -14 | ||
| 453 | ); | ||
| 454 | |||
| 455 | my $arial_16 = $mw->fontCreate( | ||
| 456 | 'arial_16', | ||
| 457 | -family => 'arial', | ||
| 458 | -weight => 'normal', | ||
| 459 | -size => -16 | ||
| 460 | ); | ||
| 461 | |||
| 462 | my $arial_16_italic = $mw->fontCreate( | ||
| 463 | 'arial_16_italic', | ||
| 464 | -family => 'arial', | ||
| 465 | -slant => 'italic', | ||
| 466 | -weight => 'bold', | ||
| 467 | -size => -16 | ||
| 468 | ); | ||
| 469 | my $arial_18 = $mw->fontCreate( | ||
| 470 | 'arial_18', | ||
| 471 | -family => 'arial', | ||
| 472 | -weight => 'normal', | ||
| 473 | -size => -18 | ||
| 474 | ); | ||
| 475 | |||
| 476 | my $arial_18_italic = $mw->fontCreate( | ||
| 477 | 'arial_italic_18', | ||
| 478 | -family => 'arial', | ||
| 479 | -weight => 'normal', | ||
| 480 | -slant => 'italic', | ||
| 481 | -size => -18 | ||
| 482 | ); | ||
| 483 | |||
| 484 | my $arial_18_bold = $mw->fontCreate( | ||
| 485 | 'arial_18_bold', | ||
| 486 | -family => 'arial', | ||
| 487 | -weight => 'bold', | ||
| 488 | -size => -18 | ||
| 489 | ); | ||
| 490 | |||
| 491 | =head2 Entry widgets | ||
| 492 | |||
| 493 | =cut | ||
| 494 | |||
| 495 | =head2 VbotEntry | ||
| 496 | |||
| 497 | =cut | ||
| 498 | |||
| 499 | my $VbotEntry = $mw->Entry( | ||
| 500 | -font => $arial_18, | ||
| 501 | -width => $var_L_SU->{_7_characters}, | ||
| 502 | -background => $var_L_SU->{_my_black}, | ||
| 503 | -foreground => $var_L_SU->{_my_white}, | ||
| 504 | -borderwidth => $var_L_SU->{_no_borderwidth}, | ||
| 505 | -textvariable => \$Vbot, | ||
| 506 | ); | ||
| 507 | |||
| 508 | # print("main,VbotEntry= $VbotEntry\n"); | ||
| 509 | |||
| 510 | =head2 VbotEntry | ||
| 511 | MUST first be created before it can be used by | ||
| 512 | a callback subroutine | ||
| 513 | =cut | ||
| 514 | |||
| 515 | $immodpg_Tk->{_VbotEntry} = $VbotEntry; | ||
| 516 | |||
| 517 | # print("main,immodpg_Tk->{_VbotEntry}= $immodpg_Tk->{_VbotEntry}\n"); | ||
| 518 | |||
| 519 | $VbotEntry->configure( | ||
| 520 | -validate => 'focus', | ||
| 521 | -validatecommand => \&_setVbot, | ||
| 522 | -invalidcommand => sub { print "VbotEntry_box,ERROR.\n" }, | ||
| 523 | ); | ||
| 524 | |||
| 525 | =head2 Vbot_upper_layerEntry | ||
| 526 | |||
| 527 | =cut | ||
| 528 | |||
| 529 | my $Vbot_upper_layerEntry = $mw->Entry( | ||
| 530 | -font => $arial_18, | ||
| 531 | -width => $var_L_SU->{_7_characters}, | ||
| 532 | -background => $var_L_SU->{_my_light_grey}, | ||
| 533 | -foreground => $var_L_SU->{_my_black}, | ||
| 534 | -borderwidth => $var_L_SU->{_no_borderwidth}, | ||
| 535 | -textvariable => \$Vbot_upper_layer, | ||
| 536 | ); | ||
| 537 | |||
| 538 | =head2 Vbot_upper_layerEntry | ||
| 539 | MUST first be created before it can be used by | ||
| 540 | a callback subroutine | ||
| 541 | =cut | ||
| 542 | |||
| 543 | $immodpg_Tk->{_Vbot_upper_layerEntry} = $Vbot_upper_layerEntry; | ||
| 544 | |||
| 545 | $Vbot_upper_layerEntry->configure( | ||
| 546 | -validate => 'focus', | ||
| 547 | -validatecommand => \&_setVbot_upper_layer, | ||
| 548 | -invalidcommand => sub { print "Vbot_upper_layerEntry_box,ERROR.\n" }, | ||
| 549 | ); | ||
| 550 | |||
| 551 | =head2 VincrementEntry | ||
| 552 | |||
| 553 | =cut | ||
| 554 | |||
| 555 | my $VincrementEntry = $mw->Entry( | ||
| 556 | -font => $arial_16, | ||
| 557 | -width => $var_L_SU->{_4_characters}, | ||
| 558 | -background => $var_L_SU->{_my_light_grey}, | ||
| 559 | -foreground => $var_L_SU->{_my_black}, | ||
| 560 | -borderwidth => $var_L_SU->{_no_borderwidth}, | ||
| 561 | -textvariable => \$Vincrement_mps, | ||
| 562 | ); | ||
| 563 | |||
| 564 | =head2 VincrementEntry | ||
| 565 | MUST first be created before it can be used by | ||
| 566 | a callback subroutine | ||
| 567 | =cut | ||
| 568 | |||
| 569 | $immodpg_Tk->{_VincrementEntry} = $VincrementEntry; | ||
| 570 | |||
| 571 | $VincrementEntry->configure( | ||
| 572 | -validate => 'focus', | ||
| 573 | -validatecommand => \&_setVincrement, | ||
| 574 | -invalidcommand => sub { print "Vincrement_box,ERROR.\n" }, | ||
| 575 | ); | ||
| 576 | |||
| 577 | =head2 VtopEntry | ||
| 578 | =cut | ||
| 579 | |||
| 580 | my $VtopEntry = $mw->Entry( | ||
| 581 | -font => $arial_18, | ||
| 582 | -width => $var_L_SU->{_7_characters}, | ||
| 583 | -background => $var_L_SU->{_my_black}, | ||
| 584 | -foreground => $var_L_SU->{_my_white}, | ||
| 585 | -borderwidth => $var_L_SU->{_no_borderwidth}, | ||
| 586 | -textvariable => \$Vtop, | ||
| 587 | ); | ||
| 588 | |||
| 589 | =head2 VtopEntry | ||
| 590 | MUST first be created before it can be used by | ||
| 591 | a callback subroutine | ||
| 592 | =cut | ||
| 593 | |||
| 594 | $immodpg_Tk->{_VtopEntry} = $VtopEntry; | ||
| 595 | |||
| 596 | $VtopEntry->configure( | ||
| 597 | -validate => 'focus', | ||
| 598 | -validatecommand => \&_setVtop, | ||
| 599 | -invalidcommand => sub { print "Vtop_box,ERROR.\n" }, | ||
| 600 | ); | ||
| 601 | |||
| 602 | =head2 VbotNtop_factorEntry | ||
| 603 | |||
| 604 | =cut | ||
| 605 | |||
| 606 | my $VbotNtop_factorEntry = $mw->Entry( | ||
| 607 | -font => $arial_16, | ||
| 608 | -width => $var_L_SU->{_4_characters}, | ||
| 609 | -background => $var_L_SU->{_my_light_grey}, | ||
| 610 | -foreground => $var_L_SU->{_my_black}, | ||
| 611 | -borderwidth => $var_L_SU->{_no_borderwidth}, | ||
| 612 | -textvariable => \$VbotNtop_factor, | ||
| 613 | ); | ||
| 614 | |||
| 615 | =head2 VbotNtop_factorEntry | ||
| 616 | |||
| 617 | MUST first be created before it can be used by | ||
| 618 | a callback subroutine | ||
| 619 | =cut | ||
| 620 | |||
| 621 | $immodpg_Tk->{_VbotNtop_factorEntry} = $VbotNtop_factorEntry; | ||
| 622 | |||
| 623 | $VbotNtop_factorEntry->configure( | ||
| 624 | -validate => 'focus', | ||
| 625 | -validatecommand => \&_setVbotNtop_factor, | ||
| 626 | -invalidcommand => sub { print "VtopNbit_box,ERROR.\n" }, | ||
| 627 | ); | ||
| 628 | |||
| 629 | =head2 Vtop_lower_layerEntry | ||
| 630 | |||
| 631 | =cut | ||
| 632 | |||
| 633 | my $Vtop_lower_layerEntry = $mw->Entry( | ||
| 634 | -font => $arial_18, | ||
| 635 | -width => $var_L_SU->{_7_characters}, | ||
| 636 | -background => $var_L_SU->{_my_light_grey}, | ||
| 637 | -foreground => $var_L_SU->{_my_black}, | ||
| 638 | -borderwidth => $var_L_SU->{_no_borderwidth}, | ||
| 639 | -textvariable => \$Vtop_lower_layer, | ||
| 640 | ); | ||
| 641 | |||
| 642 | =head2 Vtop_lower_layerEntry | ||
| 643 | MUST first be created before it can be used by | ||
| 644 | a callback subroutine | ||
| 645 | =cut | ||
| 646 | |||
| 647 | $immodpg_Tk->{_Vtop_lower_layerEntry} = $Vtop_lower_layerEntry; | ||
| 648 | |||
| 649 | $Vtop_lower_layerEntry->configure( | ||
| 650 | -validate => 'focus', | ||
| 651 | -validatecommand => \&_setVtop_lower_layer, | ||
| 652 | -invalidcommand => sub { print "Vtop_lower_layerEntry_box,ERROR.\n" }, | ||
| 653 | ); | ||
| 654 | |||
| 655 | =head2 clip4plotEntry | ||
| 656 | |||
| 657 | =cut | ||
| 658 | |||
| 659 | my $clip4plotEntry = $mw->Entry( | ||
| 660 | -font => $arial_16, | ||
| 661 | -width => $var_L_SU->{_1_character}, | ||
| 662 | -background => $var_L_SU->{_my_light_grey}, | ||
| 663 | -foreground => $var_L_SU->{_my_black}, | ||
| 664 | -borderwidth => $var_L_SU->{_no_borderwidth}, | ||
| 665 | -textvariable => \$clip4plot, | ||
| 666 | ); | ||
| 667 | |||
| 668 | =head2 clip4plotEntry | ||
| 669 | MUST first be created before it can be used by | ||
| 670 | a callback subroutine | ||
| 671 | =cut | ||
| 672 | |||
| 673 | $immodpg_Tk->{_clip4plotEntry} = $clip4plotEntry; | ||
| 674 | |||
| 675 | $clip4plotEntry->configure( | ||
| 676 | -validate => 'focus', | ||
| 677 | -validatecommand => \&_set_clip, | ||
| 678 | -invalidcommand => sub { print "clip_box,ERROR.\n" }, | ||
| 679 | ); | ||
| 680 | |||
| 681 | =head2 layerEntry | ||
| 682 | |||
| 683 | =cut | ||
| 684 | |||
| 685 | my $layerEntry = $mw->Entry( | ||
| 686 | -font => $arial_18, | ||
| 687 | -justify => 'center', | ||
| 688 | -width => $var_L_SU->{_1_character}, | ||
| 689 | -background => $var_L_SU->{_my_black}, | ||
| 690 | -foreground => $var_L_SU->{_my_white}, | ||
| 691 | -borderwidth => $var_L_SU->{_no_borderwidth}, | ||
| 692 | -textvariable => \$layer, | ||
| 693 | ); | ||
| 694 | |||
| 695 | =head2 layerEntry | ||
| 696 | |||
| 697 | MUST first be created before it can be used by | ||
| 698 | a callback subroutine | ||
| 699 | |||
| 700 | =cut | ||
| 701 | |||
| 702 | $immodpg_Tk->{_layerEntry} = $layerEntry; | ||
| 703 | |||
| 704 | $layerEntry->configure( | ||
| 705 | -validate => 'focus', | ||
| 706 | -validatecommand => \&_set_layer, | ||
| 707 | -invalidcommand => sub { print "layer_box,ERROR.\n" }, | ||
| 708 | ); | ||
| 709 | |||
| 710 | =head2 lower_layerLabel | ||
| 711 | |||
| 712 | =cut | ||
| 713 | |||
| 714 | my $lower_layerLabel = $mw->Label( | ||
| 715 | -font => $arial_18, | ||
| 716 | -justify => 'center', | ||
| 717 | -width => $var_L_SU->{_4_characters}, | ||
| 718 | -background => $var_L_SU->{_my_light_grey}, | ||
| 719 | -foreground => $var_L_SU->{_my_black}, | ||
| 720 | -borderwidth => $var_L_SU->{_no_borderwidth}, | ||
| 721 | -textvariable => \$lower_layer, | ||
| 722 | ); | ||
| 723 | |||
| 724 | =head2 lower_layerLabel widget will be updated | ||
| 725 | in immodpg | ||
| 726 | |||
| 727 | =cut | ||
| 728 | |||
| 729 | $immodpg_Tk->{_lower_layerLabel} = $lower_layerLabel; | ||
| 730 | |||
| 731 | =head2 Entry _thickness_increment_mEntryEntry | ||
| 732 | |||
| 733 | =cut | ||
| 734 | |||
| 735 | my $thickness_increment_mEntry = $mw->Entry( | ||
| 736 | -font => $arial_16, | ||
| 737 | -width => $var_L_SU->{_4_characters}, | ||
| 738 | -background => $var_L_SU->{_my_light_grey}, | ||
| 739 | -foreground => $var_L_SU->{_my_black}, | ||
| 740 | -borderwidth => $var_L_SU->{_no_borderwidth}, | ||
| 741 | -textvariable => \$thickness_increment_m, | ||
| 742 | ); | ||
| 743 | |||
| 744 | =head2 thickness_increment_mEntry | ||
| 745 | |||
| 746 | MUST first be created before it can be used by | ||
| 747 | a callback subroutine | ||
| 748 | |||
| 749 | =cut | ||
| 750 | |||
| 751 | $immodpg_Tk->{_thickness_increment_mEntry} = $thickness_increment_mEntry; | ||
| 752 | |||
| 753 | $thickness_increment_mEntry->configure( | ||
| 754 | -validate => 'focus', | ||
| 755 | -validatecommand => \&_set_thickness_increment_m, | ||
| 756 | -invalidcommand => sub { print "thickness_increment_box,ERROR.\n" }, | ||
| 757 | ); | ||
| 758 | |||
| 759 | =head2 thickness_mEntry | ||
| 760 | |||
| 761 | =cut | ||
| 762 | |||
| 763 | my $thickness_mEntry = $mw->Entry( | ||
| 764 | -font => $arial_18, | ||
| 765 | -width => $var_L_SU->{_4_characters}, | ||
| 766 | -background => $var_L_SU->{_my_black}, | ||
| 767 | -foreground => $var_L_SU->{_my_white}, | ||
| 768 | -borderwidth => $var_L_SU->{_no_borderwidth}, | ||
| 769 | -textvariable => \$thickness_m, | ||
| 770 | ); | ||
| 771 | |||
| 772 | =head2 thickness_mEntry | ||
| 773 | |||
| 774 | MUST first be created before it can be used by | ||
| 775 | a callback subroutine | ||
| 776 | =cut | ||
| 777 | |||
| 778 | $immodpg_Tk->{_thickness_mEntry} = $thickness_mEntry; | ||
| 779 | |||
| 780 | $thickness_mEntry->configure( | ||
| 781 | -validate => 'focus', | ||
| 782 | -validatecommand => \&_set_thickness_m, | ||
| 783 | -invalidcommand => sub { print "thickness_increment_box,ERROR.\n" }, | ||
| 784 | ); | ||
| 785 | |||
| 786 | =head2 thickness_mLabel | ||
| 787 | |||
| 788 | =cut | ||
| 789 | |||
| 790 | my $thickness_mLabel = $mw->Label( | ||
| 791 | -font => $arial_18_italic, | ||
| 792 | -justify => 'right', | ||
| 793 | -borderwidth => $var_L_SU->{_1_pixel}, | ||
| 794 | -background => $var_L_SU->{_light_gray}, | ||
| 795 | -text => ' thickness (m)', | ||
| 796 | ); | ||
| 797 | |||
| 798 | =head2 upper_layerLabel | ||
| 799 | |||
| 800 | =cut | ||
| 801 | |||
| 802 | my $upper_layerLabel = $mw->Label( | ||
| 803 | -font => $arial_18, | ||
| 804 | -justify => 'center', | ||
| 805 | -width => $var_L_SU->{_4_characters}, | ||
| 806 | -background => $var_L_SU->{_my_light_grey}, | ||
| 807 | -foreground => $var_L_SU->{_my_black}, | ||
| 808 | -borderwidth => $var_L_SU->{_no_borderwidth}, | ||
| 809 | -textvariable => \$upper_layer, | ||
| 810 | ); | ||
| 811 | |||
| 812 | =head2 upper_layerLabel widget | ||
| 813 | |||
| 814 | Is updated in immodpg | ||
| 815 | |||
| 816 | =cut | ||
| 817 | |||
| 818 | $immodpg_Tk->{_upper_layerLabel} = $upper_layerLabel; | ||
| 819 | |||
| 820 | =head2 Row index=0 | ||
| 821 | |||
| 822 | =cut | ||
| 823 | |||
| 824 | $exit_button = $mw->Button( | ||
| 825 | -font => $arial_14_bold, | ||
| 826 | -height => $var_L_SU->{_1_character}, | ||
| 827 | -border => 0, | ||
| 828 | -padx => 0, | ||
| 829 | -pady => 0, | ||
| 830 | -text => 'Exit', | ||
| 831 | -width => $var_L_SU->{_1_character}, | ||
| 832 | -background => $var_L_SU->{_my_yellow}, | ||
| 833 | -foreground => $var_L_SU->{_my_black}, | ||
| 834 | -disabledforeground => $var_L_SU->{_my_black}, | ||
| 835 | -activeforeground => $var_L_SU->{_my_black}, | ||
| 836 | -activebackground => $var_L_SU->{_my_yellow}, | ||
| 837 | -relief => 'flat', | ||
| 838 | -state => 'active', | ||
| 839 | -command => [ \&_set_exit ], | ||
| 840 | ); | ||
| 841 | |||
| 842 | =head2 Row index | ||
| 843 | |||
| 844 | =cut | ||
| 845 | |||
| 846 | $move_down_button = $mw->Button( | ||
| 847 | -font => $arial_14_bold, | ||
| 848 | -height => $var_L_SU->{_1_character}, | ||
| 849 | -border => 0, | ||
| 850 | -padx => 0, | ||
| 851 | -pady => 0, | ||
| 852 | -text => 'down', | ||
| 853 | -width => $var_L_SU->{_1_character}, | ||
| 854 | -background => $var_L_SU->{_my_light_grey}, | ||
| 855 | -foreground => $var_L_SU->{_my_black}, | ||
| 856 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 857 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 858 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 859 | -relief => 'flat', | ||
| 860 | -state => 'active', | ||
| 861 | -command => [ \&_set_move_down ], | ||
| 862 | ); | ||
| 863 | |||
| 864 | =head2 Row index | ||
| 865 | |||
| 866 | =cut | ||
| 867 | |||
| 868 | $move_left_button = $mw->Button( | ||
| 869 | -font => $arial_14_bold, | ||
| 870 | -height => $var_L_SU->{_1_character}, | ||
| 871 | |||
| 872 | # -border => 0, | ||
| 873 | -padx => 0, | ||
| 874 | -pady => 0, | ||
| 875 | -text => '<--', | ||
| 876 | -width => $var_L_SU->{_1_character}, | ||
| 877 | -background => $var_L_SU->{_my_light_grey}, | ||
| 878 | -foreground => $var_L_SU->{_my_black}, | ||
| 879 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 880 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 881 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 882 | -relief => 'flat', | ||
| 883 | -state => 'active', | ||
| 884 | -command => [ \&_set_move_left ], | ||
| 885 | ); | ||
| 886 | |||
| 887 | =head2 Row index | ||
| 888 | |||
| 889 | =cut | ||
| 890 | |||
| 891 | $move_right_button = $mw->Button( | ||
| 892 | -font => $arial_14_bold, | ||
| 893 | -height => $var_L_SU->{_1_character}, | ||
| 894 | |||
| 895 | # -border => 0, | ||
| 896 | -padx => 0, | ||
| 897 | -pady => 0, | ||
| 898 | -text => '-->', | ||
| 899 | -width => $var_L_SU->{_1_character}, | ||
| 900 | -background => $var_L_SU->{_my_light_grey}, | ||
| 901 | -foreground => $var_L_SU->{_my_black}, | ||
| 902 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 903 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 904 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 905 | -relief => 'flat', | ||
| 906 | -state => 'active', | ||
| 907 | -command => [ \&_set_move_right ], | ||
| 908 | ); | ||
| 909 | |||
| 910 | =head2 Row index | ||
| 911 | |||
| 912 | =cut | ||
| 913 | |||
| 914 | $move_up_button = $mw->Button( | ||
| 915 | -font => $arial_14_bold, | ||
| 916 | -height => $var_L_SU->{_1_character}, | ||
| 917 | |||
| 918 | # -border => 0, | ||
| 919 | -padx => 0, | ||
| 920 | -pady => 0, | ||
| 921 | -text => 'up', | ||
| 922 | -width => $var_L_SU->{_1_character}, | ||
| 923 | -background => $var_L_SU->{_my_light_grey}, | ||
| 924 | -foreground => $var_L_SU->{_my_black}, | ||
| 925 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 926 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 927 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 928 | -relief => 'flat', | ||
| 929 | -state => 'active', | ||
| 930 | -command => [ \&_set_move_up ], | ||
| 931 | ); | ||
| 932 | |||
| 933 | =head2 Row index 1-2 col 3 | ||
| 934 | |||
| 935 | =cut | ||
| 936 | |||
| 937 | $VtopNVbot_upper_layer_plus_button = $mw->Button( | ||
| 938 | -font => $arial_18_bold, | ||
| 939 | -height => $var_L_SU->{_1_character}, | ||
| 940 | |||
| 941 | # -border => 0, | ||
| 942 | -padx => 0, | ||
| 943 | -pady => 0, | ||
| 944 | -text => '+', | ||
| 945 | -width => $var_L_SU->{_1_character}, | ||
| 946 | -background => $var_L_SU->{_my_light_grey}, | ||
| 947 | -foreground => $var_L_SU->{_my_black}, | ||
| 948 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 949 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 950 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 951 | -relief => 'flat', | ||
| 952 | -state => 'active', | ||
| 953 | -command => [ \&_setVtopNVbot_upper_layer_plus ], | ||
| 954 | ); | ||
| 955 | |||
| 956 | =head2 Row index 3-4 col 4 | ||
| 957 | |||
| 958 | =cut | ||
| 959 | |||
| 960 | $VtopNVbot_upper_layer_minus_button = $mw->Button( | ||
| 961 | -font => $arial_18_bold, | ||
| 962 | -height => $var_L_SU->{_1_character}, | ||
| 963 | |||
| 964 | # -border => 0, | ||
| 965 | -padx => 0, | ||
| 966 | -pady => 0, | ||
| 967 | -text => '-', | ||
| 968 | -width => $var_L_SU->{_1_character}, | ||
| 969 | -background => $var_L_SU->{_my_light_grey}, | ||
| 970 | -foreground => $var_L_SU->{_my_black}, | ||
| 971 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 972 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 973 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 974 | -relief => 'flat', | ||
| 975 | -state => 'active', | ||
| 976 | -command => [ \&_setVtopNVbot_upper_layer_minus ], | ||
| 977 | ); | ||
| 978 | |||
| 979 | =head2 Row index 2, col 6 | ||
| 980 | |||
| 981 | =cut | ||
| 982 | |||
| 983 | $Vtop_plus_button = $mw->Button( | ||
| 984 | -font => $arial_18_bold, | ||
| 985 | -height => $var_L_SU->{_1_character}, | ||
| 986 | |||
| 987 | # -border => 0, | ||
| 988 | -padx => 0, | ||
| 989 | -pady => 0, | ||
| 990 | -text => '+', | ||
| 991 | -width => $var_L_SU->{_1_character}, | ||
| 992 | -background => $var_L_SU->{_my_light_grey}, | ||
| 993 | -foreground => $var_L_SU->{_my_black}, | ||
| 994 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 995 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 996 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 997 | -relief => 'flat', | ||
| 998 | -state => 'active', | ||
| 999 | -command => [ \&_setVtop_plus ], | ||
| 1000 | ); | ||
| 1001 | |||
| 1002 | =head2 Row index | ||
| 1003 | |||
| 1004 | =cut | ||
| 1005 | |||
| 1006 | $VbotNtop_plus_button = $mw->Button( | ||
| 1007 | -font => $arial_18_bold, | ||
| 1008 | -height => $var_L_SU->{_1_character}, | ||
| 1009 | |||
| 1010 | # -border => 0, | ||
| 1011 | -padx => 0, | ||
| 1012 | -pady => 0, | ||
| 1013 | -text => '+', | ||
| 1014 | -width => $var_L_SU->{_1_character}, | ||
| 1015 | -background => $var_L_SU->{_my_light_grey}, | ||
| 1016 | -foreground => $var_L_SU->{_my_black}, | ||
| 1017 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 1018 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 1019 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 1020 | -relief => 'flat', | ||
| 1021 | -state => 'active', | ||
| 1022 | -command => [ \&_setVbotNtop_plus ], | ||
| 1023 | ); | ||
| 1024 | |||
| 1025 | =head2 | ||
| 1026 | |||
| 1027 | row index | ||
| 1028 | |||
| 1029 | =cut | ||
| 1030 | |||
| 1031 | $Vbot_plus_button = $mw->Button( | ||
| 1032 | -font => $arial_18_bold, | ||
| 1033 | -height => $var_L_SU->{_1_character}, | ||
| 1034 | |||
| 1035 | # -border => 0, | ||
| 1036 | -padx => 0, | ||
| 1037 | -pady => 0, | ||
| 1038 | -text => '+', | ||
| 1039 | -width => $var_L_SU->{_1_character}, | ||
| 1040 | -background => $var_L_SU->{_my_light_grey}, | ||
| 1041 | -foreground => $var_L_SU->{_my_black}, | ||
| 1042 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 1043 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 1044 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 1045 | -relief => 'flat', | ||
| 1046 | -state => 'active', | ||
| 1047 | |||
| 1048 | # -takefocus => 1, | ||
| 1049 | -command => [ \&_setVbot_plus ], | ||
| 1050 | ); | ||
| 1051 | |||
| 1052 | =head2 | ||
| 1053 | |||
| 1054 | row index | ||
| 1055 | |||
| 1056 | =cut | ||
| 1057 | |||
| 1058 | $VbotNVtop_lower_layer_plus_button = $mw->Button( | ||
| 1059 | -font => $arial_18_bold, | ||
| 1060 | -height => $var_L_SU->{_one_character}, | ||
| 1061 | |||
| 1062 | # -border => 0, | ||
| 1063 | -padx => 0, | ||
| 1064 | -pady => 0, | ||
| 1065 | -text => '+', | ||
| 1066 | -width => $var_L_SU->{_one_character}, | ||
| 1067 | -background => $var_L_SU->{_my_light_grey}, | ||
| 1068 | -foreground => $var_L_SU->{_my_black}, | ||
| 1069 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 1070 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 1071 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 1072 | -relief => 'flat', | ||
| 1073 | -state => 'active', | ||
| 1074 | -command => [ \&_setVbotNVtop_lower_layer_plus ], | ||
| 1075 | |||
| 1076 | ); | ||
| 1077 | |||
| 1078 | =head2 | ||
| 1079 | |||
| 1080 | row index | ||
| 1081 | |||
| 1082 | =cut | ||
| 1083 | |||
| 1084 | $VbotNVtop_lower_layer_minus_button = $mw->Button( | ||
| 1085 | -font => $arial_18_bold, | ||
| 1086 | -height => $var_L_SU->{_one_character}, | ||
| 1087 | |||
| 1088 | # -border => 0, | ||
| 1089 | -padx => 0, | ||
| 1090 | -pady => 0, | ||
| 1091 | -text => '-', | ||
| 1092 | -width => $var_L_SU->{_one_character}, | ||
| 1093 | -background => $var_L_SU->{_my_light_grey}, | ||
| 1094 | -foreground => $var_L_SU->{_my_black}, | ||
| 1095 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 1096 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 1097 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 1098 | -relief => 'flat', | ||
| 1099 | -state => 'active', | ||
| 1100 | -command => [ \&_setVbotNVtop_lower_layer_minus ], | ||
| 1101 | |||
| 1102 | ); | ||
| 1103 | |||
| 1104 | =head2 VbotNtop_multiply_button | ||
| 1105 | row index = 1 col 2 | ||
| 1106 | |||
| 1107 | =cut | ||
| 1108 | |||
| 1109 | $VbotNtop_multiply_button = $mw->Button( | ||
| 1110 | -font => $arial_18_bold, | ||
| 1111 | -height => $var_L_SU->{_1_character}, | ||
| 1112 | |||
| 1113 | # -border => 0, | ||
| 1114 | -padx => 0, | ||
| 1115 | -pady => 0, | ||
| 1116 | -text => 'x', | ||
| 1117 | -width => $var_L_SU->{_1_character}, | ||
| 1118 | -background => $var_L_SU->{_my_light_grey}, | ||
| 1119 | -foreground => $var_L_SU->{_my_black}, | ||
| 1120 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 1121 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 1122 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 1123 | -relief => 'flat', | ||
| 1124 | -state => 'active', | ||
| 1125 | -command => [ \&_setVbotNtop_multiply ], | ||
| 1126 | ); | ||
| 1127 | |||
| 1128 | =head2 | ||
| 1129 | row index = 1 col 2 | ||
| 1130 | |||
| 1131 | =cut | ||
| 1132 | |||
| 1133 | $VbotNtop_minus_button = $mw->Button( | ||
| 1134 | -font => $arial_18_bold, | ||
| 1135 | -height => $var_L_SU->{_1_character}, | ||
| 1136 | |||
| 1137 | # -border => 0, | ||
| 1138 | -padx => 0, | ||
| 1139 | -pady => 0, | ||
| 1140 | -text => '-', | ||
| 1141 | -width => $var_L_SU->{_1_character}, | ||
| 1142 | -background => $var_L_SU->{_my_light_grey}, | ||
| 1143 | -foreground => $var_L_SU->{_my_black}, | ||
| 1144 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 1145 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 1146 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 1147 | -relief => 'flat', | ||
| 1148 | -state => 'active', | ||
| 1149 | -command => [ \&_setVbotNtop_minus ], | ||
| 1150 | ); | ||
| 1151 | |||
| 1152 | =head2 | ||
| 1153 | row index = 2 col 7 | ||
| 1154 | |||
| 1155 | =cut | ||
| 1156 | |||
| 1157 | $Vtop_minus_button = $mw->Button( | ||
| 1158 | -font => $arial_18_bold, | ||
| 1159 | -height => $var_L_SU->{_one_character}, | ||
| 1160 | |||
| 1161 | # -border => 0, | ||
| 1162 | -padx => 0, | ||
| 1163 | -pady => 0, | ||
| 1164 | -text => '-', | ||
| 1165 | -width => $var_L_SU->{_one_character}, | ||
| 1166 | -background => $var_L_SU->{_my_light_grey}, | ||
| 1167 | -foreground => $var_L_SU->{_my_black}, | ||
| 1168 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 1169 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 1170 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 1171 | -relief => 'flat', | ||
| 1172 | -state => 'active', | ||
| 1173 | -command => [ \&_setVtop_minus ], | ||
| 1174 | |||
| 1175 | ); | ||
| 1176 | |||
| 1177 | =head2 | ||
| 1178 | row index = 3 col 7 | ||
| 1179 | |||
| 1180 | =cut | ||
| 1181 | |||
| 1182 | $Vbot_minus_button = $mw->Button( | ||
| 1183 | -font => $arial_18_bold, | ||
| 1184 | -height => $var_L_SU->{_one_character}, | ||
| 1185 | |||
| 1186 | # -border => 0, | ||
| 1187 | -padx => 0, | ||
| 1188 | -pady => 0, | ||
| 1189 | -text => '-', | ||
| 1190 | -width => $var_L_SU->{_one_character}, | ||
| 1191 | -background => $var_L_SU->{_my_light_grey}, | ||
| 1192 | -foreground => $var_L_SU->{_my_black}, | ||
| 1193 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 1194 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 1195 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 1196 | -relief => 'flat', | ||
| 1197 | -state => 'active', | ||
| 1198 | -command => [ \&_setVbot_minus ], | ||
| 1199 | |||
| 1200 | ); | ||
| 1201 | |||
| 1202 | =head2 Row index | ||
| 1203 | |||
| 1204 | =cut | ||
| 1205 | |||
| 1206 | $thickness_m_minus_button = $mw->Button( | ||
| 1207 | -font => $arial_14_bold, | ||
| 1208 | -height => $var_L_SU->{_1_character}, | ||
| 1209 | |||
| 1210 | # -border => 0, | ||
| 1211 | -padx => 0, | ||
| 1212 | -pady => 0, | ||
| 1213 | -text => '-', | ||
| 1214 | -width => $var_L_SU->{_1_character}, | ||
| 1215 | -background => $var_L_SU->{_my_light_grey}, | ||
| 1216 | -foreground => $var_L_SU->{_my_black}, | ||
| 1217 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 1218 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 1219 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 1220 | -relief => 'flat', | ||
| 1221 | -state => 'active', | ||
| 1222 | -command => [ \&_set_thickness_m_minus ], | ||
| 1223 | ); | ||
| 1224 | |||
| 1225 | =head2 Row index | ||
| 1226 | |||
| 1227 | =cut | ||
| 1228 | |||
| 1229 | $thickness_m_plus_button = $mw->Button( | ||
| 1230 | -font => $arial_14_bold, | ||
| 1231 | -height => $var_L_SU->{_1_character}, | ||
| 1232 | |||
| 1233 | # -border => 0, | ||
| 1234 | -padx => 0, | ||
| 1235 | -pady => 0, | ||
| 1236 | -text => '+', | ||
| 1237 | -width => $var_L_SU->{_1_character}, | ||
| 1238 | -background => $var_L_SU->{_my_light_grey}, | ||
| 1239 | -foreground => $var_L_SU->{_my_black}, | ||
| 1240 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 1241 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 1242 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 1243 | -relief => 'flat', | ||
| 1244 | -state => 'active', | ||
| 1245 | -command => [ \&_set_thickness_m_plus ], | ||
| 1246 | ); | ||
| 1247 | |||
| 1248 | =head2 Row index=5 | ||
| 1249 | |||
| 1250 | =cut | ||
| 1251 | |||
| 1252 | $update_button = $mw->Button( | ||
| 1253 | -font => $arial_14_bold, | ||
| 1254 | -height => $var_L_SU->{_1_character}, | ||
| 1255 | -border => 0, | ||
| 1256 | -padx => 0, | ||
| 1257 | -pady => 0, | ||
| 1258 | -text => 'Update', | ||
| 1259 | -width => $var_L_SU->{_1_character}, | ||
| 1260 | -background => $var_L_SU->{_my_yellow}, | ||
| 1261 | -foreground => $var_L_SU->{_my_black}, | ||
| 1262 | -disabledforeground => $var_L_SU->{_my_black}, | ||
| 1263 | -activeforeground => $var_L_SU->{_my_black}, | ||
| 1264 | -activebackground => $var_L_SU->{_my_yellow}, | ||
| 1265 | -relief => 'flat', | ||
| 1266 | -state => 'active', | ||
| 1267 | -command => [ \&_set_update ], | ||
| 1268 | ); | ||
| 1269 | |||
| 1270 | =head2 zoom_minus_button | ||
| 1271 | row index 1-2 col 3 | ||
| 1272 | |||
| 1273 | =cut | ||
| 1274 | |||
| 1275 | $zoom_minus_button = $mw->Button( | ||
| 1276 | -font => $arial_18_bold, | ||
| 1277 | -height => $var_L_SU->{_1_character}, | ||
| 1278 | |||
| 1279 | # -border => 0, | ||
| 1280 | -padx => 0, | ||
| 1281 | -pady => 0, | ||
| 1282 | -text => '-', | ||
| 1283 | -width => $var_L_SU->{_1_character}, | ||
| 1284 | -background => $var_L_SU->{_my_light_grey}, | ||
| 1285 | -foreground => $var_L_SU->{_my_black}, | ||
| 1286 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 1287 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 1288 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 1289 | -relief => 'flat', | ||
| 1290 | -state => 'active', | ||
| 1291 | -command => [ \&_set_zoom_minus ], | ||
| 1292 | ); | ||
| 1293 | |||
| 1294 | =head2 zoom_plus_button | ||
| 1295 | row index 1-2 col 3 | ||
| 1296 | |||
| 1297 | =cut | ||
| 1298 | |||
| 1299 | $zoom_plus_button = $mw->Button( | ||
| 1300 | -font => $arial_18_bold, | ||
| 1301 | -height => $var_L_SU->{_1_character}, | ||
| 1302 | |||
| 1303 | # -border => 0, | ||
| 1304 | -padx => 0, | ||
| 1305 | -pady => 0, | ||
| 1306 | -text => '+', | ||
| 1307 | -width => $var_L_SU->{_1_character}, | ||
| 1308 | -background => $var_L_SU->{_my_light_grey}, | ||
| 1309 | -foreground => $var_L_SU->{_my_black}, | ||
| 1310 | -disabledforeground => $var_L_SU->{_my_dark_grey}, | ||
| 1311 | -activeforeground => $var_L_SU->{_my_white}, | ||
| 1312 | -activebackground => $var_L_SU->{_my_dark_grey}, | ||
| 1313 | -relief => 'flat', | ||
| 1314 | -state => 'active', | ||
| 1315 | -command => [ \&_set_zoom_plus ], | ||
| 1316 | ); | ||
| 1317 | |||
| 1318 | #------------------------------- | ||
| 1319 | # LABEL WIDGETS | ||
| 1320 | #----------------------------- | ||
| 1321 | |||
| 1322 | |||
| 1323 | =head2 Label | ||
| 1324 | |||
| 1325 | Widget box for Vbot of upper layer | ||
| 1326 | |||
| 1327 | =cut | ||
| 1328 | |||
| 1329 | my $Vbot_upper_label = $mw->Label( | ||
| 1330 | -font => $arial_18, | ||
| 1331 | -pady => $var_L_SU->{_3_pixels}, | ||
| 1332 | -height => $var_L_SU->{_1_character}, | ||
| 1333 | -width => $var_L_SU->{_4_characters}, | ||
| 1334 | -text => 'Vbot', | ||
| 1335 | -borderwidth => $var_L_SU->{_1_pixel}, | ||
| 1336 | -background => $var_L_SU->{_light_gray}, | ||
| 1337 | ); | ||
| 1338 | |||
| 1339 | =head2 Label | ||
| 1340 | |||
| 1341 | Widget box for Vincrement | ||
| 1342 | |||
| 1343 | =cut | ||
| 1344 | |||
| 1345 | my $Vincrement_label = $mw->Label( | ||
| 1346 | -font => $arial_16_italic, | ||
| 1347 | -pady => $var_L_SU->{_3_pixels}, | ||
| 1348 | -height => $var_L_SU->{_1_character}, | ||
| 1349 | -width => $var_L_SU->{_4_characters}, | ||
| 1350 | -text => 'Vinc (m/s)', | ||
| 1351 | -borderwidth => $var_L_SU->{_1_pixel}, | ||
| 1352 | -background => $var_L_SU->{_light_gray}, | ||
| 1353 | ); | ||
| 1354 | |||
| 1355 | =head2 Label | ||
| 1356 | |||
| 1357 | Widget box for Vtop | ||
| 1358 | |||
| 1359 | =cut | ||
| 1360 | |||
| 1361 | my $Vtop_label = $mw->Label( | ||
| 1362 | -font => $arial_18_bold, | ||
| 1363 | -pady => $var_L_SU->{_3_pixels}, | ||
| 1364 | -height => $var_L_SU->{_1_character}, | ||
| 1365 | -width => $var_L_SU->{_4_characters}, | ||
| 1366 | -text => 'Vtop', | ||
| 1367 | -borderwidth => $var_L_SU->{_1_pixel}, | ||
| 1368 | -background => $var_L_SU->{_light_gray}, | ||
| 1369 | ); | ||
| 1370 | |||
| 1371 | =head2 Label | ||
| 1372 | |||
| 1373 | Widget box for Vtop of lower layer | ||
| 1374 | |||
| 1375 | =cut | ||
| 1376 | |||
| 1377 | my $Vtop_lower_layer_label = $mw->Label( | ||
| 1378 | -font => $arial_18, | ||
| 1379 | -pady => $var_L_SU->{_3_pixels}, | ||
| 1380 | -height => $var_L_SU->{_1_character}, | ||
| 1381 | -width => $var_L_SU->{_4_characters}, | ||
| 1382 | -text => 'Vtop', | ||
| 1383 | -borderwidth => $var_L_SU->{_1_pixel}, | ||
| 1384 | -background => $var_L_SU->{_light_gray}, | ||
| 1385 | ); | ||
| 1386 | |||
| 1387 | =head2 Label | ||
| 1388 | |||
| 1389 | for Vbot | ||
| 1390 | |||
| 1391 | =cut | ||
| 1392 | |||
| 1393 | my $Vbot_label = $mw->Label( | ||
| 1394 | -font => $arial_18_bold, | ||
| 1395 | -pady => $var_L_SU->{_3_pixels}, | ||
| 1396 | -height => $var_L_SU->{_1_character}, | ||
| 1397 | -width => $var_L_SU->{_4_characters}, | ||
| 1398 | -text => 'Vbot', | ||
| 1399 | -borderwidth => $var_L_SU->{_1_pixel}, | ||
| 1400 | -background => $var_L_SU->{_light_gray}, | ||
| 1401 | ); | ||
| 1402 | |||
| 1403 | =head2 Label | ||
| 1404 | |||
| 1405 | factor | ||
| 1406 | |||
| 1407 | =cut | ||
| 1408 | |||
| 1409 | my $VbotNtop_factor_label = $mw->Label( | ||
| 1410 | -font => $arial_16_italic, | ||
| 1411 | -pady => $var_L_SU->{_3_pixels}, | ||
| 1412 | -height => $var_L_SU->{_1_character}, | ||
| 1413 | -width => $var_L_SU->{_4_characters}, | ||
| 1414 | -text => 'Vfactor', | ||
| 1415 | -borderwidth => $var_L_SU->{_1_pixel}, | ||
| 1416 | -background => $var_L_SU->{_light_gray}, | ||
| 1417 | ); | ||
| 1418 | |||
| 1419 | =head2 Label | ||
| 1420 | |||
| 1421 | clip4plot | ||
| 1422 | |||
| 1423 | =cut | ||
| 1424 | |||
| 1425 | my $clip4plot_label = $mw->Label( | ||
| 1426 | -font => $arial_16_italic, | ||
| 1427 | -pady => $var_L_SU->{_3_pixels}, | ||
| 1428 | -height => $var_L_SU->{_1_character}, | ||
| 1429 | -width => $var_L_SU->{_4_characters}, | ||
| 1430 | -text => 'clip', | ||
| 1431 | -borderwidth => $var_L_SU->{_1_pixel}, | ||
| 1432 | -background => $var_L_SU->{_light_gray}, | ||
| 1433 | ); | ||
| 1434 | |||
| 1435 | =head2 Label | ||
| 1436 | |||
| 1437 | Widget box for thickness increment | ||
| 1438 | |||
| 1439 | =cut | ||
| 1440 | |||
| 1441 | my $thickness_increment_m_label = $mw->Label( | ||
| 1442 | -font => $arial_16_italic, | ||
| 1443 | -padx => $var_L_SU->{_3_pixels}, | ||
| 1444 | -height => $var_L_SU->{_1_character}, | ||
| 1445 | -width => $var_L_SU->{_4_characters}, | ||
| 1446 | -text => 'inc (m)', | ||
| 1447 | -borderwidth => $var_L_SU->{_1_pixel}, | ||
| 1448 | -background => $var_L_SU->{_light_gray}, | ||
| 1449 | ); | ||
| 1450 | |||
| 1451 | =head2 Label | ||
| 1452 | empty | ||
| 1453 | |||
| 1454 | =cut | ||
| 1455 | |||
| 1456 | my $empty_label = $mw->Label( | ||
| 1457 | -font => $arial_14, | ||
| 1458 | -pady => $var_L_SU->{_3_pixels}, | ||
| 1459 | -height => $var_L_SU->{_1_character}, | ||
| 1460 | -width => $var_L_SU->{_4_characters}, | ||
| 1461 | -text => '', | ||
| 1462 | -borderwidth => $var_L_SU->{_1_pixel}, | ||
| 1463 | -background => $var_L_SU->{_my_purple}, | ||
| 1464 | ); | ||
| 1465 | |||
| 1466 | =head2 Label | ||
| 1467 | |||
| 1468 | Widget box for Layer number | ||
| 1469 | |||
| 1470 | =cut | ||
| 1471 | |||
| 1472 | my $layerLabel = $mw->Label( | ||
| 1473 | -font => $arial_18_italic, | ||
| 1474 | -justify => 'left', | ||
| 1475 | -text => 'layer', | ||
| 1476 | -borderwidth => $var_L_SU->{_1_pixel}, | ||
| 1477 | -background => $var_L_SU->{_light_gray}, | ||
| 1478 | ); | ||
| 1479 | |||
| 1480 | =head2 Label | ||
| 1481 | |||
| 1482 | Widget box for Layer number | ||
| 1483 | |||
| 1484 | =cut | ||
| 1485 | |||
| 1486 | my $move_label = $mw->Label( | ||
| 1487 | -font => $arial_14_italic, | ||
| 1488 | -justify => 'center', | ||
| 1489 | -text => 'move', | ||
| 1490 | -borderwidth => $var_L_SU->{_1_pixel}, | ||
| 1491 | -background => $var_L_SU->{_light_gray}, | ||
| 1492 | ); | ||
| 1493 | |||
| 1494 | =head2 Label | ||
| 1495 | |||
| 1496 | Widget box for velocity m/s | ||
| 1497 | |||
| 1498 | =cut | ||
| 1499 | |||
| 1500 | my $velocity_label = $mw->Label( | ||
| 1501 | -font => $arial_18_italic, | ||
| 1502 | -justify => 'center', | ||
| 1503 | -text => 'Vp m/s', | ||
| 1504 | -borderwidth => $var_L_SU->{_1_pixel}, | ||
| 1505 | -background => $var_L_SU->{_light_gray}, | ||
| 1506 | ); | ||
| 1507 | |||
| 1508 | =head2 Label | ||
| 1509 | |||
| 1510 | Widget box for Layer number | ||
| 1511 | |||
| 1512 | =cut | ||
| 1513 | |||
| 1514 | my $zoom_label = $mw->Label( | ||
| 1515 | -font => $arial_14_italic, | ||
| 1516 | -justify => 'center', | ||
| 1517 | -text => 'zoom', | ||
| 1518 | -borderwidth => $var_L_SU->{_1_pixel}, | ||
| 1519 | -background => $var_L_SU->{_light_gray}, | ||
| 1520 | ); | ||
| 1521 | |||
| 1522 | =pod GRID STARTS HERE | ||
| 1523 | |||
| 1524 | =cut | ||
| 1525 | |||
| 1526 | =head2 Row index = 0 col8 | ||
| 1527 | |||
| 1528 | =cut | ||
| 1529 | |||
| 1530 | $Vlayer_frame->grid( | ||
| 1531 | $velocity_label, | ||
| 1532 | -row => 0, | ||
| 1533 | -column => 8, | ||
| 1534 | -columnspan => 1, | ||
| 1535 | -sticky => 'ew', | ||
| 1536 | ); | ||
| 1537 | |||
| 1538 | =head2 Row index = 0 col 9 | ||
| 1539 | |||
| 1540 | =cut | ||
| 1541 | |||
| 1542 | $Vlayer_frame->grid( | ||
| 1543 | $layerLabel, | ||
| 1544 | -row => 0, | ||
| 1545 | -column => 9, | ||
| 1546 | -columnspan => 1, | ||
| 1547 | -sticky => 'ew', | ||
| 1548 | ); | ||
| 1549 | |||
| 1550 | =head2 Row index = 0 col 10 | ||
| 1551 | |||
| 1552 | =cut | ||
| 1553 | |||
| 1554 | $Vlayer_frame->grid( | ||
| 1555 | $thickness_mLabel, | ||
| 1556 | -row => 0, | ||
| 1557 | -column => 10, | ||
| 1558 | -columnspan => 2, | ||
| 1559 | -sticky => 'ew', | ||
| 1560 | ); | ||
| 1561 | |||
| 1562 | =head2 Row index = 1-2 col 3 | ||
| 1563 | |||
| 1564 | =cut | ||
| 1565 | |||
| 1566 | $Vlayer_frame->grid( | ||
| 1567 | $VtopNVbot_upper_layer_plus_button, | ||
| 1568 | -row => 1, | ||
| 1569 | -column => 3, | ||
| 1570 | -rowspan => 2, | ||
| 1571 | -sticky => 'nsew', | ||
| 1572 | ); | ||
| 1573 | |||
| 1574 | =head2 Row index = 1-2 col4 | ||
| 1575 | |||
| 1576 | =cut | ||
| 1577 | |||
| 1578 | $Vlayer_frame->grid( | ||
| 1579 | $VtopNVbot_upper_layer_minus_button, | ||
| 1580 | -row => 1, | ||
| 1581 | -column => 4, | ||
| 1582 | -rowspan => 2, | ||
| 1583 | -sticky => 'nsew', | ||
| 1584 | ); | ||
| 1585 | |||
| 1586 | =head2 Row index = 1 col 8 | ||
| 1587 | |||
| 1588 | =cut | ||
| 1589 | |||
| 1590 | $Vlayer_frame->grid( | ||
| 1591 | $Vbot_upper_layerEntry, | ||
| 1592 | -row => 1, | ||
| 1593 | -column => 8, | ||
| 1594 | -rowspan => 1, | ||
| 1595 | -sticky => 'nsew', | ||
| 1596 | ); | ||
| 1597 | |||
| 1598 | =head2 Row index = 1 col 9 | ||
| 1599 | |||
| 1600 | =cut | ||
| 1601 | |||
| 1602 | $Vlayer_frame->grid( | ||
| 1603 | $upper_layerLabel, | ||
| 1604 | -row => 1, | ||
| 1605 | -column => 9, | ||
| 1606 | -rowspan => 1, | ||
| 1607 | -sticky => 'nsew', | ||
| 1608 | ); | ||
| 1609 | |||
| 1610 | =head2 Row index = 2 col 8 | ||
| 1611 | |||
| 1612 | =cut | ||
| 1613 | |||
| 1614 | $Vlayer_frame->grid( | ||
| 1615 | $VtopEntry, | ||
| 1616 | -row => 2, | ||
| 1617 | -column => 8, | ||
| 1618 | -rowspan => 1, | ||
| 1619 | -sticky => 'nsew', | ||
| 1620 | ); | ||
| 1621 | |||
| 1622 | =head2 Row index = 2 col9 | ||
| 1623 | |||
| 1624 | =cut | ||
| 1625 | |||
| 1626 | $Vlayer_frame->grid( | ||
| 1627 | $layerEntry, | ||
| 1628 | -row => 2, | ||
| 1629 | -column => 9, | ||
| 1630 | -rowspan => 2, | ||
| 1631 | -sticky => 'nsew', | ||
| 1632 | ); | ||
| 1633 | |||
| 1634 | =head2 Row index = 2 col10 | ||
| 1635 | |||
| 1636 | =cut | ||
| 1637 | |||
| 1638 | $Vlayer_frame->grid( | ||
| 1639 | $thickness_mEntry, | ||
| 1640 | -row => 2, | ||
| 1641 | -column => 10, | ||
| 1642 | -rowspan => 2, | ||
| 1643 | -sticky => 'nsew', | ||
| 1644 | ); | ||
| 1645 | |||
| 1646 | =head2 Row index = 2 col11 | ||
| 1647 | |||
| 1648 | =cut | ||
| 1649 | |||
| 1650 | $Vlayer_frame->grid( | ||
| 1651 | $thickness_m_minus_button, | ||
| 1652 | -row => 2, | ||
| 1653 | -column => 11, | ||
| 1654 | -rowspan => 1, | ||
| 1655 | -sticky => 'nsew', | ||
| 1656 | ); | ||
| 1657 | |||
| 1658 | =head2 Row index = 3 col11 | ||
| 1659 | |||
| 1660 | =cut | ||
| 1661 | |||
| 1662 | $Vlayer_frame->grid( | ||
| 1663 | $thickness_m_plus_button, | ||
| 1664 | -row => 3, | ||
| 1665 | -column => 11, | ||
| 1666 | -rowspan => 1, | ||
| 1667 | -sticky => 'nsew', | ||
| 1668 | ); | ||
| 1669 | |||
| 1670 | =head2 Row index = 3 col 8 | ||
| 1671 | |||
| 1672 | =cut | ||
| 1673 | |||
| 1674 | $Vlayer_frame->grid( | ||
| 1675 | $VbotEntry, | ||
| 1676 | -row => 3, | ||
| 1677 | -column => 8, | ||
| 1678 | -rowspan => 1, | ||
| 1679 | -sticky => 'nsew', | ||
| 1680 | ); | ||
| 1681 | |||
| 1682 | =head2 Row index = 4 col 8 | ||
| 1683 | |||
| 1684 | =cut | ||
| 1685 | |||
| 1686 | $Vlayer_frame->grid( | ||
| 1687 | $Vtop_lower_layerEntry, | ||
| 1688 | -row => 4, | ||
| 1689 | -column => 8, | ||
| 1690 | -rowspan => 1, | ||
| 1691 | -sticky => 'nsew', | ||
| 1692 | ); | ||
| 1693 | |||
| 1694 | =head2 Row index = 4 col 9 | ||
| 1695 | |||
| 1696 | =cut | ||
| 1697 | |||
| 1698 | $Vlayer_frame->grid( | ||
| 1699 | $lower_layerLabel, | ||
| 1700 | -row => 4, | ||
| 1701 | -column => 9, | ||
| 1702 | -rowspan => 1, | ||
| 1703 | -sticky => 'nsew', | ||
| 1704 | ); | ||
| 1705 | |||
| 1706 | =head2 Row index = 3-4 col 3 | ||
| 1707 | |||
| 1708 | =cut | ||
| 1709 | |||
| 1710 | $Vlayer_frame->grid( | ||
| 1711 | $VbotNVtop_lower_layer_plus_button, | ||
| 1712 | -row => 3, | ||
| 1713 | -column => 3, | ||
| 1714 | -rowspan => 2, | ||
| 1715 | -sticky => 'nsew', | ||
| 1716 | ); | ||
| 1717 | |||
| 1718 | =head2 Row index = 3-4 col 4 | ||
| 1719 | |||
| 1720 | =cut | ||
| 1721 | |||
| 1722 | $Vlayer_frame->grid( | ||
| 1723 | $VbotNVtop_lower_layer_minus_button, | ||
| 1724 | -row => 3, | ||
| 1725 | -column => 4, | ||
| 1726 | -rowspan => 2, | ||
| 1727 | -sticky => 'nsew', | ||
| 1728 | ); | ||
| 1729 | |||
| 1730 | =head2 Row index = 1 col 5 | ||
| 1731 | |||
| 1732 | =cut | ||
| 1733 | |||
| 1734 | $Vlayer_frame->grid( | ||
| 1735 | $Vbot_upper_label, | ||
| 1736 | -row => 1, | ||
| 1737 | -column => 5, | ||
| 1738 | -rowspan => 1, | ||
| 1739 | -sticky => 'nsew', | ||
| 1740 | ); | ||
| 1741 | |||
| 1742 | =head2 Row index = 2-3 col0 | ||
| 1743 | |||
| 1744 | =cut | ||
| 1745 | |||
| 1746 | $Vlayer_frame->grid( | ||
| 1747 | $VbotNtop_multiply_button, | ||
| 1748 | -row => 2, | ||
| 1749 | -column => 0, | ||
| 1750 | -rowspan => 2, | ||
| 1751 | -sticky => 'nsew', | ||
| 1752 | ); | ||
| 1753 | |||
| 1754 | =head2 Row index = 2-3 col 1 | ||
| 1755 | |||
| 1756 | =cut | ||
| 1757 | |||
| 1758 | $Vlayer_frame->grid( | ||
| 1759 | $VbotNtop_plus_button, | ||
| 1760 | -row => 2, | ||
| 1761 | -column => 1, | ||
| 1762 | -rowspan => 2, | ||
| 1763 | -sticky => 'nsew', | ||
| 1764 | ); | ||
| 1765 | |||
| 1766 | =head2 Row index = 2-3 col2 | ||
| 1767 | |||
| 1768 | =cut | ||
| 1769 | |||
| 1770 | $Vlayer_frame->grid( | ||
| 1771 | $VbotNtop_minus_button, | ||
| 1772 | -row => 2, | ||
| 1773 | -column => 2, | ||
| 1774 | -rowspan => 2, | ||
| 1775 | -sticky => 'nsew', | ||
| 1776 | ); | ||
| 1777 | |||
| 1778 | =head2 Row index 2 col 5 | ||
| 1779 | |||
| 1780 | =cut | ||
| 1781 | |||
| 1782 | $Vlayer_frame->grid( | ||
| 1783 | $Vtop_label, | ||
| 1784 | -row => 2, | ||
| 1785 | -column => 5, | ||
| 1786 | -rowspan => 1, | ||
| 1787 | ); | ||
| 1788 | |||
| 1789 | =head2 Row index 2 col 6 | ||
| 1790 | |||
| 1791 | =cut | ||
| 1792 | |||
| 1793 | $Vlayer_frame->grid( | ||
| 1794 | $Vtop_plus_button, | ||
| 1795 | -row => 2, | ||
| 1796 | -column => 6, | ||
| 1797 | -rowspan => 1, | ||
| 1798 | ); | ||
| 1799 | |||
| 1800 | =head2 Row index 2 col 7 | ||
| 1801 | |||
| 1802 | =cut | ||
| 1803 | |||
| 1804 | $Vlayer_frame->grid( | ||
| 1805 | $Vtop_minus_button, | ||
| 1806 | -row => 2, | ||
| 1807 | -column => 7, | ||
| 1808 | -rowspan => 1, | ||
| 1809 | ); | ||
| 1810 | |||
| 1811 | =head2 Row index 3 col5 | ||
| 1812 | |||
| 1813 | =cut | ||
| 1814 | |||
| 1815 | $Vlayer_frame->grid( | ||
| 1816 | $Vbot_label, | ||
| 1817 | -row => 3, | ||
| 1818 | -column => 5, | ||
| 1819 | -rowspan => 1, | ||
| 1820 | ); | ||
| 1821 | |||
| 1822 | =head2 Row index 3 col 6 | ||
| 1823 | |||
| 1824 | =cut | ||
| 1825 | |||
| 1826 | $Vlayer_frame->grid( | ||
| 1827 | $Vbot_plus_button, | ||
| 1828 | -row => 3, | ||
| 1829 | -column => 6, | ||
| 1830 | -rowspan => 1, | ||
| 1831 | ); | ||
| 1832 | |||
| 1833 | =head2 Row index 3 col 7 | ||
| 1834 | |||
| 1835 | =cut | ||
| 1836 | |||
| 1837 | $Vlayer_frame->grid( | ||
| 1838 | $Vbot_minus_button, | ||
| 1839 | -row => 3, | ||
| 1840 | -column => 7, | ||
| 1841 | -rowspan => 1, | ||
| 1842 | ); | ||
| 1843 | |||
| 1844 | =head2 Row index 4 col 5 | ||
| 1845 | =cut | ||
| 1846 | |||
| 1847 | $Vlayer_frame->grid( | ||
| 1848 | $Vtop_lower_layer_label, | ||
| 1849 | -row => 4, | ||
| 1850 | -column => 5, | ||
| 1851 | -rowspan => 1, | ||
| 1852 | -sticky => 'nsew', | ||
| 1853 | ); | ||
| 1854 | |||
| 1855 | =head2 Row index 5 col 8 | ||
| 1856 | =cut | ||
| 1857 | |||
| 1858 | $Vlayer_frame->grid( | ||
| 1859 | $update_button, | ||
| 1860 | -row => 5, | ||
| 1861 | -column => 8, | ||
| 1862 | -columnspan => 1, | ||
| 1863 | -rowspan => 1, | ||
| 1864 | -sticky => 'nsew', | ||
| 1865 | ); | ||
| 1866 | |||
| 1867 | =head2 Row index = 5 col 4 | ||
| 1868 | |||
| 1869 | =cut | ||
| 1870 | |||
| 1871 | $Vlayer_frame->grid( | ||
| 1872 | $empty_label, | ||
| 1873 | -row => 5, | ||
| 1874 | -column => 4, | ||
| 1875 | -columnspan => 2, | ||
| 1876 | -rowspan => 1, | ||
| 1877 | -pady => 1, | ||
| 1878 | -sticky => 'nsew', | ||
| 1879 | ); | ||
| 1880 | |||
| 1881 | =head2 Row index = 0 col 0 | ||
| 1882 | |||
| 1883 | =cut | ||
| 1884 | |||
| 1885 | $Vlayer_frame->grid( | ||
| 1886 | $exit_button, | ||
| 1887 | -row => 0, | ||
| 1888 | -column => 0, | ||
| 1889 | -columnspan => 2, | ||
| 1890 | -rowspan => 1, | ||
| 1891 | -pady => 1, | ||
| 1892 | -sticky => 'nsew', | ||
| 1893 | ); | ||
| 1894 | |||
| 1895 | =head2 Row index = 8 col 1 | ||
| 1896 | |||
| 1897 | =cut | ||
| 1898 | |||
| 1899 | $Vlayer_frame->grid( | ||
| 1900 | $move_down_button, | ||
| 1901 | -row => 8, | ||
| 1902 | -column => 1, | ||
| 1903 | -columnspan => 2, | ||
| 1904 | -rowspan => 1, | ||
| 1905 | -pady => 1, | ||
| 1906 | -sticky => 'nsew', | ||
| 1907 | ); | ||
| 1908 | |||
| 1909 | =head2 Row index = 7 col 0 | ||
| 1910 | |||
| 1911 | =cut | ||
| 1912 | |||
| 1913 | $Vlayer_frame->grid( | ||
| 1914 | $move_left_button, | ||
| 1915 | -row => 7, | ||
| 1916 | -column => 0, | ||
| 1917 | -columnspan => 1, | ||
| 1918 | -rowspan => 1, | ||
| 1919 | -sticky => 'nsew', | ||
| 1920 | ); | ||
| 1921 | |||
| 1922 | =head2 Row index = 7 col 3 | ||
| 1923 | |||
| 1924 | =cut | ||
| 1925 | |||
| 1926 | $Vlayer_frame->grid( | ||
| 1927 | $move_right_button, | ||
| 1928 | -row => 7, | ||
| 1929 | -column => 3, | ||
| 1930 | -columnspan => 1, | ||
| 1931 | -rowspan => 1, | ||
| 1932 | -sticky => 'nsew', | ||
| 1933 | ); | ||
| 1934 | |||
| 1935 | =head2 Row index = 6 col 1 | ||
| 1936 | |||
| 1937 | =cut | ||
| 1938 | |||
| 1939 | $Vlayer_frame->grid( | ||
| 1940 | $move_up_button, | ||
| 1941 | -row => 6, | ||
| 1942 | -column => 1, | ||
| 1943 | -columnspan => 2, | ||
| 1944 | -pady => 0, | ||
| 1945 | -rowspan => 1, | ||
| 1946 | -sticky => 'nsew', | ||
| 1947 | ); | ||
| 1948 | |||
| 1949 | =head2 Row index = 7 col 1 | ||
| 1950 | |||
| 1951 | =cut | ||
| 1952 | |||
| 1953 | $Vlayer_frame->grid( | ||
| 1954 | $move_label, | ||
| 1955 | -row => 7, | ||
| 1956 | -column => 1, | ||
| 1957 | -columnspan => 2, | ||
| 1958 | -rowspan => 1, | ||
| 1959 | -sticky => 'nsew', | ||
| 1960 | ); | ||
| 1961 | |||
| 1962 | =head2 Row index = 7 col 5 | ||
| 1963 | |||
| 1964 | =cut | ||
| 1965 | |||
| 1966 | $Vlayer_frame->grid( | ||
| 1967 | $zoom_label, | ||
| 1968 | -row => 7, | ||
| 1969 | -column => 5, | ||
| 1970 | -columnspan => 2, | ||
| 1971 | -rowspan => 1, | ||
| 1972 | -sticky => 'nsew', | ||
| 1973 | ); | ||
| 1974 | |||
| 1975 | =head2 Row index = 6 col 5 | ||
| 1976 | |||
| 1977 | =cut | ||
| 1978 | |||
| 1979 | $Vlayer_frame->grid( | ||
| 1980 | $zoom_plus_button, | ||
| 1981 | -row => 6, | ||
| 1982 | -column => 5, | ||
| 1983 | -columnspan => 2, | ||
| 1984 | -rowspan => 1, | ||
| 1985 | -sticky => 'nsew', | ||
| 1986 | ); | ||
| 1987 | |||
| 1988 | =head2 Row index = 8 col 5 | ||
| 1989 | |||
| 1990 | =cut | ||
| 1991 | |||
| 1992 | $Vlayer_frame->grid( | ||
| 1993 | $zoom_minus_button, | ||
| 1994 | -row => 8, | ||
| 1995 | -column => 5, | ||
| 1996 | -columnspan => 2, | ||
| 1997 | -rowspan => 1, | ||
| 1998 | -sticky => 'nsew', | ||
| 1999 | ); | ||
| 2000 | |||
| 2001 | =head2 Row index = 6 col 8 | ||
| 2002 | |||
| 2003 | =cut | ||
| 2004 | |||
| 2005 | $Vlayer_frame->grid( | ||
| 2006 | $Vincrement_label, | ||
| 2007 | -row => 6, | ||
| 2008 | -column => 8, | ||
| 2009 | -columnspan => 1, | ||
| 2010 | -rowspan => 1, | ||
| 2011 | -sticky => 'nsew', | ||
| 2012 | ); | ||
| 2013 | |||
| 2014 | =head2 Row index = 7 col 8 | ||
| 2015 | |||
| 2016 | =cut | ||
| 2017 | |||
| 2018 | $Vlayer_frame->grid( | ||
| 2019 | $thickness_increment_m_label, | ||
| 2020 | -row => 7, | ||
| 2021 | -column => 8, # | ||
| 2022 | -columnspan => 1, | ||
| 2023 | -rowspan => 1, | ||
| 2024 | -sticky => 'nsew', | ||
| 2025 | ); | ||
| 2026 | |||
| 2027 | =head2 Row index = 8 col 8 | ||
| 2028 | |||
| 2029 | =cut | ||
| 2030 | |||
| 2031 | $Vlayer_frame->grid( | ||
| 2032 | $VbotNtop_factor_label, | ||
| 2033 | -row => 8, | ||
| 2034 | -column => 8, | ||
| 2035 | -columnspan => 1, | ||
| 2036 | -rowspan => 1, | ||
| 2037 | -sticky => 'nsew', | ||
| 2038 | ); | ||
| 2039 | |||
| 2040 | =head2 Row index = 9 col 9 | ||
| 2041 | |||
| 2042 | =cut | ||
| 2043 | |||
| 2044 | $Vlayer_frame->grid( | ||
| 2045 | $clip4plot_label, | ||
| 2046 | -row => 9, | ||
| 2047 | -column => 8, | ||
| 2048 | -columnspan => 1, | ||
| 2049 | -rowspan => 1, | ||
| 2050 | -sticky => 'nsew', | ||
| 2051 | ); | ||
| 2052 | |||
| 2053 | =head2 Row index = 9 col 8 | ||
| 2054 | |||
| 2055 | =cut | ||
| 2056 | |||
| 2057 | $Vlayer_frame->grid( | ||
| 2058 | $clip4plotEntry, | ||
| 2059 | -row => 9, | ||
| 2060 | -column => 9, | ||
| 2061 | -columnspan => 1, | ||
| 2062 | -rowspan => 1, | ||
| 2063 | -sticky => 'nsew', | ||
| 2064 | ); | ||
| 2065 | |||
| 2066 | =head2 Row index = 6 col 9 | ||
| 2067 | |||
| 2068 | =cut | ||
| 2069 | |||
| 2070 | $Vlayer_frame->grid( | ||
| 2071 | $VincrementEntry, | ||
| 2072 | -row => 6, | ||
| 2073 | -column => 9, | ||
| 2074 | -columnspan => 1, | ||
| 2075 | -rowspan => 1, | ||
| 2076 | -sticky => 'nsew', | ||
| 2077 | ); | ||
| 2078 | |||
| 2079 | =head2 Row index = 7 col 9 | ||
| 2080 | |||
| 2081 | =cut | ||
| 2082 | |||
| 2083 | $Vlayer_frame->grid( | ||
| 2084 | $thickness_increment_mEntry, | ||
| 2085 | -row => 7, | ||
| 2086 | -column => 9, | ||
| 2087 | -columnspan => 1, | ||
| 2088 | -rowspan => 1, | ||
| 2089 | -sticky => 'nsew', | ||
| 2090 | ); | ||
| 2091 | |||
| 2092 | =head2 Row index = 9 col 8 | ||
| 2093 | |||
| 2094 | =cut | ||
| 2095 | |||
| 2096 | $Vlayer_frame->grid( | ||
| 2097 | $VbotNtop_factorEntry, | ||
| 2098 | -row => 8, | ||
| 2099 | -column => 9, | ||
| 2100 | -columnspan => 1, | ||
| 2101 | -rowspan => 1, | ||
| 2102 | -sticky => 'nsew', | ||
| 2103 | ); | ||
| 2104 | |||
| 2105 | MainLoop; # for Tk widgets | ||
| 2106 | |||
| 2107 | sub _delay { | ||
| 2108 | my ($self) = @_; | ||
| 2109 | |||
| 2110 | my ($time_passed, $usecs_now,$usecs_start); | ||
| 2111 | my ($secs_now,$secs_start); | ||
| 2112 | |||
| 2113 | ($secs_start,$usecs_start) = gettimeofday(); | ||
| 2114 | $time_passed = $immodpg_var->{_time_passed_us_default}; | ||
| 2115 | |||
| 2116 | while ( $time_passed < $immodpg_var->{_time_delay_us} ) { | ||
| 2117 | |||
| 2118 | ($secs_now,$usecs_now) = gettimeofday(); | ||
| 2119 | $time_passed = $usecs_now - $usecs_start; | ||
| 2120 | |||
| 2121 | } | ||
| 2122 | |||
| 2123 | # if( $time_passed > $immodpg_var->{_time_delay_s} ) { | ||
| 2124 | # print("usecs_now = $usecs_now\n"); | ||
| 2125 | # print("time_passed=$time_passed\n"); | ||
| 2126 | # } | ||
| 2127 | |||
| 2128 | return(); | ||
| 2129 | } | ||
| 2130 | |||
| 2131 | |||
| 2132 | #---------------------------------------------- | ||
| 2133 | # Unified callback dispatcher | ||
| 2134 | #---------------------------------------------- | ||
| 2135 | |||
| 2136 | sub _call { | ||
| 2137 | my ($method, $return_1) = @_; | ||
| 2138 | |||
| 2139 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2140 | |||
| 2141 | # Call the method on the immodpg object | ||
| 2142 | $immodpg->$method(); | ||
| 2143 | |||
| 2144 | return 1 if $return_1; # For Entry-validation subs | ||
| 2145 | return; | ||
| 2146 | } | ||
| 2147 | |||
| 2148 | =head2 sub _setVincrement | ||
| 2149 | |||
| 2150 | Sets interaction with immodpg.for | ||
| 2151 | Writes out Vincrement for immodpg to read | ||
| 2152 | return(1) validates command for Entry | ||
| 2153 | |||
| 2154 | =cut | ||
| 2155 | sub _setVincrement { _call('setVincrement', 1) } | ||
| 2156 | # sub _setVincrement { | ||
| 2157 | # | ||
| 2158 | # print("immodpg.pl,_Vincrement,$immodpg_Tk->{_VincrementEntry}\n"); | ||
| 2159 | # $immodpg->set_widgets($immodpg_Tk); | ||
| 2160 | # $immodpg->setVincrement(); | ||
| 2161 | # return (1); | ||
| 2162 | # } | ||
| 2163 | |||
| 2164 | =head2 sub _setVbotNtop_factor | ||
| 2165 | |||
| 2166 | Sets interaction with immodpg.for | ||
| 2167 | Writes out VbotNtop_factor for immodpg to read | ||
| 2168 | return(1) validates command for Entry | ||
| 2169 | |||
| 2170 | =cut | ||
| 2171 | |||
| 2172 | sub _setVbotNtop_factor { _call('setVbotNtop_factor', 1) } | ||
| 2173 | |||
| 2174 | # sub _setVbotNtop_factor { | ||
| 2175 | |||
| 2176 | # print("immodpg.pl,_setVbotNtop_factor,$immodpg_Tk->{_VbotNtop_factorEntry}\n"); | ||
| 2177 | # $immodpg->set_widgets($immodpg_Tk); | ||
| 2178 | # $immodpg->setVbotNtop_factor(); | ||
| 2179 | # return (1); | ||
| 2180 | # } | ||
| 2181 | |||
| 2182 | =head2 sub _set_clip | ||
| 2183 | _set_clip sets | ||
| 2184 | interaction with immodpg.for | ||
| 2185 | Writes out clip for immodpg to read | ||
| 2186 | return(1) validates command for Entry' | ||
| 2187 | print("immodpg.pl,_set_clip,$immodpg_Tk->{_clip4plotEntry}\n"); | ||
| 2188 | |||
| 2189 | =cut | ||
| 2190 | |||
| 2191 | sub _set_clip { | ||
| 2192 | |||
| 2193 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2194 | $immodpg->set_clip(); | ||
| 2195 | return (1); | ||
| 2196 | } | ||
| 2197 | |||
| 2198 | =head2 sub _set_layer | ||
| 2199 | _set_layer | ||
| 2200 | Write out message for mmodpg.f | ||
| 2201 | Writes out layer for immodpg to read | ||
| 2202 | return(1) validates command for Entry | ||
| 2203 | |||
| 2204 | =cut | ||
| 2205 | |||
| 2206 | sub _set_layer { _call('set_layer', 1) } | ||
| 2207 | # sub _set_layer { | ||
| 2208 | |||
| 2209 | # print("immodpg.pl,_set_layer,$immodpg_Tk->{_layerEntry}\n"); | ||
| 2210 | # print("\nimmodpg.pl,_set_layer,layer=$layer\n"); | ||
| 2211 | # $immodpg->set_widgets($immodpg_Tk); | ||
| 2212 | # $immodpg->set_layer(); | ||
| 2213 | # return (1); | ||
| 2214 | # } | ||
| 2215 | |||
| 2216 | =head2 sub _setVbot | ||
| 2217 | |||
| 2218 | Callbacks: | ||
| 2219 | Write out message for mmodpg.f | ||
| 2220 | set_option and set_change | ||
| 2221 | set interactions with immodpg.f | ||
| 2222 | return(1) validates command for Entry | ||
| 2223 | |||
| 2224 | =cut | ||
| 2225 | |||
| 2226 | sub _setVbot { _call('setVbot', 1) } | ||
| 2227 | # sub _setVbot { | ||
| 2228 | |||
| 2229 | # print("main,_setVbot, Vbot_opt=$Vbot_opt\n"); | ||
| 2230 | # print("main,_setVbot, immodpg_Tk->{_VbotEntry}= $immodpg_Tk->{_VbotEntry}\n"); | ||
| 2231 | # $immodpg->set_widgets($immodpg_Tk); | ||
| 2232 | # $immodpg->setVbot(); | ||
| 2233 | # return (1); | ||
| 2234 | # } | ||
| 2235 | |||
| 2236 | =head2 sub _setVbot_upper_layer | ||
| 2237 | |||
| 2238 | Callbacks write out message for mmodpg.f | ||
| 2239 | set_option and set_change | ||
| 2240 | Set interactions with immodpg.f | ||
| 2241 | return(1) validates command for Entry | ||
| 2242 | |||
| 2243 | =cut | ||
| 2244 | |||
| 2245 | sub _setVbot_upper_layer { _call('setVbot_upper_layer', 1) } | ||
| 2246 | # sub _setVbot_upper_layer { | ||
| 2247 | |||
| 2248 | # my ($self) = @_; | ||
| 2249 | |||
| 2250 | # print("main,_setVbot_upper_layer, Vbot_upper_layer_opt=$Vbot_upper_layer_opt\n"); | ||
| 2251 | # $immodpg->set_widgets($immodpg_Tk); | ||
| 2252 | # $immodpg->setVbot_upper_layer(); | ||
| 2253 | # return (1); | ||
| 2254 | # } | ||
| 2255 | |||
| 2256 | =head2 sub _setVtop | ||
| 2257 | |||
| 2258 | Callbacks write out message for mmodpg.f | ||
| 2259 | set_option and set_change | ||
| 2260 | set interactions with immodpg.f | ||
| 2261 | return(1) validates command for Entry | ||
| 2262 | |||
| 2263 | =cut | ||
| 2264 | |||
| 2265 | sub _setVtop { _call('setVtop', 1) } | ||
| 2266 | # sub _setVtop { | ||
| 2267 | |||
| 2268 | # print("main,_setVtop, Vtop_opt=$Vtop_opt\n"); | ||
| 2269 | # $immodpg->set_widgets($immodpg_Tk); | ||
| 2270 | # $immodpg->setVtop(); | ||
| 2271 | # return (1); | ||
| 2272 | # } | ||
| 2273 | |||
| 2274 | =head2 sub _setVtop_lower_layer | ||
| 2275 | |||
| 2276 | Callbacks write out message for mmodpg.f | ||
| 2277 | set_option and set_change | ||
| 2278 | set interactions with immodpg.f | ||
| 2279 | return(1) validates command for Entry | ||
| 2280 | |||
| 2281 | =cut | ||
| 2282 | |||
| 2283 | sub _setVtop_lower_layer { _call('setVtop_lower_layer', 1) } | ||
| 2284 | # sub _setVtop_lower_layer { | ||
| 2285 | |||
| 2286 | # my ($self) = @_; | ||
| 2287 | |||
| 2288 | # print("main,_setVtop_lower_layer, Vtop_lower_layer_opt=$Vtop_lower_layer_opt\n"); | ||
| 2289 | # $immodpg->set_widgets($immodpg_Tk); | ||
| 2290 | # $immodpg->setVtop_lower_layer(); | ||
| 2291 | # return (1); | ||
| 2292 | # } | ||
| 2293 | |||
| 2294 | =head2 sub _setVbotNtop_multiply | ||
| 2295 | |||
| 2296 | Callbacks: | ||
| 2297 | - provide widgets to immodpg | ||
| 2298 | -refocus allows other Entries to update (focus) | ||
| 2299 | -update the gui for factor (_setVbotNtop_factor) | ||
| 2300 | _setVbotNtop_factor ALSO provides widgets to immodpg | ||
| 2301 | -update gui velocities (->setVbotNtop_multiply) | ||
| 2302 | -Write out message for mmodpg.f: | ||
| 2303 | set_option | ||
| 2304 | set_change | ||
| 2305 | set interactions with immodpg.f | ||
| 2306 | |||
| 2307 | =cut | ||
| 2308 | |||
| 2309 | sub _setVbotNtop_multiply { | ||
| 2310 | |||
| 2311 | print("main,_setVbotNtop_multiply, VbotNtop_multiply_opt=$VbotNtop_multiply_opt\n"); | ||
| 2312 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2313 | $immodpg->setVbotNtop_multiply(); | ||
| 2314 | |||
| 2315 | } | ||
| 2316 | |||
| 2317 | =head2 sub _setVbot_minus | ||
| 2318 | |||
| 2319 | |||
| 2320 | Callbacks write out message for mmodpg.f | ||
| 2321 | set_option and set_change | ||
| 2322 | set interactions with immodpg.f | ||
| 2323 | print("write Vbot_minus_opt -, $Vbot_minus_opt\n"); | ||
| 2324 | |||
| 2325 | =cut | ||
| 2326 | |||
| 2327 | sub _setVbot_minus { | ||
| 2328 | |||
| 2329 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2330 | $immodpg->setVbot_minus(); | ||
| 2331 | |||
| 2332 | } | ||
| 2333 | |||
| 2334 | |||
| 2335 | =head2 sub _setVbotNVtop_lower_layer_minus | ||
| 2336 | |||
| 2337 | Callbacks write out message for mmodpg.f | ||
| 2338 | set_option and set_change | ||
| 2339 | set interactions with immodpg.f | ||
| 2340 | print("write VbotNVtop_lower_layer_minus -, $VbotNVtop_lower_layer_minus_opt \n"); | ||
| 2341 | |||
| 2342 | =cut | ||
| 2343 | |||
| 2344 | sub _setVbotNVtop_lower_layer_minus { | ||
| 2345 | |||
| 2346 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2347 | $immodpg->setVbotNVtop_lower_layer_minus(); | ||
| 2348 | |||
| 2349 | } | ||
| 2350 | |||
| 2351 | =head2 sub _setVbotNVtop_lower_layer_plus | ||
| 2352 | |||
| 2353 | Callbacks write out message for mmodpg.f | ||
| 2354 | set_option and set_change | ||
| 2355 | set interactions with immodpg.f | ||
| 2356 | |||
| 2357 | print("write VbotNVtop_lower_layer_plus +, $VbotNVtop_lower_layer_plus_opt \n"); | ||
| 2358 | =cut | ||
| 2359 | |||
| 2360 | sub _setVbotNVtop_lower_layer_plus { | ||
| 2361 | |||
| 2362 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2363 | $immodpg->setVbotNVtop_lower_layer_plus(); | ||
| 2364 | |||
| 2365 | } | ||
| 2366 | |||
| 2367 | =head2 sub _setVbot_plus | ||
| 2368 | |||
| 2369 | Callbacks write out message for mmodpg.f | ||
| 2370 | set_option and set_change | ||
| 2371 | set interactions with immodpg.f | ||
| 2372 | print("main _setVbot_plus,Vbot_plus_opt +=$Vbot_plus_opt\n"); | ||
| 2373 | |||
| 2374 | =cut | ||
| 2375 | |||
| 2376 | sub _setVbot_plus { | ||
| 2377 | |||
| 2378 | |||
| 2379 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2380 | $immodpg->setVbot_plus(); | ||
| 2381 | |||
| 2382 | } | ||
| 2383 | |||
| 2384 | =head2 sub _setVtop_minus | ||
| 2385 | |||
| 2386 | Callbacks | ||
| 2387 | setVtop_minus: | ||
| 2388 | modify gui | ||
| 2389 | set_option: | ||
| 2390 | Write out message for mmodpg.f | ||
| 2391 | set_change: | ||
| 2392 | set interactions with immodpg.f | ||
| 2393 | |||
| 2394 | print("write Vtop_minus_opt -, $Vtop_minus_opt\n"); | ||
| 2395 | =cut | ||
| 2396 | |||
| 2397 | sub _setVtop_minus { | ||
| 2398 | |||
| 2399 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2400 | $immodpg->setVtop_minus(); | ||
| 2401 | |||
| 2402 | } | ||
| 2403 | |||
| 2404 | =head2 sub _setVtop_plus | ||
| 2405 | |||
| 2406 | Callbacks | ||
| 2407 | setVtop_plus: | ||
| 2408 | modify gui | ||
| 2409 | set_option: | ||
| 2410 | Write out message for mmodpg.f | ||
| 2411 | set_change: | ||
| 2412 | set interactions with immodpg.f | ||
| 2413 | |||
| 2414 | print("write Vtop_plus_opt +,$Vtop_plus_opt\n"); | ||
| 2415 | =cut | ||
| 2416 | |||
| 2417 | sub _setVtop_plus { | ||
| 2418 | |||
| 2419 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2420 | $immodpg->setVtop_plus(); | ||
| 2421 | |||
| 2422 | } | ||
| 2423 | |||
| 2424 | =head2 sub _setVbotNtop_minus | ||
| 2425 | |||
| 2426 | Callbacks | ||
| 2427 | setVtop_plus: | ||
| 2428 | modify gui | ||
| 2429 | set_option: | ||
| 2430 | Write out message for mmodpg.f | ||
| 2431 | set_change: | ||
| 2432 | set interactions with immodpg.f | ||
| 2433 | create pause between Vbot and Vtop changes | ||
| 2434 | |||
| 2435 | =cut | ||
| 2436 | |||
| 2437 | sub _setVbotNtop_minus { | ||
| 2438 | my ($self) = @_; | ||
| 2439 | |||
| 2440 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2441 | $immodpg->setVbotNtop_minus(); | ||
| 2442 | |||
| 2443 | } | ||
| 2444 | |||
| 2445 | =head2 sub _setVbotNtop_plus | ||
| 2446 | |||
| 2447 | Callbacks write out message for mmodpg.f | ||
| 2448 | set_option and set_change | ||
| 2449 | set interactions with immodpg.f | ||
| 2450 | print("write VbotNVtop_plus +\n"); | ||
| 2451 | |||
| 2452 | =cut | ||
| 2453 | |||
| 2454 | sub _setVbotNtop_plus { | ||
| 2455 | |||
| 2456 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2457 | $immodpg->setVbotNtop_plus(); | ||
| 2458 | |||
| 2459 | } | ||
| 2460 | |||
| 2461 | |||
| 2462 | =head2 sub _setVtopNVbot_upper_layer_minus | ||
| 2463 | |||
| 2464 | Callbacks | ||
| 2465 | setVtop_plus: | ||
| 2466 | modify gui | ||
| 2467 | set_option: | ||
| 2468 | Write out message for mmodpg.f | ||
| 2469 | set_change: | ||
| 2470 | set interactions with immodpg.f | ||
| 2471 | |||
| 2472 | print("main,_setVtopNVbot_upper_layer_minus, write VtopNVbot_upper_layer_minus -,$VtopNVbot_upper_layer_minus_opt \n"); | ||
| 2473 | |||
| 2474 | =cut | ||
| 2475 | |||
| 2476 | sub _setVtopNVbot_upper_layer_minus { | ||
| 2477 | |||
| 2478 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2479 | $immodpg->setVtopNVbot_upper_layer_minus(); | ||
| 2480 | } | ||
| 2481 | |||
| 2482 | =head2 sub _setVtopNVbot_upper_layer_plus | ||
| 2483 | |||
| 2484 | Callbacks | ||
| 2485 | setVtop_plus: | ||
| 2486 | modify gui | ||
| 2487 | set_option: | ||
| 2488 | Write out message for mmodpg.f | ||
| 2489 | set_change: | ||
| 2490 | set interactions with immodpg.f | ||
| 2491 | print("write VtopNVbot_upper_layer_plus +, $VtopNVbot_upper_layer_plus_opt \n"); | ||
| 2492 | |||
| 2493 | =cut | ||
| 2494 | |||
| 2495 | sub _setVtopNVbot_upper_layer_plus { | ||
| 2496 | |||
| 2497 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2498 | $immodpg->setVtopNVbot_upper_layer_plus(); | ||
| 2499 | |||
| 2500 | } | ||
| 2501 | |||
| 2502 | =head2 sub _set_exit | ||
| 2503 | |||
| 2504 | |||
| 2505 | Callbacks write out message for mmodpg.f | ||
| 2506 | Write out | ||
| 2507 | saying goodbye | ||
| 2508 | clear old images | ||
| 2509 | kill window | ||
| 2510 | stop script | ||
| 2511 | print("write_set_exit\n"); | ||
| 2512 | $exit_button->focus; | ||
| 2513 | |||
| 2514 | =cut | ||
| 2515 | |||
| 2516 | sub _set_exit { | ||
| 2517 | my ($self) = @_; | ||
| 2518 | |||
| 2519 | $immodpg->set_option($exit_opt); | ||
| 2520 | $immodpg->set_change($yes); | ||
| 2521 | |||
| 2522 | kill pgxwin_server | ||
| 2523 | $immodpg->exit(); | ||
| 2524 | |||
| 2525 | kill mw window | ||
| 2526 | $mw->destroy() if Tk::Exists($mw); | ||
| 2527 | |||
| 2528 | } | ||
| 2529 | |||
| 2530 | #------------------------------ | ||
| 2531 | # MOVEMENT BUTTONS | ||
| 2532 | #------------------------------ | ||
| 2533 | |||
| 2534 | =head2 sub _set_move_down | ||
| 2535 | |||
| 2536 | Callbacks write out message for mmodpg.f | ||
| 2537 | Write out | ||
| 2538 | |||
| 2539 | $move_down_button->focus; | ||
| 2540 | print("write _set_move_down -\n"); | ||
| 2541 | |||
| 2542 | =cut | ||
| 2543 | |||
| 2544 | sub _set_move_down { | ||
| 2545 | |||
| 2546 | $immodpg->set_option($move_down_opt); | ||
| 2547 | $immodpg->set_change($yes); | ||
| 2548 | |||
| 2549 | } | ||
| 2550 | |||
| 2551 | =head2 sub _set_move_left | ||
| 2552 | |||
| 2553 | Callbacks write out message for mmodpg.f | ||
| 2554 | Write out | ||
| 2555 | $move_left_button->focus; | ||
| 2556 | print("write_set_move_left -\n"); | ||
| 2557 | |||
| 2558 | =cut | ||
| 2559 | |||
| 2560 | sub _set_move_left { | ||
| 2561 | |||
| 2562 | $immodpg->set_option($move_left_opt); | ||
| 2563 | $immodpg->set_change($yes); | ||
| 2564 | |||
| 2565 | } | ||
| 2566 | |||
| 2567 | =head2 sub _set_move_right | ||
| 2568 | |||
| 2569 | Callbacks write out message for mmodpg.f | ||
| 2570 | Write out | ||
| 2571 | $move_right_button->focus; | ||
| 2572 | print("write_set_move_right -\n"); | ||
| 2573 | |||
| 2574 | =cut | ||
| 2575 | |||
| 2576 | sub _set_move_right { | ||
| 2577 | |||
| 2578 | $immodpg->set_option($move_right_opt); | ||
| 2579 | $immodpg->set_change($yes); | ||
| 2580 | |||
| 2581 | } | ||
| 2582 | |||
| 2583 | =head2 sub _set_move_up | ||
| 2584 | |||
| 2585 | Callbacks write out message for mmodpg.f | ||
| 2586 | Write out | ||
| 2587 | print("write_set_move_up -\n"); | ||
| 2588 | $move_up_button->focus; | ||
| 2589 | |||
| 2590 | =cut | ||
| 2591 | |||
| 2592 | sub _set_move_up { | ||
| 2593 | |||
| 2594 | $immodpg->set_option($move_up_opt); | ||
| 2595 | $immodpg->set_change($yes); | ||
| 2596 | |||
| 2597 | } | ||
| 2598 | |||
| 2599 | =head2 sub _set_update | ||
| 2600 | |||
| 2601 | New focus is needed within set_update, | ||
| 2602 | specifically: | ||
| 2603 | immodpg,_check_update | ||
| 2604 | print("immodpg.pl,_set_update\n"); | ||
| 2605 | |||
| 2606 | =cut | ||
| 2607 | |||
| 2608 | sub _set_update { | ||
| 2609 | |||
| 2610 | my ($self) = @_; | ||
| 2611 | |||
| 2612 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2613 | $immodpg->set_update(); | ||
| 2614 | return (); | ||
| 2615 | } | ||
| 2616 | |||
| 2617 | =head2 sub _set_zoom_minus | ||
| 2618 | |||
| 2619 | Callbacks write out message for mmodpg.f | ||
| 2620 | Write out | ||
| 2621 | print("write_set_zoom_minus -\n"); | ||
| 2622 | |||
| 2623 | =cut | ||
| 2624 | |||
| 2625 | sub _set_zoom_minus { | ||
| 2626 | |||
| 2627 | $immodpg->set_option($zoom_minus_opt); | ||
| 2628 | $immodpg->set_change($yes); | ||
| 2629 | |||
| 2630 | } | ||
| 2631 | |||
| 2632 | =head2 sub _set_zoom_plus | ||
| 2633 | |||
| 2634 | Callbacks write out message for mmodpg.f | ||
| 2635 | Write out | ||
| 2636 | print("write _set_zoom_plus +\n"); | ||
| 2637 | |||
| 2638 | =cut | ||
| 2639 | |||
| 2640 | sub _set_zoom_plus { | ||
| 2641 | |||
| 2642 | $immodpg->set_option($zoom_plus_opt); | ||
| 2643 | $immodpg->set_change($yes); | ||
| 2644 | |||
| 2645 | } | ||
| 2646 | |||
| 2647 | =head2 sub _set_thickness_m | ||
| 2648 | |||
| 2649 | print("main,_set_thickness_m, change_thickness_m_opt=$change_thickness_m_opt\n"); | ||
| 2650 | |||
| 2651 | =cut | ||
| 2652 | |||
| 2653 | sub _set_thickness_m { | ||
| 2654 | |||
| 2655 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2656 | $immodpg->set_thickness_m(); | ||
| 2657 | return (1); | ||
| 2658 | |||
| 2659 | } | ||
| 2660 | |||
| 2661 | =head2 sub _set_thickness_m_minus | ||
| 2662 | |||
| 2663 | print("write _set_thickness_m_minus - \n"); | ||
| 2664 | |||
| 2665 | =cut | ||
| 2666 | |||
| 2667 | sub _set_thickness_m_minus { | ||
| 2668 | |||
| 2669 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2670 | $immodpg->set_thickness_m_minus(); | ||
| 2671 | |||
| 2672 | } | ||
| 2673 | |||
| 2674 | =head2 sub _set_thickness_m_plus | ||
| 2675 | |||
| 2676 | print("write _set_thickness_m_plus -\n"); | ||
| 2677 | |||
| 2678 | =cut | ||
| 2679 | |||
| 2680 | sub _set_thickness_m_plus { | ||
| 2681 | |||
| 2682 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2683 | $immodpg->set_thickness_m_plus(); | ||
| 2684 | |||
| 2685 | } | ||
| 2686 | |||
| 2687 | =head2 sub _set_thickness_increment_m | ||
| 2688 | |||
| 2689 | print("immodpg.pl,_thickness_increment_m,$immodpg_Tk->{_thickness_increment_mEntry}\n"); | ||
| 2690 | |||
| 2691 | =cut | ||
| 2692 | |||
| 2693 | sub _set_thickness_increment_m { | ||
| 2694 | |||
| 2695 | $immodpg->set_widgets($immodpg_Tk); | ||
| 2696 | $immodpg->set_thickness_increment_m(); | ||
| 2697 | return (1); | ||
| 2698 | } |