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

Method ToDialog

source/messmatchframe.cpp:19–36  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

17}
18//---------------------------------------------------------------------------
19void TMessMatchFr::ToDialog(TMessMatch * p)
20{
21 bEnableValuesChange = false;
22
23 NotCB->Checked = p->bNot;
24
25 for(int i=0; i<LOG_NPRIORITIES; i++)
26 PriorityLB->Checked[i] = p->PriorityMask & (1<<i);
27 for(int i=0; i<LOG_NFACILITIES; i++)
28 FacilityLB->Checked[i] = p->FacilityMask & (1<<i);
29
30 FieldCB1->ItemIndex = p->Field1 * 2 + (p->Contains1 ? 0 : 1);
31 Memo1->Lines = p->Text1;
32 FieldCB2->ItemIndex = p->Field2 * 2 + (p->Contains2 ? 0 : 1);
33 Memo2->Lines = p->Text2;
34 MatchCaseCB->Checked = p->MatchCase;
35 bEnableValuesChange = true;
36}
37//---------------------------------------------------------------------------
38void TMessMatchFr::FromDialog(TMessMatch * p)
39{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected