/ Private Methods */ /
| 206 | /* Private Methods */ |
| 207 | /*****************************************************************************/ |
| 208 | void MainWindow::init() |
| 209 | { |
| 210 | QApplication::setStyle(QStyleFactory::create("Fusion")); |
| 211 | hexEdit = new QHexEdit(this); |
| 212 | setCentralWidget(hexEdit); |
| 213 | readSettings(); |
| 214 | writeSettings(); // Write settings during first run |
| 215 | |
| 216 | setAttribute(Qt::WA_DeleteOnClose); |
| 217 | isUntitled = true; |
| 218 | isModified = false; |
| 219 | |
| 220 | optionsDialog = new OptionsDialog(this); |
| 221 | connect(optionsDialog, SIGNAL(accepted()), this, SLOT(optionsAccepted())); |
| 222 | |
| 223 | searchDialog = new SearchDialog(hexEdit, this); |
| 224 | |
| 225 | createActions(); |
| 226 | createMenus(); |
| 227 | createToolBars(); |
| 228 | createStatusBar(); |
| 229 | |
| 230 | setUnifiedTitleAndToolBarOnMac(true); |
| 231 | |
| 232 | connect(hexEdit, SIGNAL(overwriteModeChanged(bool)), this, SLOT(setOverwriteMode(bool))); |
| 233 | connect(hexEdit, SIGNAL(dataChanged()), this, SLOT(dataChanged())); |
| 234 | } |
| 235 | |
| 236 | void MainWindow::createActions() |
| 237 | { |
nothing calls this directly
no outgoing calls
no test coverage detected