From 2bb935b22361a412d408a1840a9dc9b144fd489f Mon Sep 17 00:00:00 2001 From: pip Date: Thu, 20 Jan 2011 11:44:33 +0000 Subject: [PATCH] Starting seperate PipXtreme Configuration Utility .. for now. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2488 ebee16cc-31ac-478f-84a7-5cbb03baadba --- .../PipXtreme_Config/PipXtreme_Config.pro | 18 + .../experimental/PipXtreme_Config/main.cpp | 11 + .../PipXtreme_Config/mainwindow.cpp | 14 + .../PipXtreme_Config/mainwindow.h | 22 + .../PipXtreme_Config/mainwindow.ui | 376 ++++++++++++++++++ 5 files changed, 441 insertions(+) create mode 100644 ground/src/experimental/PipXtreme_Config/PipXtreme_Config.pro create mode 100644 ground/src/experimental/PipXtreme_Config/main.cpp create mode 100644 ground/src/experimental/PipXtreme_Config/mainwindow.cpp create mode 100644 ground/src/experimental/PipXtreme_Config/mainwindow.h create mode 100644 ground/src/experimental/PipXtreme_Config/mainwindow.ui diff --git a/ground/src/experimental/PipXtreme_Config/PipXtreme_Config.pro b/ground/src/experimental/PipXtreme_Config/PipXtreme_Config.pro new file mode 100644 index 000000000..10a66ce54 --- /dev/null +++ b/ground/src/experimental/PipXtreme_Config/PipXtreme_Config.pro @@ -0,0 +1,18 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2011-01-20T10:44:17 +# +#------------------------------------------------- + +QT += core gui + +TARGET = PipXtreme_Config +TEMPLATE = app + + +SOURCES += main.cpp\ + mainwindow.cpp + +HEADERS += mainwindow.h + +FORMS += mainwindow.ui diff --git a/ground/src/experimental/PipXtreme_Config/main.cpp b/ground/src/experimental/PipXtreme_Config/main.cpp new file mode 100644 index 000000000..a001eb2db --- /dev/null +++ b/ground/src/experimental/PipXtreme_Config/main.cpp @@ -0,0 +1,11 @@ +#include +#include "mainwindow.h" + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.show(); + + return a.exec(); +} diff --git a/ground/src/experimental/PipXtreme_Config/mainwindow.cpp b/ground/src/experimental/PipXtreme_Config/mainwindow.cpp new file mode 100644 index 000000000..12d07c019 --- /dev/null +++ b/ground/src/experimental/PipXtreme_Config/mainwindow.cpp @@ -0,0 +1,14 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); +} + +MainWindow::~MainWindow() +{ + delete ui; +} diff --git a/ground/src/experimental/PipXtreme_Config/mainwindow.h b/ground/src/experimental/PipXtreme_Config/mainwindow.h new file mode 100644 index 000000000..99cd8b23d --- /dev/null +++ b/ground/src/experimental/PipXtreme_Config/mainwindow.h @@ -0,0 +1,22 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +namespace Ui { + class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private: + Ui::MainWindow *ui; +}; + +#endif // MAINWINDOW_H diff --git a/ground/src/experimental/PipXtreme_Config/mainwindow.ui b/ground/src/experimental/PipXtreme_Config/mainwindow.ui new file mode 100644 index 000000000..470812815 --- /dev/null +++ b/ground/src/experimental/PipXtreme_Config/mainwindow.ui @@ -0,0 +1,376 @@ + + + MainWindow + + + + 0 + 0 + 335 + 489 + + + + PipXtreme Configuration + + + + + + + + + Port + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 200 + 0 + + + + + + + + + + Qt::Horizontal + + + + + + + + + Serial Number + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + false + + + true + + + + + + + + + Qt::Horizontal + + + + + + + + + Paired Serial Number + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + + + + + + + + Min Frequency (MHz) + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + + + + + + + + Max Frequency (MHz) + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + + + + + + + + Frequency (MHz) + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + + + + + + + + Max RF Bandwidth + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + + + + + + + + Max RF Tx Power + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + + + + + + + + Serial Port Speed + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + + + + + + + + AES Encryption Key + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + + + Enable + + + + + + + + + Qt::Horizontal + + + + + + + + + Scan Spectrum + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + + + + + +