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

Method Init

source/main.cpp:170–214  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

168}
169//---------------------------------------------------------------------------
170void __fastcall TMainForm::Init(bool _bLive)
171{
172 bLive = _bLive;
173 SizeToRead = StartSizeToRead;
174
175 // For "non-life" protocol remove functions:
176 // "Goto new line"
177 // "Clear screen"
178 if( ! bLive )
179 {
180 aGotoNewLine->Visible = false;
181 aClear->Visible = false;
182 }
183
184 *AppParams >> this >> (TStringGrid *)LogSG;
185
186 Variant v = AppParams->Values["GotoNewMess"];
187 if( ! v.IsEmpty() )
188 aGotoNewLine->Checked = v;
189
190 String FontName = AppParams->Values["FontName"];
191 if( FontName.Length() > 0 )
192 {
193 LogSG->Font->Name = FontName;
194 LogSG->Font->Size = AppParams->Values["FontSize"];
195 }
196 HP->CurrentProfile = AppParams->Values["HighlighProfile"];
197
198 FillProfilePopupMenu();
199
200 SetLinesHeight();
201
202 fdb->GetList(SelectFileCB->Items, true);
203 FileNumber = AppParams->Values["FileNumber"];
204 int i = SelectFileCB->Items->IndexOfObject((TObject *)FileNumber);
205 if( i < 0 )
206 i = 0;
207 SelectFileCB->ItemIndex = i;
208
209 MessMatch.Load(FilterFile, false);
210 MessMatchLabel->Caption = MessMatch.GetDescription();
211 ClearFilterButton2->Visible = ! MessMatch.IsAllMatch();
212
213 LogSG_LivingColumns = new TStringGridLivingColumns((TStringGrid *)LogSG);
214}
215//---------------------------------------------------------------------------
216void __fastcall TMainForm::FormDestroy(TObject *Sender)
217{

Callers 1

TFormFunction · 0.45

Calls 4

GetListMethod · 0.80
IsAllMatchMethod · 0.80
LoadMethod · 0.45
GetDescriptionMethod · 0.45

Tested by

no test coverage detected