From 31370d400738e804f55bcc1c2708e9ab08349aad Mon Sep 17 00:00:00 2001 From: drowe67 Date: Thu, 7 Mar 2013 04:18:54 +0000 Subject: [PATCH] added mode radio-buttons to front page of GUI git-svn-id: https://svn.code.sf.net/p/freetel/code@1189 01035d8c-6547-0410-b346-abe4f91aad63 --- fdmdv2/src/fdmdv2_main.cpp | 2 +- fdmdv2/src/topFrame.cpp | 22 +++++++++++++++++++++- fdmdv2/src/topFrame.h | 4 ++++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/fdmdv2/src/fdmdv2_main.cpp b/fdmdv2/src/fdmdv2_main.cpp index 63ec85ec..1779d2b3 100644 --- a/fdmdv2/src/fdmdv2_main.cpp +++ b/fdmdv2/src/fdmdv2_main.cpp @@ -1,7 +1,7 @@ //========================================================================== // Name: fdmdv2_main.cpp // -// Purpose: Implements simple wxWidgets application with GUI. +// Purpose: FreeDV main() // Created: Apr. 9, 2012 // Authors: David Rowe, David Witten // diff --git a/fdmdv2/src/topFrame.cpp b/fdmdv2/src/topFrame.cpp index 544ca1ae..a73dfaf5 100644 --- a/fdmdv2/src/topFrame.cpp +++ b/fdmdv2/src/topFrame.cpp @@ -243,7 +243,6 @@ TopFrame::TopFrame(wxWindow* parent, wxWindowID id, const wxString& title, const // Squelch Toggle Checkbox //------------------------------ m_ckboxSQ = new wxCheckBox(this, wxID_ANY, _(""), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE); - m_ckboxSQ->SetToolTip(_("Activate/Deactivate Squelch")); sbSizer3->Add(m_ckboxSQ, 0, wxALIGN_CENTER_HORIZONTAL, 0); rightSizer->Add(sbSizer3, 2, wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 0); @@ -260,6 +259,27 @@ TopFrame::TopFrame(wxWindow* parent, wxWindowID id, const wxString& title, const rightSizer->Add(sbSizer3_33,0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxEXPAND, 3); + /* new --- */ + + //------------------------------ + // Mode box + //------------------------------ + wxStaticBoxSizer* sbSizer_mode; + sbSizer_mode = new wxStaticBoxSizer(new wxStaticBox(this, wxID_ANY, _("Mode")), wxVERTICAL); + + m_rb1400old = new wxRadioButton( this, wxID_ANY, wxT("1400 V0.91"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP); + sbSizer_mode->Add(m_rb1400old, 0, wxALIGN_LEFT|wxALL, 1); + m_rb1400 = new wxRadioButton( this, wxID_ANY, wxT("1400"), wxDefaultPosition, wxDefaultSize, 0); + sbSizer_mode->Add(m_rb1400, 0, wxALIGN_LEFT|wxALL, 1); + m_rb1600 = new wxRadioButton( this, wxID_ANY, wxT("1600"), wxDefaultPosition, wxDefaultSize, 0); + sbSizer_mode->Add(m_rb1600, 0, wxALIGN_LEFT|wxALL, 1); + m_rb2000 = new wxRadioButton( this, wxID_ANY, wxT("2000"), wxDefaultPosition, wxDefaultSize, 0); + sbSizer_mode->Add(m_rb2000, 0, wxALIGN_LEFT|wxALL, 1); + + rightSizer->Add(sbSizer_mode,0, wxALIGN_CENTER_HORIZONTAL|wxALL|wxEXPAND, 3); + + /* new --- */ + //===================================================== // Control Toggles box //===================================================== diff --git a/fdmdv2/src/topFrame.h b/fdmdv2/src/topFrame.h index 9195fd63..5c69a4c3 100644 --- a/fdmdv2/src/topFrame.h +++ b/fdmdv2/src/topFrame.h @@ -93,6 +93,10 @@ class TopFrame : public wxFrame wxStaticText* m_textSQ; wxStatusBar* m_statusBar1; wxRadioButton *m_rbSync; + wxRadioButton *m_rb1400old; + wxRadioButton *m_rb1400; + wxRadioButton *m_rb1600; + wxRadioButton *m_rb2000; // Virtual event handlers, overide them in your derived class virtual void topFrame_OnClose( wxCloseEvent& event ) { event.Skip(); } -- 2.25.1