added mode radio-buttons to front page of GUI
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 7 Mar 2013 04:18:54 +0000 (04:18 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 7 Mar 2013 04:18:54 +0000 (04:18 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@1189 01035d8c-6547-0410-b346-abe4f91aad63

fdmdv2/src/fdmdv2_main.cpp
fdmdv2/src/topFrame.cpp
fdmdv2/src/topFrame.h

index 63ec85ecaaa7cc398b15eba9c9ba06da145a05dd..1779d2b32b0f4280fd6f75a2441f41ba5120d8f7 100644 (file)
@@ -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
 // 
index 544ca1aec1df51f1aa0a0331c6006f6e815745be..a73dfaf57d5bf10ab35fb0c3c4170f9738797261 100644 (file)
@@ -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
     //=====================================================
index 9195fd632295d84feb0a8a9d3b40e4b0f9211114..5c69a4c383f8886f47c48844c5a17fba54bf3012 100644 (file)
@@ -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(); }