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

Method FromDialog

source/messmatchframe.cpp:38–58  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

36}
37//---------------------------------------------------------------------------
38void TMessMatchFr::FromDialog(TMessMatch * p)
39{
40 p->bNot = NotCB->Checked;
41
42 p->PriorityMask = 0;
43 for(int i=0; i<LOG_NPRIORITIES; i++)
44 p->PriorityMask |= PriorityLB->Checked[i] ? (1<<i) : 0;
45 p->FacilityMask = 0;
46 for(int i=0; i<LOG_NFACILITIES; i++)
47 p->FacilityMask |= FacilityLB->Checked[i] ? (1<<i) : 0;
48
49 p->Field1 = FieldCB1->ItemIndex / 2;
50 p->Contains1 = (FieldCB1->ItemIndex & 1) == 0;
51 p->Text1->Assign(Memo1->Lines);
52 p->Field2 = FieldCB2->ItemIndex / 2;
53 p->Contains2 = (FieldCB2->ItemIndex & 1) == 0;
54 p->Text2->Assign(Memo2->Lines);
55 p->MatchCase = MatchCaseCB->Checked;
56
57 p->DeleteEmptyLines();
58}
59//---------------------------------------------------------------------------
60void __fastcall TMessMatchFr::MatchChange(TObject *Sender)
61{

Callers

nothing calls this directly

Calls 1

DeleteEmptyLinesMethod · 0.80

Tested by

no test coverage detected