** You should have received a copy of the GNU General Public License
** along with EmuFront. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include <QtGui>
#include "mainwindow.h"
#include "emulauncher.h"
// TODO: deprecated
//#include "executablemaindialog.h"
#include "externalexecutableeditview.h"
+#include "externalexecutablemodel.h"
#include "datfileutil.h"
#include "databasemanager.h"
#include "dbcreator.h"
tmpDirFilePath = QDir::homePath();
qDebug() << "Temporary dir is " << tmpDirFilePath;
supModel = new SetupModel(this);
- launcher = new EmuLauncher(errorMessage, supModel, this, tmpDirFilePath);
+ emuModel = new ExternalExecutableModel(this);
+ launcher = new EmuLauncher(errorMessage, supModel, emuModel, this, tmpDirFilePath);
setCentralWidget(launcher);
createActions();
createMenus();
void MainWindow::configureEmulatorss()
{
if (!emulatorEditView) {
- emulatorEditView = new ExternalExecutableEditView(this);
- connect(emulatorEditView, SIGNAL(finished(int)), this, SLOT(updateData()));
+ emulatorEditView = new ExternalExecutableEditView(emuModel, this);
+ //connect(emulatorEditView, SIGNAL(finished(int)), this, SLOT(updateData()));
}
activateDialog(emulatorEditView);
}