CubicSDR/src/AppFrame.h

43 lines
973 B
C
Raw Normal View History

#pragma once
#include "wx/frame.h"
#include "PrimaryGLContext.h"
#include "ScopeCanvas.h"
#include "SpectrumCanvas.h"
#include "WaterfallCanvas.h"
2014-12-31 19:45:01 -05:00
#include "MeterCanvas.h"
#include <map>
#define wxID_RT_AUDIO_DEVICE 10000
2014-11-19 17:41:49 -05:00
// Define a new frame type
class AppFrame: public wxFrame {
public:
AppFrame();
~AppFrame();
2014-11-22 22:33:32 -05:00
void OnThread(wxCommandEvent& event);
void OnEventInput(wxThreadEvent& event);
2014-11-16 16:51:45 -05:00
private:
void OnClose(wxCommandEvent& event);
void OnNewWindow(wxCommandEvent& event);
void OnIdle(wxIdleEvent& event);
ScopeCanvas *scopeCanvas;
SpectrumCanvas *spectrumCanvas;
WaterfallCanvas *waterfallCanvas;
SpectrumCanvas *demodSpectrumCanvas;
WaterfallCanvas *demodWaterfallCanvas;
2014-12-31 19:45:01 -05:00
MeterCanvas *demodSignalMeter;
// event table
2014-12-31 19:45:01 -05:00
DemodulatorInstance *activeDemodulator;
std::map<int,RtAudio::DeviceInfo> input_devices;
std::map<int,RtAudio::DeviceInfo> output_devices;
wxDECLARE_EVENT_TABLE();
};