MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / aRotateNextExecute

Method aRotateNextExecute

source/main.cpp:1401–1416  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1399}
1400//---------------------------------------------------------------------------
1401void __fastcall TMainForm::aRotateNextExecute(TObject *Sender)
1402{
1403 TStorageFile * sf = fdb->GetByNumber( FileNumber );
1404 if( ! sf )
1405 return;
1406 if( ! sf->IsRotationEnable() )
1407 return;
1408 String f = sf->RotationLogGetItem(FileRotationNumber-1);
1409 if( f.IsEmpty() )
1410 return;
1411 if( ! FileExists(f) )
1412 return;
1413 FileRotationNumber--;
1414 SetFile( f );
1415 UpdateRotationViewControl();
1416}
1417//---------------------------------------------------------------------------
1418void __fastcall TMainForm::UpdateRotationViewControl(void)
1419{

Callers

nothing calls this directly

Calls 2

IsRotationEnableMethod · 0.80
RotationLogGetItemMethod · 0.80

Tested by

no test coverage detected