dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
boardtype_unknown.cpp
Go to the documentation of this file.
1 
14 /*
15  * This program is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 3 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful, but
21  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23  * for more details.
24  *
25  * You should have received a copy of the GNU General Public License along
26  * with this program; if not, see <http://www.gnu.org/licenses/>
27  */
28 
29 #include "boardtype_unknown.h"
30 #include "ui_boardtype_unknown.h"
31 #include "setupwizard.h"
32 
34  : AbstractWizardPage(wizard, parent)
35  ,
36 
37  ui(new Ui::BoardtypeUnknown)
38 {
39  ui->setupUi(this);
40 }
41 
43 {
44  delete ui;
45 }
46 
48 {
49  return true;
50 }
51 
53 {
54  switch (type) {
55  case UNKNOWN_FIRMWARE:
56  ui->lblReason->setText(
57  tr("The firmware version on the board does not match this version of GCS."));
58  break;
59  case UNKNOWN_BOARD:
60  ui->lblReason->setText(tr("Unknown board type."));
61  break;
62  default:
63  break;
64  }
65 }
The SetupWizard class is the main interface to the setup wizard. It provides selects the sequence of ...
Definition: setupwizard.h:47
The BoardtypeUnknown class tells the user this board type is unknown and unsupported.
void setFailureType(FailureType type)
BoardtypeUnknown(SetupWizard *wizard, QWidget *parent=nullptr)