| 275 | } |
| 276 | |
| 277 | MainWindow::MainWindow(QWidget *parent) |
| 278 | : QMainWindow(parent) |
| 279 | , ui(new Ui::MainWindow) |
| 280 | , config(CONFIG_FILE_NAME) |
| 281 | { |
| 282 | ui->setupUi(this); |
| 283 | this->setFixedSize(QSize(990, 610)); |
| 284 | |
| 285 | InitializeAlertsTable(); |
| 286 | InitializeProcessesTable(); |
| 287 | InitializeFiltersTable(); |
| 288 | |
| 289 | // |
| 290 | // By default set the "activeTab" to the alerts tab. |
| 291 | // |
| 292 | ui->AlertsLabel->SwapActiveState(); |
| 293 | this->activeTab = ui->AlertsLabel; |
| 294 | |
| 295 | this->investigatorWindow = new InvestigateProcessWindow(); |
| 296 | this->investigatorWindow->communicator = &this->communicator; |
| 297 | this->alertWindow = new DetailedAlertWindow(); |
| 298 | this->addFilterWindow = new AddFilterWindow(); |
| 299 | this->addFilterWindow->communicator = &this->communicator; |
| 300 | this->alertFalsePositives = config.GetConfigFalsePositives(); |
| 301 | |
| 302 | CreateThread(NULL, 0, RCAST<LPTHREAD_START_ROUTINE>(this->ThreadUpdateTables), this, 0, NULL); |
| 303 | |
| 304 | SymInitialize(GetCurrentProcess(), NULL, TRUE); |
| 305 | } |
| 306 | |
| 307 | MainWindow::~MainWindow() |
| 308 | { |
nothing calls this directly
no test coverage detected