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

Method ToDialog

source/fileframe.cpp:51–82  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

49}
50//---------------------------------------------------------------------------
51void 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//---------------------------------------------------------------------------
84void TFileFr::RotationEnable(void)
85{

Callers 4

DrawGridClickMethod · 0.45
DrawGridClickMethod · 0.45
DrawGridClickMethod · 0.45
aDisplayFilterExecuteMethod · 0.45

Calls 1

GetFileNameMethod · 0.45

Tested by

no test coverage detected