-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFrequencyViewMain.h
56 lines (43 loc) · 1.5 KB
/
FrequencyViewMain.h
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
#ifndef FREQUENCYVIEWMAIN_H
#define FREQUENCYVIEWMAIN_H
#include <map>
#include <memory>
#include <string>
#include <vector>
#include <wx/frame.h>
#include <wx/timer.h>
#include <wx/aui/aui.h>
class wxTextCtrl;
class SessionEvent;
class wxConfigBase;
namespace sigrok{
class Context;
class Session;
class HardwareDevice;
};
class FrequencyViewFrame: public wxFrame
{
public:
FrequencyViewFrame(wxFrame *frame, const wxString& title);
~FrequencyViewFrame();
private:
wxAuiManager auiManager_;
wxAuiNotebook* auiNotebook_;
wxTextCtrl *logTxtCtrl_;
std::shared_ptr<sigrok::Context> context_;
wxConfigBase *config_;
std::map<int, std::string> inputFormatCmdId_;
void initLogicAnalyzer(std::shared_ptr<sigrok::Session> session, std::shared_ptr<sigrok::HardwareDevice> device);
void initSpectrumAnalyzer(std::shared_ptr<sigrok::Session> session, std::shared_ptr<sigrok::HardwareDevice> device);
void initNetworkAnalyzer(std::shared_ptr<sigrok::Session> session, std::shared_ptr<sigrok::HardwareDevice> device);
void onExit(wxCommandEvent &event);
void onAbout(wxCommandEvent &event);
void onConnect(wxCommandEvent &event);
void onImport(wxCommandEvent &event);
void onSessionEvent(SessionEvent&);
void populateFileLoaderMenu(wxMenu *load);
wxString generateWildcardString(const std::string &description, const std::vector<std::string> &exts);
wxString getImportfileFromUser(const wxString &wildcard);
DECLARE_EVENT_TABLE()
};
#endif