Starting work on widgets.

widgets
Elliott Liggett 2023-02-08 22:14:55 -08:00
rodzic 6e5e22a672
commit 977fa971fd
5 zmienionych plików z 773 dodań i 6 usunięć

114
bandbuttons.cpp 100644
Wyświetl plik

@ -0,0 +1,114 @@
#include "bandbuttons.h"
#include "ui_bandbuttons.h"
bandbuttons::bandbuttons(QWidget *parent) :
QWidget(parent),
ui(new Ui::bandbuttons)
{
ui->setupUi(this);
}
bandbuttons::~bandbuttons()
{
delete ui;
}
void bandbuttons::on_band2200mbtn_clicked()
{
}
void bandbuttons::on_band630mbtn_clicked()
{
}
void bandbuttons::on_band160mbtn_clicked()
{
}
void bandbuttons::on_band80mbtn_clicked()
{
}
void bandbuttons::on_band60mbtn_clicked()
{
}
void bandbuttons::on_band40mbtn_clicked()
{
}
void bandbuttons::on_band30mbtn_clicked()
{
}
void bandbuttons::on_band20mbtn_clicked()
{
}
void bandbuttons::on_band17mbtn_clicked()
{
}
void bandbuttons::on_band15mbtn_clicked()
{
}
void bandbuttons::on_band12mbtn_clicked()
{
}
void bandbuttons::on_band10mbtn_clicked()
{
}
void bandbuttons::on_band6mbtn_clicked()
{
}
void bandbuttons::on_band4mbtn_clicked()
{
}
void bandbuttons::on_band2mbtn_clicked()
{
}
void bandbuttons::on_band70cmbtn_clicked()
{
}
void bandbuttons::on_band23cmbtn_clicked()
{
}
void bandbuttons::on_bandWFMbtn_clicked()
{
}
void bandbuttons::on_bandAirbtn_clicked()
{
}
void bandbuttons::on_bandGenbtn_clicked()
{
}

67
bandbuttons.h 100644
Wyświetl plik

@ -0,0 +1,67 @@
#ifndef BANDBUTTONS_H
#define BANDBUTTONS_H
#include <QWidget>
namespace Ui {
class bandbuttons;
}
class bandbuttons : public QWidget
{
Q_OBJECT
public:
explicit bandbuttons(QWidget *parent = nullptr);
~bandbuttons();
private slots:
void on_band2200mbtn_clicked();
void on_band630mbtn_clicked();
void on_band160mbtn_clicked();
void on_band80mbtn_clicked();
void on_band60mbtn_clicked();
void on_band40mbtn_clicked();
void on_band30mbtn_clicked();
void on_band20mbtn_clicked();
void on_band17mbtn_clicked();
void on_band15mbtn_clicked();
void on_band12mbtn_clicked();
void on_band10mbtn_clicked();
void on_band6mbtn_clicked();
void on_band4mbtn_clicked();
void on_band2mbtn_clicked();
void on_band70cmbtn_clicked();
void on_band23cmbtn_clicked();
void on_bandWFMbtn_clicked();
void on_bandAirbtn_clicked();
void on_bandGenbtn_clicked();
private:
Ui::bandbuttons *ui;
void bandStackBtnClick();
char bandStkBand;
char bandStkRegCode;
};
#endif // BANDBUTTONS_H

581
bandbuttons.ui 100644
Wyświetl plik

