/** ** This file is part of the CatRadio project. ** Copyright 2022 Gianfranco Sordetti IZ8EWD . ** ** 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 3 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, see . **/ #include "dialogcommand.h" #include "ui_dialogcommand.h" #include "rig.h" DialogCommand::DialogCommand(QWidget *parent) : QDialog(parent), ui(new Ui::DialogCommand) { ui->setupUi(this); } DialogCommand::~DialogCommand() { delete ui; } void DialogCommand::on_pushButton_send_clicked() { //int rig_send_raw(rig, unsigned char *send, int send_len, unsigned char *reply, int reply_len, unsigned char term); //send contains the raw command data //send_len is the # of bytes to send //If reply is NULL no answer is expected //reply should be as long as need for any reply //term is the command termination char -- could be semicolon, CR, or 0xfd for Icom rigs } void DialogCommand::on_pushButton_close_clicked() { this->close(); }