From f72e9c5113a39828b443e0c912ea8d47ae6af0dd Mon Sep 17 00:00:00 2001 From: pixhawk Date: Wed, 14 Sep 2011 20:29:36 +0200 Subject: [PATCH] added custom commands 0-15 to the dropdown field in the widget designer --- src/ui/designer/QGCCommandButton.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/ui/designer/QGCCommandButton.cc b/src/ui/designer/QGCCommandButton.cc index eae2934..6e262e3 100644 --- a/src/ui/designer/QGCCommandButton.cc +++ b/src/ui/designer/QGCCommandButton.cc @@ -37,6 +37,23 @@ QGCCommandButton::QGCCommandButton(QWidget *parent) : // Add commands to combo box ui->editCommandComboBox->addItem("DO: Control Video", MAV_CMD_DO_CONTROL_VIDEO); ui->editCommandComboBox->addItem("PREFLIGHT: Calibration", MAV_CMD_PREFLIGHT_CALIBRATION); + ui->editCommandComboBox->addItem("CUSTOM 0", 0); + ui->editCommandComboBox->addItem("CUSTOM 1", 1); + ui->editCommandComboBox->addItem("CUSTOM 2", 2); + ui->editCommandComboBox->addItem("CUSTOM 3", 3); + ui->editCommandComboBox->addItem("CUSTOM 4", 4); + ui->editCommandComboBox->addItem("CUSTOM 5", 5); + ui->editCommandComboBox->addItem("CUSTOM 6", 6); + ui->editCommandComboBox->addItem("CUSTOM 7", 7); + ui->editCommandComboBox->addItem("CUSTOM 8", 8); + ui->editCommandComboBox->addItem("CUSTOM 9", 9); + ui->editCommandComboBox->addItem("CUSTOM 10", 10); + ui->editCommandComboBox->addItem("CUSTOM 11", 11); + ui->editCommandComboBox->addItem("CUSTOM 12", 12); + ui->editCommandComboBox->addItem("CUSTOM 13", 13); + ui->editCommandComboBox->addItem("CUSTOM 14", 14); + ui->editCommandComboBox->addItem("CUSTOM 15", 15); + ui->editCommandComboBox->setEditable(true); } QGCCommandButton::~QGCCommandButton()