/* * Copyright (C) 2004 - 2007 by Alexander Saal * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef DBOXFE_H #define DBOXFE_H #include #include #include "ui_dboxfe.h" class DBoxFE : public QWidget, public Ui::DBoxFE { Q_OBJECT public: DBoxFE ( QWidget *parent = 0, Qt::WFlags flags = 0 ); ~DBoxFE(); QString getAppVersion() { return tr ( "v0.1.3" ); } QString winTitle() { return tr ( "DBox Front End" ); } private: QString titleLin, titleWin, titleMac, gpTxt, m_result, m_conf, m_file; QStringList m_param; QProcess *dBox; QListWidgetItem *gpItem; protected: void closeEvent ( QCloseEvent *e ); private slots: void slotListWidget ( QListWidgetItem* ); void slotListWidgetOutPut ( QPoint ); void slotCbxSerialIndexChanged ( int ); void slotCbxAutoexecIndexChanged ( int ); void slotCbxKeyboardLayoutIndexChanged ( int ); void slotChkBoxStartTrayIconToggled ( bool ); void slotAutoexecDrive(); void slotAutoexecUpdate(); void slotAutoexecRemove(); void slotAutoexecAdd(); void slotSerialRemove(); void slotSerialAdd(); void slotChooseDbxBinary(); void slotLanguage(); void slotRemoveGP(); void slotStartDBox(); void slotGame(); void slotCreateGP(); void slotSaveGP(); void slotWizard(); void slotSearchBin(); void slotGameSettings(); void slotAutoexecUp(); void slotAutoexecDown(); void slotAbout(); void start ( const QString& bin, const QString ¶m, const QString &conf ); void readOutput(); void finish ( int, QProcess::ExitStatus ); void err ( QProcess::ProcessError ); public slots: void init(); }; #endif // DBOXFE_H