File indexing completed on 2024-12-01 11:20:35
0001 /*************************************************************************** 0002 * Copyright (C) 2005 by David Saxton * 0003 * david@bluehaze.org * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify * 0006 * it under the terms of the GNU General Public License as published by * 0007 * the Free Software Foundation; either version 2 of the License, or * 0008 * (at your option) any later version. * 0009 ***************************************************************************/ 0010 0011 #ifndef PROGRAMMERDLG_H 0012 #define PROGRAMMERDLG_H 0013 0014 #include <QDialog> 0015 0016 class MicroSelectWidget; 0017 class PicProgrammerSettings; 0018 class ProcessOptions; 0019 class ProgrammerWidget; 0020 0021 /** 0022 @author David Saxton 0023 */ 0024 class ProgrammerDlg : public QDialog 0025 { 0026 Q_OBJECT 0027 public: 0028 /** 0029 * Create a new ProgrammerDlg with the PIC type set to picID. Other 0030 * options (such as the program to use) will be read in from the 0031 * settings. 0032 */ 0033 ProgrammerDlg(const QString &picID, QWidget *parent = nullptr); 0034 ~ProgrammerDlg() override; 0035 0036 /** 0037 * Initialises options with the values that the user has entered into 0038 * the widgets. 0039 */ 0040 void initOptions(ProcessOptions *options); 0041 0042 MicroSelectWidget *microSelect() const; 0043 0044 protected: 0045 ProgrammerWidget *m_pProgrammerWidget; 0046 PicProgrammerSettings *m_pProgrammerSettings; 0047 }; 0048 0049 #endif