@ -0,0 +1,581 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>bandbuttons</class>
<widget class="QWidget" name="bandbuttons">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>737</width>
<height>512</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>Band</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_26">
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="band2200mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>2200m</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="band630mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>630m</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="band160mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>160m</string>
</property>
<property name="shortcut">
<string>L</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="band80mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>80m</string>
</property>
<property name="shortcut">
<string>8</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="QPushButton" name="band60mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>60m</string>
</property>
<property name="shortcut">
<string>S</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="band40mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>40m</string>
</property>
<property name="shortcut">
<string>4</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="band30mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>30m</string>
</property>
<property name="shortcut">
<string>3</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="band20mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>20m</string>
</property>
<property name="shortcut">
<string>2</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="QPushButton" name="band17mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>17m</string>
</property>
<property name="shortcut">
<string>7</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="band15mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>15m</string>
</property>
<property name="shortcut">
<string>5</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="band12mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>12m</string>
</property>
<property name="shortcut">
<string>T</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="band10mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>10m</string>
</property>
<property name="shortcut">
<string>1</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<widget class="QPushButton" name="band6mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>6m</string>
</property>
<property name="shortcut">
<string>6</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="band4mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>4m</string>
</property>
<property name="shortcut">
<string>$</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="band2mbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>2m</string>
</property>
<property name="shortcut">
<string>V</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="band70cmbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>70cm</string>
</property>
<property name="shortcut">
<string>U</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="band23cmbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>23cm</string>
</property>
<property name="shortcut">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_11">
<item>
<widget class="QPushButton" name="bandWFMbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>WFM</string>
</property>
<property name="shortcut">
<string>W</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="bandAirbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>Air</string>
</property>
<property name="shortcut">
<string>A</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="bandGenbtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>128</height>
</size>
</property>
<property name="text">
<string>Gen</string>
</property>
<property name="shortcut">
<string>G</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Segment</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_12">
<item>
<widget class="QRadioButton" name="bandStkLastUsedBtn">
<property name="text">
<string>&amp;Last Used</string>
</property>
<property name="iconSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Band Stack Selection:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="bandStkPopdown">
<item>
<property name="text">
<string>1 - Latest Used</string>
</property>
</item>
<item>
<property name="text">
<string>2 - Older</string>
</property>
</item>
<item>
<property name="text">
<string>3 - Oldest Used</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QRadioButton" name="bandStkVoiceBtn">
<property name="text">
<string>Voice</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="bandStkDataBtn">
<property name="text">
<string>Data</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="bandStkCWBtn">
<property name="text">
<string>&amp;CW</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

Wyświetl plik

@ -18,7 +18,7 @@
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>3</number>
<number>1</number>
</property>
<widget class="QWidget" name="mainTab">
<attribute name="title">
@ -1821,6 +1821,7 @@
<font>
<family>DejaVu Sans Mono</family>
<pointsize>14</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
@ -3443,8 +3444,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>820</width>
<height>302</height>
<width>570</width>
<height>254</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
@ -5491,6 +5492,7 @@
<widget class="QPushButton" name="exitBtn">
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
@ -5510,7 +5512,7 @@
<x>0</x>
<y>0</y>
<width>1042</width>
<height>22</height>
<height>21</height>
</rect>
</property>
</widget>
@ -5537,8 +5539,8 @@
<resources/>
<connections/>
<buttongroups>
<buttongroup name="underlayButtonGroup"/>
<buttongroup name="buttonGroup"/>
<buttongroup name="pollingButtonGroup"/>
<buttongroup name="buttonGroup"/>
<buttongroup name="underlayButtonGroup"/>
</buttongroups>
</ui>

Wyświetl plik

@ -217,6 +217,7 @@ win32:INCLUDEPATH += ../qcustomplot
INCLUDEPATH += resampler
SOURCES += main.cpp\
bandbuttons.cpp \
cwsender.cpp \
loggingwindow.cpp \
wfmain.cpp \
@ -253,6 +254,7 @@ SOURCES += main.cpp\
audiodevices.cpp
HEADERS += wfmain.h \
bandbuttons.h \
colorprefs.h \
commhandler.h \
cwsender.h \
@ -300,6 +302,7 @@ HEADERS += wfmain.h \
audiodevices.h
FORMS += wfmain.ui \
bandbuttons.ui \
calibrationwindow.ui \
cwsender.ui \
loggingwindow.ui \