Added stubs for opening ROMs and the main options dialog widget

This commit is contained in:
mudlord 2008-02-21 04:27:45 +00:00
parent bc27b9e777
commit 4dd989f6fe
2 changed files with 20 additions and 0 deletions

View File

@ -96,11 +96,13 @@ void MainWnd::createMenus()
// File menu // File menu
fileMenu = menuBar()->addMenu( tr( "&File" ) ); fileMenu = menuBar()->addMenu( tr( "&File" ) );
fileMenu->addAction( tr( "Open ROM" ), this, SLOT( showOpenROM() ) );
fileMenu->addAction( tr( "Exit" ), this, SLOT( close() ) ); fileMenu->addAction( tr( "Exit" ), this, SLOT( close() ) );
// Settings menu // Settings menu
settingsMenu = menuBar()->addMenu( tr( "&Settings" ) ); settingsMenu = menuBar()->addMenu( tr( "&Settings" ) );
settingsMenu->addAction( tr( "Main options..." ), this, SLOT( showMainOptions() ));
settingsMenu->addAction( tr( "Select language..." ), this, SLOT( selectLanguage() ) ); settingsMenu->addAction( tr( "Select language..." ), this, SLOT( selectLanguage() ) );
settingsMenu->addAction( enableTranslationAct ); settingsMenu->addAction( enableTranslationAct );
@ -236,6 +238,22 @@ void MainWnd::showAboutQt()
QMessageBox::aboutQt( this ); 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() void MainWnd::showAboutOpenGL()
{ {

View File

@ -53,6 +53,8 @@ private slots:
void showAbout(); void showAbout();
void showAboutOpenGL(); void showAboutOpenGL();
void showAboutQt(); void showAboutQt();
void showOpenROM();
void showMainOptions();
}; };
#endif // #ifndef MAINWND_H #endif // #ifndef MAINWND_H