1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
|
//==========================================================================
// Name: topFrame.h
//
// Purpose: Implements simple wxWidgets application with GUI.
// Created: Apr. 9, 2012
// Authors: David Rowe, David Witten
//
// License:
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License version 2.1,
// as published by the Free Software Foundation. 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 Lesser General Public License
// along with this program; if not, see <http://www.gnu.org/licenses/>.
//
//==========================================================================
#ifndef __TOPFRAME_H__
#define __TOPFRAME_H__
#include "version.h"
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
#include <wx/string.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/menu.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/gauge.h>
#include <wx/textctrl.h>
#include <wx/sizer.h>
#include <wx/statbox.h>
#include <wx/aui/auibook.h>
#include <wx/tglbtn.h>
#include <wx/slider.h>
#include <wx/checkbox.h>
#include <wx/statusbr.h>
#include <wx/frame.h>
#include <wx/statbmp.h>
#include <wx/stattext.h>
#include <wx/button.h>
#include <wx/dialog.h>
#include <wx/radiobut.h>
#include <wx/combobox.h>
#include <wx/panel.h>
#include <wx/listbox.h>
#include <wx/notebook.h>
#include <wx/listctrl.h>
///////////////////////////////////////////////////////////////////////////
#define ID_OPEN 1000
#define ID_SAVE 1001
#define ID_CLOSE 1002
#define ID_EXIT 1003
#define ID_COPY 1004
#define ID_CUT 1005
#define ID_PASTE 1006
#define ID_OPTIONS 1007
#define ID_ABOUT 1008
///////////////////////////////////////////////////////////////////////////////
/// Class TopFrame
///////////////////////////////////////////////////////////////////////////////
class TopFrame : public wxFrame
{
private:
protected:
wxMenuBar* m_menubarMain;
wxMenu* file;
wxMenu* edit;
wxMenu* tools;
wxMenu* help;
wxGauge* m_gaugeSNR;
wxStaticText* m_textSNR;
wxCheckBox* m_ckboxSNR;
wxGauge* m_gaugeLevel;
wxStaticText* m_textLevel;
wxButton* m_BtnCallSignReset;
wxTextCtrl* m_txtCtrlCallSign;
wxStaticText* m_txtChecksumGood;
wxStaticText* m_txtChecksumBad;
wxSlider* m_sliderSQ;
wxCheckBox* m_ckboxSQ;
wxStaticText* m_textSQ;
wxStatusBar* m_statusBar1;
wxButton* m_BtnBerReset;
wxStaticText *m_textBits;
wxStaticText *m_textErrors;
wxStaticText *m_textBER;
wxStaticText *m_textResyncs;
wxStaticText *m_textClockOffset;
wxStaticText *m_textFreqOffset;
wxStaticText *m_textSyncMetric;
wxStaticText *m_textSync;
wxStaticText *m_textInterleaverSync;
wxButton *m_BtnReSync;
wxRadioButton *m_rb1400old;
wxRadioButton *m_rb1400;
wxRadioButton *m_rb700;
wxRadioButton *m_rb700b;
wxRadioButton *m_rb700c;
wxRadioButton *m_rb700d;
wxRadioButton *m_rb800xa;
wxRadioButton *m_rb1600;
wxRadioButton *m_rb2000;
wxRadioButton *m_rb1600Wide;
wxRadioButton *m_rbPlugIn;
// Virtual event handlers, overide them in your derived class
virtual void topFrame_OnClose( wxCloseEvent& event ) { event.Skip(); }
virtual void topFrame_OnPaint( wxPaintEvent& event ) { event.Skip(); }
virtual void topFrame_OnSize( wxSizeEvent& event ) { event.Skip(); }
virtual void topFrame_OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); }
virtual void OnExit( wxCommandEvent& event ) { event.Skip(); }
virtual void OnTop( wxCommandEvent& event ) { event.Skip(); }
virtual void OnToolsAudio( wxCommandEvent& event ) { event.Skip(); }
virtual void OnToolsAudioUI( wxUpdateUIEvent& event ) { event.Skip(); }
virtual void OnToolsFilter( wxCommandEvent& event ) { event.Skip(); }
virtual void OnToolsFilterUI( wxUpdateUIEvent& event ) { event.Skip(); }
virtual void OnToolsOptions( wxCommandEvent& event ) { event.Skip(); }
virtual void OnToolsPlugInCfg( wxCommandEvent& event ) { event.Skip(); }
virtual void OnToolsPlugInCfgUI( wxUpdateUIEvent& event ) { event.Skip(); }
virtual void OnToolsUDP( wxCommandEvent& event ) { event.Skip(); }
virtual void OnToolsOptionsUI( wxUpdateUIEvent& event ) { event.Skip(); }
virtual void OnToolsComCfg( wxCommandEvent& event ) { event.Skip(); }
virtual void OnToolsComCfgUI( wxUpdateUIEvent& event ) { event.Skip(); }
virtual void OnPlayFileToMicIn( wxCommandEvent& event ) { event.Skip(); }
virtual void OnRecFileFromRadio( wxCommandEvent& event ) { event.Skip(); }
virtual void OnPlayFileFromRadio( wxCommandEvent& event ) { event.Skip(); }
virtual void OnHelpCheckUpdates( wxCommandEvent& event ) { event.Skip(); }
virtual void OnHelpCheckUpdatesUI( wxUpdateUIEvent& event ) { event.Skip(); }
virtual void OnHelpAbout( wxCommandEvent& event ) { event.Skip(); }
virtual void OnTogBtnRxID( wxCommandEvent& event ) { event.Skip(); }
virtual void OnTogBtnTxID( wxCommandEvent& event ) { event.Skip(); }
virtual void OnCmdSliderScroll( wxScrollEvent& event ) { event.Skip(); }
virtual void OnSliderScrollBottom( wxScrollEvent& event ) { event.Skip(); }
virtual void OnCmdSliderScrollChanged( wxScrollEvent& event ) { event.Skip(); }
virtual void OnSliderScrollTop( wxScrollEvent& event ) { event.Skip(); }
virtual void OnCheckSQClick( wxCommandEvent& event ) { event.Skip(); }
virtual void OnCheckSNRClick( wxCommandEvent& event ) { event.Skip(); }
virtual void OnTogBtnLoopRx( wxCommandEvent& event ) { event.Skip(); }
virtual void OnTogBtnLoopTx( wxCommandEvent& event ) { event.Skip(); }
virtual void OnTogBtnOnOff( wxCommandEvent& event ) { event.Skip(); }
virtual void OnTogBtnSplitClick( wxCommandEvent& event ) { event.Skip(); }
virtual void OnTogBtnAnalogClick( wxCommandEvent& event ) { event.Skip(); }
virtual void OnTogBtnVoiceKeyerClick( wxCommandEvent& event ) { event.Skip(); }
virtual void OnTogBtnALCClick( wxCommandEvent& event ) { event.Skip(); }
virtual void OnTogBtnPTT( wxCommandEvent& event ) { event.Skip(); }
virtual void OnTogBtnSplitClickUI(wxUpdateUIEvent& event) { event.Skip(); }
virtual void OnTogBtnAnalogClickUI(wxUpdateUIEvent& event) { event.Skip(); }
virtual void OnTogBtnALCClickUI(wxUpdateUIEvent& event) { event.Skip(); }
virtual void OnTogBtnRxIDUI(wxUpdateUIEvent& event ) { event.Skip(); }
virtual void OnTogBtnTxIDUI(wxUpdateUIEvent& event ) { event.Skip(); }
virtual void OnTogBtnPTT_UI(wxUpdateUIEvent& event ) { event.Skip(); }
virtual void OnTogBtnOnOffUI(wxUpdateUIEvent& event ) { event.Skip(); }
virtual void OnCallSignReset( wxCommandEvent& event ) { event.Skip(); }
virtual void OnBerReset( wxCommandEvent& event ) { event.Skip(); }
virtual void OnReSync( wxCommandEvent& event ) { event.Skip(); }
public:
wxToggleButton* m_togRxID;
wxToggleButton* m_togTxID;
wxToggleButton* m_togBtnOnOff;
wxToggleButton* m_togBtnSplit;
wxToggleButton* m_togBtnAnalog;
wxToggleButton* m_togBtnVoiceKeyer;
wxToggleButton* m_togBtnALC;
wxToggleButton* m_btnTogPTT;
wxToggleButton* m_togBtnLoopRx;
wxToggleButton* m_togBtnLoopTx;
wxAuiNotebook* m_auiNbookCtrl;
TopFrame( wxString plugInName, wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("FreeDV ") + _(FREEDV_VERSION), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(561,300 ), long style = wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER|wxTAB_TRAVERSAL );
~TopFrame();
};
#endif //__TOPFRAME_H__
|