---------------------------------------------------------------------------
| 49 | } |
| 50 | //--------------------------------------------------------------------------- |
| 51 | void TFileFr::ToDialog(TStorageFile * p) |
| 52 | { |
| 53 | bEnableValuesChange = false; |
| 54 | |
| 55 | FileEdit->Text = p->GetFileName(); |
| 56 | |
| 57 | switch( p->rotation_type ) |
| 58 | { |
| 59 | case 0: RotationRB1->Checked = true; break; |
| 60 | case 1: RotationRB2->Checked = true; break; |
| 61 | case 2: RotationRB3->Checked = true; break; |
| 62 | } |
| 63 | SizeEdit->Text = p->rotation_size; |
| 64 | SizeEditUD->Position = p->rotation_size; |
| 65 | MultCB->ItemIndex = p->rotation_mult; |
| 66 | MomentCB->ItemIndex = p->rotation_moment; |
| 67 | HourEdit->Text = p->rotation_hour; |
| 68 | HourEditUD->Position = p->rotation_hour; |
| 69 | |
| 70 | switch( p->rotation_renaming ) |
| 71 | { |
| 72 | case 0: RenamingRB0->Checked = true; break; |
| 73 | case 1: RenamingRB1->Checked = true; break; |
| 74 | } |
| 75 | NewNameEdit->Text = p->rotation_name; |
| 76 | CountEdit->Text = p->rotation_count; |
| 77 | CountEditUD->Position = p->rotation_count; |
| 78 | |
| 79 | RotationEnable(); |
| 80 | |
| 81 | bEnableValuesChange = true; |
| 82 | } |
| 83 | //--------------------------------------------------------------------------- |
| 84 | void TFileFr::RotationEnable(void) |
| 85 | { |
no test coverage detected