Add Reboot command.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
57934c1bc9
commit
ba67de8d9a
3 changed files with 17 additions and 3 deletions
|
@ -131,14 +131,14 @@ QApple::QApple(QWidget *parent) :
|
|||
|
||||
myEmulator = new Emulator(mdiArea);
|
||||
myEmulatorWindow = mdiArea->addSubWindow(myEmulator, Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint);
|
||||
myEmulatorWindow->setWindowTitle(g_pAppTitle);
|
||||
|
||||
myMSGap = 5;
|
||||
myCurrentGap = myMSGap;
|
||||
|
||||
initialiseEmulator();
|
||||
startEmulator();
|
||||
|
||||
myEmulatorWindow->setWindowTitle(g_pAppTitle);
|
||||
myCurrentGap = myMSGap;
|
||||
startEmulator();
|
||||
}
|
||||
|
||||
void QApple::closeEvent(QCloseEvent *)
|
||||
|
@ -232,3 +232,9 @@ void QApple::on_actionDisk_2_triggered()
|
|||
{
|
||||
insertDisk(DRIVE_2);
|
||||
}
|
||||
|
||||
void QApple::on_actionReboot_triggered()
|
||||
{
|
||||
startEmulator();
|
||||
setNextTimer(myMSGap);
|
||||
}
|
||||
|
|
|
@ -33,6 +33,8 @@ private slots:
|
|||
|
||||
void on_actionDisk_2_triggered();
|
||||
|
||||
void on_actionReboot_triggered();
|
||||
|
||||
private:
|
||||
|
||||
void setNextTimer(const int ms);
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
</property>
|
||||
<addaction name="actionStart"/>
|
||||
<addaction name="actionPause"/>
|
||||
<addaction name="actionReboot"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuDisks">
|
||||
<property name="title">
|
||||
|
@ -103,6 +104,11 @@
|
|||
<string>Disk 2...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionReboot">
|
||||
<property name="text">
|
||||
<string>Reboot</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
|
|
Loading…
Add table
Reference in a new issue