1 /* Copyright 2012 Theo Berkau <cwx@cyberwarriorx.com> 2 3 This file is part of Yabause. 4 5 Yabause is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2 of the License, or 8 (at your option) any later version. 9 10 Yabause is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with Yabause; if not, write to the Free Software 17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 */ 19 #ifndef UIMEMORYTRANSFER_H 20 #define UIMEMORYTRANSFER_H 21 22 #include "ui_UIMemoryTransfer.h" 23 #include "../YabauseThread.h" 24 #include "../QtYabause.h" 25 26 class UIMemoryTransfer : public QDialog, public Ui::UIMemoryTransfer 27 { 28 Q_OBJECT 29 public: 30 UIMemoryTransfer( YabauseThread *mYabauseThread, QWidget* parent = 0 ); 31 32 protected: 33 YabauseThread *mYabauseThread; 34 bool areSettingsValid(); 35 36 protected slots: 37 void on_leFile_textChanged( const QString & text ); 38 void on_leStartAddress_textChanged( const QString & text ); 39 void on_leEndAddress_textChanged( const QString & text ); 40 void on_rbUpload_toggled(bool checked); 41 void on_tbBrowse_clicked(); 42 void accept(); 43 }; 44 45 #endif // UIMEMORYTRANSFER_H 46