MCPcopy Create free account
hub / github.com/LongSoft/UEFITool / init

Method init

uefitool.cpp:94–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92};
93
94void UEFITool::init()
95{
96 // Clear components
97 ui->messageListWidget->clear();
98 ui->infoEdit->clear();
99
100 // Set window title
101 this->setWindowTitle(tr("UEFITool %1").arg(version));
102
103 // Disable menus
104 ui->menuCapsuleActions->setDisabled(true);
105 ui->menuImageActions->setDisabled(true);
106 ui->menuRegionActions->setDisabled(true);
107 ui->menuPaddingActions->setDisabled(true);
108 ui->menuVolumeActions->setDisabled(true);
109 ui->menuFileActions->setDisabled(true);
110 ui->menuSectionActions->setDisabled(true);
111 ui->actionMessagesCopy->setDisabled(true);
112 ui->actionMessagesCopyAll->setDisabled(true);
113
114 // Make new ffsEngine
115 if (ffsEngine)
116 delete ffsEngine;
117 ffsEngine = new FfsEngine(this);
118 ui->structureTreeView->setModel(ffsEngine->treeModel());
119
120 // Connect
121 connect(ui->structureTreeView->selectionModel(), SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)),
122 this, SLOT(populateUi(const QModelIndex &)));
123 connect(ui->messageListWidget, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(scrollTreeView(QListWidgetItem*)));
124 connect(ui->messageListWidget, SIGNAL(itemEntered(QListWidgetItem*)), this, SLOT(enableMessagesCopyActions(QListWidgetItem*)));
125}
126
127void UEFITool::populateUi(const QModelIndex &current)
128{

Callers

nothing calls this directly

Calls 1

treeModelMethod · 0.80

Tested by

no test coverage detected