@@ -195,8 +195,17 @@ void MainWindow::on_awake()
195195 ui->actionBinary ->setEnabled (frm != nullptr );
196196 ui->actionUInt16 ->setEnabled (frm != nullptr );
197197 ui->actionInt16 ->setEnabled (frm != nullptr );
198+ ui->actionInt32 ->setEnabled (frm != nullptr );
199+ ui->actionSwappedInt32 ->setEnabled (frm != nullptr );
200+ ui->actionUInt32 ->setEnabled (frm != nullptr );
201+ ui->actionSwappedUInt32 ->setEnabled (frm != nullptr );
202+ ui->actionInt64 ->setEnabled (frm != nullptr );
203+ ui->actionSwappedInt64 ->setEnabled (frm != nullptr );
204+ ui->actionUInt64 ->setEnabled (frm != nullptr );
205+ ui->actionSwappedUInt64 ->setEnabled (frm != nullptr );
198206 ui->actionHex ->setEnabled (frm != nullptr );
199207 ui->actionAnsi ->setEnabled (frm != nullptr );
208+ ui->actionHex ->setEnabled (frm != nullptr );
200209 ui->actionFloatingPt ->setEnabled (frm != nullptr );
201210 ui->actionSwappedFP ->setEnabled (frm != nullptr );
202211 ui->actionDblFloat ->setEnabled (frm != nullptr );
@@ -1280,7 +1289,7 @@ FormModSim* MainWindow::firstMdiChild() const
12801289// / \brief MainWindow::loadConfig
12811290// / \param filename
12821291// /
1283- void MainWindow::loadConfig (const QString& filename)
1292+ void MainWindow::loadConfig (const QString& filename, bool startup )
12841293{
12851294 QFile file (filename);
12861295 if (!file.open (QFile::ReadOnly))
@@ -1327,6 +1336,15 @@ void MainWindow::loadConfig(const QString& filename)
13271336 if (!filename.isEmpty ())
13281337 openFile (filename);
13291338 }
1339+
1340+ if (startup) {
1341+ for (auto && wnd : ui->mdiArea ->subWindowList ()) {
1342+ const auto frm = qobject_cast<FormModSim*>(wnd->widget ());
1343+ if (frm->scriptSettings ().RunOnStartup ) {
1344+ frm->runScript ();
1345+ }
1346+ }
1347+ }
13301348}
13311349
13321350// /
0 commit comments