Added stubs for opening ROMs and the main options dialog widget
This commit is contained in:
parent
bc27b9e777
commit
4dd989f6fe
|
@ -96,11 +96,13 @@ void MainWnd::createMenus()
|
|||
|
||||
// File menu
|
||||
fileMenu = menuBar()->addMenu( tr( "&File" ) );
|
||||
fileMenu->addAction( tr( "Open ROM" ), this, SLOT( showOpenROM() ) );
|
||||
fileMenu->addAction( tr( "Exit" ), this, SLOT( close() ) );
|
||||
|
||||
|
||||
// Settings menu
|
||||
settingsMenu = menuBar()->addMenu( tr( "&Settings" ) );
|
||||
settingsMenu->addAction( tr( "Main options..." ), this, SLOT( showMainOptions() ));
|
||||
settingsMenu->addAction( tr( "Select language..." ), this, SLOT( selectLanguage() ) );
|
||||
settingsMenu->addAction( enableTranslationAct );
|
||||
|
||||
|
@ -236,6 +238,22 @@ void MainWnd::showAboutQt()
|
|||
QMessageBox::aboutQt( this );
|
||||
}
|
||||
|
||||
void MainWnd::showOpenROM()
|
||||
{
|
||||
QString info;
|
||||
info += tr ( "Enter ROM loader code here." );
|
||||
|
||||
QMessageBox::about( this, tr( "Status" ), info );
|
||||
}
|
||||
|
||||
void MainWnd::showMainOptions()
|
||||
{
|
||||
QString info;
|
||||
info += tr ( "Placeholder for opening options widget." );
|
||||
|
||||
QMessageBox::about( this, tr( "Status" ), info );
|
||||
}
|
||||
|
||||
|
||||
void MainWnd::showAboutOpenGL()
|
||||
{
|
||||
|
|
|
@ -53,6 +53,8 @@ private slots:
|
|||
void showAbout();
|
||||
void showAboutOpenGL();
|
||||
void showAboutQt();
|
||||
void showOpenROM();
|
||||
void showMainOptions();
|
||||
};
|
||||
|
||||
#endif // #ifndef MAINWND_H
|
||||
|
|
Loading…
Reference in New Issue