Added stubs for opening ROMs and the main options dialog widget
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@371 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
41a1dc524a
commit
0658542f98
|
@ -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