void CompressedSequence<T_Sequence>::ShallowCopy(CompressedSequence<T_Sequence> &rhs) { // // Copy over non sequence information index.ShallowCopy(rhs.index); CopyConfiguration(rhs); // Copy sequence information ((FASTASequence*)this)->ShallowCopy((FASTASequence&)rhs); }
void RedrawConfigWindow() { CreateConfigWindow(); CopyConfiguration(); RedrawConfigPage( chosenConfigLine ); TAP_Osd_PutStringAf1419( rgn, 58, 503, 666, "Quick keys", COLOR_Gray, 0 ); TAP_Osd_PutStringAf1419( rgn, 58, 528, 666, "EXIT = quit without saving, RECORD = save and exit", COLOR_Gray, 0 ); }
//------------ // void ConfigKeyHandler(dword key) { int i, oldEditLine; oldEditLine = chosenConfigLine; if ( enterActivateKey ) { NewActiveKeyHandler( key ); return; } // handle our sub processes switch ( key ) { case RKEY_ChDown : configOption = 0; if ( chosenConfigLine < CONFIG_LINES ) { chosenConfigLine++; DisplayConfigLine( chosenConfigLine - 1); RedrawConfigPage( chosenConfigLine ); DisplayConfigLine( chosenConfigLine ); } else { chosenConfigLine = 1; // 0=hidden - can't hide once cursor moved DisplayConfigLine( CONFIG_LINES ); RedrawConfigPage( chosenConfigLine ); DisplayConfigLine( chosenConfigLine ); } break; case RKEY_ChUp : configOption = 0; if ( chosenConfigLine > 1 ) // 0=hidden - can't hide once cursor moved { chosenConfigLine--; DisplayConfigLine( chosenConfigLine + 1 ); RedrawConfigPage( chosenConfigLine ); DisplayConfigLine( chosenConfigLine ); } else { chosenConfigLine = CONFIG_LINES; DisplayConfigLine( 1 ); RedrawConfigPage( chosenConfigLine ); DisplayConfigLine( chosenConfigLine ); } break; case RKEY_1 : case RKEY_2 : case RKEY_3 : case RKEY_4 : case RKEY_5 : case RKEY_6 : case RKEY_7 : case RKEY_8 : case RKEY_9 : chosenConfigLine = (key - RKEY_0) + (((oldEditLine-1)/LINES_PER_PAGE)*LINES_PER_PAGE); // direct keyboard selection of any line DisplayConfigLine( oldEditLine ); DisplayConfigLine( chosenConfigLine ); configOption = 0; // will move the cursor to "Save" when last line selected break; case RKEY_0 : chosenConfigLine = 10+ (((oldEditLine-1)/LINES_PER_PAGE)*LINES_PER_PAGE); // make "0" select the last line DisplayConfigLine( oldEditLine ); DisplayConfigLine( chosenConfigLine ); break; case RKEY_Ok : case RKEY_TvRadio : case RKEY_Forward : case RKEY_Rewind : case RKEY_VolUp : case RKEY_VolDown : ConfigActionHandler( key ); break; case RKEY_Recall : CopyConfiguration(); // reload the original data oldLineNumber = LINES_PER_PAGE * 3; // Initialise the oldLineNumber to force a page redisplay. RedrawConfigWindow(); break; case RKEY_Record : if (TvRatioOption != currentTvRatio) // If we changed the TV Ratio, apply the defaults to save { if ( currentTvRatio == 1 ) SetWideScreenSizes(); // Change the screen size variables to suit the Widescreen proportions. else Set43ScreenSizes(); // And if the Guide Window was displayed when we called the menu we need to close it and reactivate it // with the new cordinates that would have been set here. if (guideWindowDisplayed) { CloseGuideWindow(); // Close current Guide window ActivateGuideWindow(); // Reactivate with new coordinates. } } SaveConfiguration(); CloseConfigWindow(); // Close the edit window redrawWindow = TRUE; // will cause a redraw of timer list break; case RKEY_Exit : CloseConfigWindow(); // Close the edit window redrawWindow = TRUE; // will cause a redraw of timer list break; default : break; } }