## Auto Generated makefile by CodeLite IDE\r
## any manual changes will be erased \r
##\r
-## Debug\r
+## Release\r
ProjectName :=fdmdv2\r
-ConfigurationName :=Debug\r
+ConfigurationName :=Release\r
WorkspacePath := "C:\bin\Projects\Radio\fdmdv2\build"\r
ProjectPath := "C:\bin\Projects\Radio\fdmdv2\build"\r
-IntermediateDirectory :=./Debug\r
+IntermediateDirectory :=./Release\r
OutDir := $(IntermediateDirectory)\r
CurrentFileName :=\r
CurrentFilePath :=\r
CurrentFileFullPath :=\r
User :=OFA-Staff\r
-Date :=10/22/2012\r
+Date :=10/23/2012\r
CodeLitePath :="C:\bin\CodeLite"\r
LinkerName :=g++\r
SharedObjectLinkerName :=g++ -shared -fPIC\r
ObjectsFileList :="C:\bin\Projects\Radio\fdmdv2\build\fdmdv2.txt"\r
PCHCompileFlags :=\r
MakeDirCommand :=makedir\r
-LinkOptions := -mwindows $(shell wx-config --debug=yes --libs --unicode=yes)\r
-IncludePath := $(IncludeSwitch). $(IncludeSwitch)/bin/MinGW-4.6.1/msys/1.0/local/include $(IncludeSwitch)../../codec2-dev/src $(IncludeSwitch)/bin/Projects/Audio/libsndfile/include \r
+LinkOptions := -mwindows -s $(shell wx-config --debug=no --libs --unicode=yes)\r
+IncludePath := $(IncludeSwitch). $(IncludeSwitch)/bin/MinGW-4.6.1/msys/1.0/local/include $(IncludeSwitch)../../codec2-dev/src $(IncludeSwitch)/bin/Projects/Audio/libsndfile/ \r
IncludePCH := \r
RcIncludePath := \r
Libs := $(LibrarySwitch)sndfile-1 $(LibrarySwitch)codec2 $(LibrarySwitch)portaudio $(LibrarySwitch)portaudiocpp \r
AR := ar rcus\r
CXX := g++\r
CC := gcc\r
-CXXFLAGS := -g -O0 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=yes) -DSVN_REVISION=\"791\" $(Preprocessors)\r
-CFLAGS := -g -O0 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=yes) -DSVN_REVISION=\"791\" $(Preprocessors)\r
+CXXFLAGS := -O2 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=no) -DSVN_REVISION=\"794\" $(Preprocessors)\r
+CFLAGS := -O2 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=no) -DSVN_REVISION=\"794\" $(Preprocessors)\r
\r
\r
##\r
PATH:=$(WXWIN)\lib\gcc_dll;$(PATH)\r
WXCFG:=gcc_dll\mswu\r
UNIT_TEST_PP_SRC_DIR:=C:\bin\UnitTest++-1.3\r
-Objects=$(IntermediateDirectory)/src_dlg_about$(ObjectSuffix) $(IntermediateDirectory)/src_dlg_audio$(ObjectSuffix) $(IntermediateDirectory)/src_dlg_comports$(ObjectSuffix) $(IntermediateDirectory)/src_dlg_options$(ObjectSuffix) $(IntermediateDirectory)/src_fdmdv2_main$(ObjectSuffix) $(IntermediateDirectory)/src_fdmdv2_plot$(ObjectSuffix) $(IntermediateDirectory)/src_topFrame$(ObjectSuffix) $(IntermediateDirectory)/src_fdmdv2_plot_scatter$(ObjectSuffix) $(IntermediateDirectory)/src_fdmdv2_plot_waterfall$(ObjectSuffix) $(IntermediateDirectory)/src_fdmdv2_plot_spectrum$(ObjectSuffix) \\r
- $(IntermediateDirectory)/src_fdmdv2_pa_wrapper$(ObjectSuffix) $(IntermediateDirectory)/src_fdmdv2_plot_scalar$(ObjectSuffix) $(IntermediateDirectory)/src_fdmdv2_hdw_ports$(ObjectSuffix) \r
+Objects=$(IntermediateDirectory)/src_dlg_about$(ObjectSuffix) $(IntermediateDirectory)/src_dlg_audio$(ObjectSuffix) $(IntermediateDirectory)/src_dlg_comports$(ObjectSuffix) $(IntermediateDirectory)/src_dlg_options$(ObjectSuffix) $(IntermediateDirectory)/src_fdmdv2_main$(ObjectSuffix) $(IntermediateDirectory)/src_fdmdv2_plot$(ObjectSuffix) $(IntermediateDirectory)/src_topFrame$(ObjectSuffix) $(IntermediateDirectory)/src_fdmdv2_plot_scatter$(ObjectSuffix) $(IntermediateDirectory)/src_fdmdv2_plot_spectrum$(ObjectSuffix) $(IntermediateDirectory)/src_fdmdv2_pa_wrapper$(ObjectSuffix) \\r
+ $(IntermediateDirectory)/src_fdmdv2_plot_scalar$(ObjectSuffix) $(IntermediateDirectory)/src_fdmdv2_hdw_ports$(ObjectSuffix) $(IntermediateDirectory)/src_fdmdv2_plot_waterfall_linux$(ObjectSuffix) \r
\r
##\r
## Main Build Targets \r
$(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions)\r
\r
$(IntermediateDirectory)/.d:\r
- @$(MakeDirCommand) "./Debug"\r
+ @$(MakeDirCommand) "./Release"\r
\r
PreBuild:\r
\r
$(IntermediateDirectory)/src_fdmdv2_plot_scatter$(PreprocessSuffix): ../src/fdmdv2_plot_scatter.cpp\r
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_fdmdv2_plot_scatter$(PreprocessSuffix) "C:/bin/Projects/Radio/fdmdv2/src/fdmdv2_plot_scatter.cpp"\r
\r
-$(IntermediateDirectory)/src_fdmdv2_plot_waterfall$(ObjectSuffix): ../src/fdmdv2_plot_waterfall.cpp $(IntermediateDirectory)/src_fdmdv2_plot_waterfall$(DependSuffix)\r
- $(CXX) $(IncludePCH) $(SourceSwitch) "C:/bin/Projects/Radio/fdmdv2/src/fdmdv2_plot_waterfall.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_fdmdv2_plot_waterfall$(ObjectSuffix) $(IncludePath)\r
-$(IntermediateDirectory)/src_fdmdv2_plot_waterfall$(DependSuffix): ../src/fdmdv2_plot_waterfall.cpp\r
- @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_fdmdv2_plot_waterfall$(ObjectSuffix) -MF$(IntermediateDirectory)/src_fdmdv2_plot_waterfall$(DependSuffix) -MM "C:/bin/Projects/Radio/fdmdv2/src/fdmdv2_plot_waterfall.cpp"\r
-\r
-$(IntermediateDirectory)/src_fdmdv2_plot_waterfall$(PreprocessSuffix): ../src/fdmdv2_plot_waterfall.cpp\r
- @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_fdmdv2_plot_waterfall$(PreprocessSuffix) "C:/bin/Projects/Radio/fdmdv2/src/fdmdv2_plot_waterfall.cpp"\r
-\r
$(IntermediateDirectory)/src_fdmdv2_plot_spectrum$(ObjectSuffix): ../src/fdmdv2_plot_spectrum.cpp $(IntermediateDirectory)/src_fdmdv2_plot_spectrum$(DependSuffix)\r
$(CXX) $(IncludePCH) $(SourceSwitch) "C:/bin/Projects/Radio/fdmdv2/src/fdmdv2_plot_spectrum.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_fdmdv2_plot_spectrum$(ObjectSuffix) $(IncludePath)\r
$(IntermediateDirectory)/src_fdmdv2_plot_spectrum$(DependSuffix): ../src/fdmdv2_plot_spectrum.cpp\r
$(IntermediateDirectory)/src_fdmdv2_hdw_ports$(PreprocessSuffix): ../src/fdmdv2_hdw_ports.cpp\r
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_fdmdv2_hdw_ports$(PreprocessSuffix) "C:/bin/Projects/Radio/fdmdv2/src/fdmdv2_hdw_ports.cpp"\r
\r
+$(IntermediateDirectory)/src_fdmdv2_plot_waterfall_linux$(ObjectSuffix): ../src/fdmdv2_plot_waterfall_linux.cpp $(IntermediateDirectory)/src_fdmdv2_plot_waterfall_linux$(DependSuffix)\r
+ $(CXX) $(IncludePCH) $(SourceSwitch) "C:/bin/Projects/Radio/fdmdv2/src/fdmdv2_plot_waterfall_linux.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_fdmdv2_plot_waterfall_linux$(ObjectSuffix) $(IncludePath)\r
+$(IntermediateDirectory)/src_fdmdv2_plot_waterfall_linux$(DependSuffix): ../src/fdmdv2_plot_waterfall_linux.cpp\r
+ @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_fdmdv2_plot_waterfall_linux$(ObjectSuffix) -MF$(IntermediateDirectory)/src_fdmdv2_plot_waterfall_linux$(DependSuffix) -MM "C:/bin/Projects/Radio/fdmdv2/src/fdmdv2_plot_waterfall_linux.cpp"\r
+\r
+$(IntermediateDirectory)/src_fdmdv2_plot_waterfall_linux$(PreprocessSuffix): ../src/fdmdv2_plot_waterfall_linux.cpp\r
+ @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_fdmdv2_plot_waterfall_linux$(PreprocessSuffix) "C:/bin/Projects/Radio/fdmdv2/src/fdmdv2_plot_waterfall_linux.cpp"\r
+\r
\r
-include $(IntermediateDirectory)/*$(DependSuffix)\r
##\r
$(RM) $(IntermediateDirectory)/src_fdmdv2_plot_scatter$(ObjectSuffix)\r
$(RM) $(IntermediateDirectory)/src_fdmdv2_plot_scatter$(DependSuffix)\r
$(RM) $(IntermediateDirectory)/src_fdmdv2_plot_scatter$(PreprocessSuffix)\r
- $(RM) $(IntermediateDirectory)/src_fdmdv2_plot_waterfall$(ObjectSuffix)\r
- $(RM) $(IntermediateDirectory)/src_fdmdv2_plot_waterfall$(DependSuffix)\r
- $(RM) $(IntermediateDirectory)/src_fdmdv2_plot_waterfall$(PreprocessSuffix)\r
$(RM) $(IntermediateDirectory)/src_fdmdv2_plot_spectrum$(ObjectSuffix)\r
$(RM) $(IntermediateDirectory)/src_fdmdv2_plot_spectrum$(DependSuffix)\r
$(RM) $(IntermediateDirectory)/src_fdmdv2_plot_spectrum$(PreprocessSuffix)\r
$(RM) $(IntermediateDirectory)/src_fdmdv2_hdw_ports$(ObjectSuffix)\r
$(RM) $(IntermediateDirectory)/src_fdmdv2_hdw_ports$(DependSuffix)\r
$(RM) $(IntermediateDirectory)/src_fdmdv2_hdw_ports$(PreprocessSuffix)\r
+ $(RM) $(IntermediateDirectory)/src_fdmdv2_plot_waterfall_linux$(ObjectSuffix)\r
+ $(RM) $(IntermediateDirectory)/src_fdmdv2_plot_waterfall_linux$(DependSuffix)\r
+ $(RM) $(IntermediateDirectory)/src_fdmdv2_plot_waterfall_linux$(PreprocessSuffix)\r
$(RM) $(OutputFile)\r
$(RM) $(OutputFile).exe\r
- $(RM) "C:\bin\Projects\Radio\fdmdv2\build\.build-debug\fdmdv2"\r
+ $(RM) "C:\bin\Projects\Radio\fdmdv2\build\.build-release\fdmdv2"\r
\r
\r
<File Name="../src/fdmdv2_plot.cpp"/>
<File Name="../src/topFrame.cpp"/>
<File Name="../src/fdmdv2_plot_scatter.cpp"/>
- <File Name="../src/fdmdv2_plot_waterfall.cpp"/>
<File Name="../src/fdmdv2_plot_spectrum.cpp"/>
<File Name="../src/fdmdv2_pa_wrapper.cpp"/>
<File Name="../src/fdmdv2_plot_scalar.cpp"/>
<File Name="../src/fdmdv2_hdw_ports.cpp"/>
+ <File Name="../src/fdmdv2_plot_waterfall_linux.cpp"/>
</VirtualDirectory>
<VirtualDirectory Name="include">
<File Name="../src/dlg_about.h"/>
<File Name="../extern/include/portaudiocpp/SystemHostApiIterator.hxx"/>
</VirtualDirectory>
<File Name="../src/fdmdv2_plot_scatter.h"/>
- <File Name="../src/fdmdv2_plot_waterfall.h"/>
<File Name="../src/fdmdv2_plot_spectrum.h"/>
<File Name="../src/fdmdv2_pa_wrapper.h"/>
<File Name="../src/comp.h"/>
<File Name="../src/fdmdv2_hdw_ports.h"/>
<File Name="../../../Audio/portaudio/include/portaudio.h"/>
<File Name="../../../Audio/libsndfile/include/sndfile.h"/>
+ <File Name="../src/fdmdv2_plot_waterfall_linux.h"/>
</VirtualDirectory>
<VirtualDirectory Name="resources">
<File Name="../src/FDMDV2.fbp"/>
-./Debug/src_dlg_about.o ./Debug/src_dlg_audio.o ./Debug/src_dlg_comports.o ./Debug/src_dlg_options.o ./Debug/src_fdmdv2_main.o ./Debug/src_fdmdv2_plot.o ./Debug/src_topFrame.o ./Debug/src_fdmdv2_plot_scatter.o ./Debug/src_fdmdv2_plot_waterfall.o ./Debug/src_fdmdv2_plot_spectrum.o ./Debug/src_fdmdv2_pa_wrapper.o ./Debug/src_fdmdv2_plot_scalar.o ./Debug/src_fdmdv2_hdw_ports.o \r
+./Release/src_dlg_about.o ./Release/src_dlg_audio.o ./Release/src_dlg_comports.o ./Release/src_dlg_options.o ./Release/src_fdmdv2_main.o ./Release/src_fdmdv2_plot.o ./Release/src_topFrame.o ./Release/src_fdmdv2_plot_scatter.o ./Release/src_fdmdv2_plot_spectrum.o ./Release/src_fdmdv2_pa_wrapper.o ./Release/src_fdmdv2_plot_scalar.o ./Release/src_fdmdv2_hdw_ports.o ./Release/src_fdmdv2_plot_waterfall_linux.o \r
</Environment>
<Project Name="rawbits" Path="../tests/image/rawbits.project" Active="No"/>
<BuildMatrix>
- <WorkspaceConfiguration Name="Debug" Selected="yes">
+ <WorkspaceConfiguration Name="Debug" Selected="no">
<Project Name="fdmdv2" ConfigName="Debug"/>
<Project Name="rawbits" ConfigName="Debug"/>
</WorkspaceConfiguration>
- <WorkspaceConfiguration Name="Release" Selected="no">
+ <WorkspaceConfiguration Name="Release" Selected="yes">
<Project Name="fdmdv2" ConfigName="Release"/>
<Project Name="rawbits" ConfigName="Release"/>
</WorkspaceConfiguration>
.PHONY: clean All
All:
- @echo ----------Building project:[ fdmdv2 - Debug ]----------
+ @echo ----------Building project:[ fdmdv2 - Release ]----------
@"$(MAKE)" -f "fdmdv2.mk"
clean:
- @echo ----------Cleaning project:[ fdmdv2 - Debug ]----------
+ @echo ----------Cleaning project:[ fdmdv2 - Release ]----------
@"$(MAKE)" -f "fdmdv2.mk" clean
tools->Append(m_menuItemToolsConfigDelete);
- // Add Waterfall Plot window
- m_panelWaterfall = new PlotWaterfall((wxFrame*) m_auiNbookCtrl);
- m_auiNbookCtrl->AddPage(m_panelWaterfall, _("Waterfall"), true, wxNullBitmap);
-
- // Add Spectrum Plot window
- m_panelSpectrum = new PlotSpectrum((wxFrame*) m_auiNbookCtrl);
- m_auiNbookCtrl->AddPage(m_panelSpectrum, _("Spectrum"), true, wxNullBitmap);
-
wxConfigBase *pConfig = wxConfigBase::Get();
// restore frame position and size
int y = pConfig->Read(wxT("/MainFrame/left"), 50);
int w = pConfig->Read(wxT("/MainFrame/width"), 650);
int h = pConfig->Read(wxT("/MainFrame/height"), 400);
+ wxGetApp().m_show_wf = pConfig->Read(wxT("/MainFrame/show_wf"), 1);
+ wxGetApp().m_show_spect = pConfig->Read(wxT("/MainFrame/show_spect"), 1);
+ wxGetApp().m_show_scatter = pConfig->Read(wxT("/MainFrame/show_scatter"), 1);
+ wxGetApp().m_show_timing = pConfig->Read(wxT("/MainFrame/show_timing"), 1);
+ wxGetApp().m_show_freq = pConfig->Read(wxT("/MainFrame/show_freq"), 1);
Move(x, y);
SetClientSize(w, h);
+ if(wxGetApp().m_show_wf)
+ {
+ // Add Waterfall Plot window
+ m_panelWaterfall = new PlotWaterfall((wxFrame*) m_auiNbookCtrl);
+ m_auiNbookCtrl->AddPage(m_panelWaterfall, _("Waterfall"), true, wxNullBitmap);
+ }
+ if(wxGetApp().m_show_spect)
+ {
+ // Add Spectrum Plot window
+ m_panelSpectrum = new PlotSpectrum((wxFrame*) m_auiNbookCtrl);
+ m_auiNbookCtrl->AddPage(m_panelSpectrum, _("Spectrum"), true, wxNullBitmap);
+ }
+ if(wxGetApp().m_show_scatter)
+ {
+ // Add Scatter Plot window
+ m_panelScatter = new PlotScatter((wxFrame*) m_auiNbookCtrl);
+ m_auiNbookCtrl->AddPage(m_panelScatter, _("Scatter"), true, wxNullBitmap);
+ }
+ if(wxGetApp().m_show_timing)
+ {
+ // Add Timing Offset window
+ m_panelTimeOffset = new PlotScalar((wxFrame*) m_auiNbookCtrl);
+ m_auiNbookCtrl->AddPage(m_panelTimeOffset, L"Timing \u0394", true, wxNullBitmap);
+ }
+ if(wxGetApp().m_show_freq )
+ {
+ // Add Frequency Offset window
+ m_panelFreqOffset = new PlotScalar((wxFrame*) m_auiNbookCtrl);
+ m_auiNbookCtrl->AddPage(m_panelFreqOffset, L"Frequency \u0394", true, wxNullBitmap);
+ }
wxGetApp().m_strRxInAudio = pConfig->Read(wxT("/Audio/RxIn"), wxT("<m_strRxInAudio>"));
wxGetApp().m_strRxOutAudio = pConfig->Read(wxT("/Audio/RxOut"), wxT("<m_strRxOutAudio>"));
wxGetApp().m_textVoiceInput = pConfig->Read(wxT("/Audio/TxIn"), wxT("<m_textVoiceInput>"));
{
GetClientSize(&w, &h);
GetPosition(&x, &y);
- pConfig->Write(wxT("/MainFrame/top"), (long) x);
- pConfig->Write(wxT("/MainFrame/left"), (long) y);
- pConfig->Write(wxT("/MainFrame/width"), (long) w);
- pConfig->Write(wxT("/MainFrame/height"), (long) h);
-
- pConfig->Write(wxT("/Audio/RxIn"), wxGetApp().m_strRxInAudio);
- pConfig->Write(wxT("/Audio/RxOut"), wxGetApp().m_strRxOutAudio);
- pConfig->Write(wxT("/Audio/TxIn"), wxGetApp().m_textVoiceInput);
- pConfig->Write(wxT("/Audio/TxOut"), wxGetApp().m_textVoiceOutput);
- pConfig->Write(wxT("/Audio/SampleRate"), wxGetApp().m_strSampleRate);
-
- pConfig->Write(wxT("/Rig/Port"), wxGetApp().m_strRigCtrlPort);
- pConfig->Write(wxT("/Rig/Baud"), wxGetApp().m_strRigCtrlBaud);
- pConfig->Write(wxT("/Rig/DataBits"), wxGetApp().m_strRigCtrlDatabits);
- pConfig->Write(wxT("/Rig/StopBits"), wxGetApp().m_strRigCtrlStopbits);
- pConfig->Write(wxT("/Rig/Parity"), wxGetApp().m_strRigCtrlParity);
+ pConfig->Write(wxT("/MainFrame/top"), (long) x);
+ pConfig->Write(wxT("/MainFrame/left"), (long) y);
+ pConfig->Write(wxT("/MainFrame/width"), (long) w);
+ pConfig->Write(wxT("/MainFrame/height"), (long) h);
+ pConfig->Write(wxT("/MainFrame/show_wf"), wxGetApp().m_show_wf);
+ pConfig->Write(wxT("/MainFrame/show_spect"), wxGetApp().m_show_spect);
+ pConfig->Write(wxT("/MainFrame/show_scatter"), wxGetApp().m_show_scatter);
+ pConfig->Write(wxT("/MainFrame/show_timing"), wxGetApp().m_show_timing);
+ pConfig->Write(wxT("/MainFrame/show_freq"), wxGetApp().m_show_freq);
+
+ pConfig->Write(wxT("/Audio/RxIn"), wxGetApp().m_strRxInAudio);
+ pConfig->Write(wxT("/Audio/RxOut"), wxGetApp().m_strRxOutAudio);
+ pConfig->Write(wxT("/Audio/TxIn"), wxGetApp().m_textVoiceInput);
+ pConfig->Write(wxT("/Audio/TxOut"), wxGetApp().m_textVoiceOutput);
+ pConfig->Write(wxT("/Audio/SampleRate"), wxGetApp().m_strSampleRate);
+
+ pConfig->Write(wxT("/Rig/Port"), wxGetApp().m_strRigCtrlPort);
+ pConfig->Write(wxT("/Rig/Baud"), wxGetApp().m_strRigCtrlBaud);
+ pConfig->Write(wxT("/Rig/DataBits"), wxGetApp().m_strRigCtrlDatabits);
+ pConfig->Write(wxT("/Rig/StopBits"), wxGetApp().m_strRigCtrlStopbits);
+ pConfig->Write(wxT("/Rig/Parity"), wxGetApp().m_strRigCtrlParity);
}
m_togRxID->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MainFrame::OnTogBtnRxIDUI), NULL, this);
m_togTxID->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MainFrame::OnTogBtnTxIDUI), NULL, this);
#include "fdmdv2_plot.h"
#include "fdmdv2_plot_scalar.h"
#include "fdmdv2_plot_scatter.h"
-#ifdef __LINUX__
+//#ifdef __LINUX__
#include "fdmdv2_plot_waterfall_linux.h"
-#else
-#include "fdmdv2_plot_waterfall.h"
-#endif
+//#else
+//#include "fdmdv2_plot_waterfall.h"
+//#endif
#include "fdmdv2_plot_spectrum.h"
#include "fdmdv2_pa_wrapper.h"
#include "sndfile.h"
wxString m_strRigCtrlDatabits;
wxString m_strRigCtrlStopbits;
wxString m_strRigCtrlParity;
+ int m_show_wf;
+ int m_show_spect;
+ int m_show_scatter;
+ int m_show_timing;
+ int m_show_freq;
wxRect m_rTopWindow;
MainFrame(wxWindow *parent);
virtual ~MainFrame();
-// PlotPanel* m_panelDefaultA;
PlotSpectrum* m_panelSpectrum;
PlotWaterfall* m_panelWaterfall;
PlotScatter* m_panelScatter;
- PlotScalar* m_panelScalar;
+ PlotScalar* m_panelTimeOffset;
+ PlotScalar* m_panelFreqOffset;
bool m_SquelchActive;
bool m_RxRunning;
bool m_TxRunning;
PaDeviceIndex m_txDevOut;
PaError m_rxErr;
PaError m_txErr;
-// wxSound *m_sound;
#ifdef _USE_TIMER
wxTimer m_plotTimer;
#endif
//----------------------------------------------------------------
// PlotScalar()
//----------------------------------------------------------------
-PlotScalar::PlotScalar(wxFrame* parent, int x_max_, int y_max_): PlotPanel(parent)
+//PlotScalar::PlotScalar(wxFrame* parent, int x_max_, int y_max_): PlotPanel(parent)
+PlotScalar::PlotScalar(wxFrame* parent): PlotPanel(parent)
{
int i;
//align(FL_ALIGN_TOP);
//labelsize(10);
- m_x_max = x_max_;
- m_y_max = y_max_;
+// m_x_max = x_max_;
+// m_y_max = y_max_;
m_mem = new float[m_x_max];
for(i = 0; i < m_x_max; i++)
public:
//PlotScalar(wxFrame* parent, int x, int y, int w, int h, int x_max_, int y_max_, const char name[]);
- PlotScalar(wxFrame* parent, int x_max_, int y_max_);
+ PlotScalar(wxFrame* parent);
~PlotScalar();
void add_new_sample(float sample);
wxNativePixelData::Iterator rowStart = p;
for(int x = 0; x < (w - 1); ++x, ++p)
{
-// p.Red() = m_pTopFrame->m_rxPa->m_av_mag[x];
-// p.Green() = m_pTopFrame->m_rxPa->m_av_mag[x];
-// p.Blue() = m_pTopFrame->m_rxPa->m_av_mag[x];
-
p.Red() = g_avmag[x];
p.Green() = g_avmag[x];
p.Blue() = g_avmag[x];
for(px = 0; px < m_rCtrl.GetWidth(); px++)
{
index = px * spec_index_per_px;
- // intensity = intensity_per_dB * (m_av_mag[index] - MIN_DB);
intensity = intensity_per_dB * (g_avmag[index] - MIN_DB);
-// intensity = intensity_per_dB * (((MainFrame *)GetParent())->m_rxPa->m_av_mag[index] - MIN_DB);
-// intensity = intensity_per_dB * (((MainFrame *)GetParent())->m_av_mag[index] - MIN_DB);
- if(intensity > 255)
- {
- intensity = 255;
- }
if(intensity > 255)
{
intensity = 255;
wxBoxSizer* upperSizer;
upperSizer = new wxBoxSizer(wxVERTICAL);
- m_auiNbookCtrl = new wxAuiNotebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxAUI_NB_BOTTOM|wxAUI_NB_DEFAULT_STYLE);
+ //m_auiNbookCtrl = new wxAuiNotebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxAUI_NB_BOTTOM|wxAUI_NB_DEFAULT_STYLE);
+ //long style = wxAUI_NB_TAB_SPLIT | wxAUI_NB_TAB_MOVE | wxAUI_NB_SCROLL_BUTTONS | wxAUI_NB_CLOSE_ON_ACTIVE_TAB | wxAUI_NB_MIDDLE_CLICK_CLOSE;
+ long nb_style = wxAUI_NB_BOTTOM | wxAUI_NB_TAB_SPLIT | wxAUI_NB_TAB_MOVE | wxAUI_NB_SCROLL_BUTTONS;
+ m_auiNbookCtrl = new wxAuiNotebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, nb_style);
m_auiNbookCtrl->SetFont(wxFont(6, 70, 90, 90, false, wxEmptyString));