-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathImportOptionsDialog.h
More file actions
40 lines (32 loc) · 1 KB
/
ImportOptionsDialog.h
File metadata and controls
40 lines (32 loc) · 1 KB
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
#ifndef IMPORTOPTIONSDIALOG_H
#define IMPORTOPTIONSDIALOG_H
#include <map>
#include <memory>
#include <string>
#include <libsigrokcxx/libsigrokcxx.hpp>
#include <wx/choice.h>
#include <wx/dialog.h>
#include <wx/sizer.h>
#include <wx/spinctrl.h>
#include <wx/stattext.h>
namespace sigrok {
class Option;
}
class ImportOptionsDialog: public wxDialog
{
public:
ImportOptionsDialog(wxWindow* parent, wxString title, std::map<std::string, std::shared_ptr<sigrok::Option> > options);
virtual ~ImportOptionsDialog(){}
std::map<std::string, Glib::VariantBase> getOption();
private:
std::map<int, std::string> id_num_to_str_;
std::map<std::string, std::shared_ptr<sigrok::Option>> options_;
std::map<std::string, Glib::VariantBase> ret_opts_;
void onChoice(wxCommandEvent& event);
void onCheckbox(wxCommandEvent& event);
void onTextCtrl(wxCommandEvent& event);
void onSpinCtrl(wxCommandEvent& event);
void onSpinCtrlDbl(wxCommandEvent& event);
DECLARE_EVENT_TABLE()
};
#endif