Base class for dialogs for sending commands to a camera.
More...
#include <sensor-command-dialog.h>
|
| SensorCommandDialog ()=default |
|
| SensorCommandDialog (wxHtmlHelpController *help_ctrl, wxWindow *parent, wxWindowID id, std::string title, int additional_grid_rows, const wxPoint &pos=wxDefaultPosition, long style=wxDEFAULT_DIALOG_STYLE, const wxString &name=wxDialogNameStr) |
|
void | setActiveSensor (const unsigned int row) |
| Select a specific device of the list set by setDiscoveredSensors. More...
|
|
void | setDiscoveredSensors (const wxDataViewListModel *sensor_list, const std::vector< bool > &show={}) |
| Set list of discovered devices to provide a drop down menu to the user. More...
|
|
virtual | ~SensorCommandDialog ()=default |
|
Base class for dialogs for sending commands to a camera.
It will add a drop down list containing the discovered cameras and text boxes for the MAC address.
Definition at line 34 of file sensor-command-dialog.h.
SensorCommandDialog::SensorCommandDialog |
( |
| ) |
|
|
default |
SensorCommandDialog::SensorCommandDialog |
( |
wxHtmlHelpController * |
help_ctrl, |
|
|
wxWindow * |
parent, |
|
|
wxWindowID |
id, |
|
|
std::string |
title, |
|
|
int |
additional_grid_rows, |
|
|
const wxPoint & |
pos = wxDefaultPosition , |
|
|
long |
style = wxDEFAULT_DIALOG_STYLE , |
|
|
const wxString & |
name = wxDialogNameStr |
|
) |
| |
virtual SensorCommandDialog::~SensorCommandDialog |
( |
| ) |
|
|
virtualdefault |
void SensorCommandDialog::clear |
( |
| ) |
|
|
protectedvirtual |
void SensorCommandDialog::clearMac |
( |
| ) |
|
|
private |
void SensorCommandDialog::displayHelp |
( |
const std::string & |
section | ) |
|
|
protected |
void SensorCommandDialog::fillMac |
( |
| ) |
|
|
private |
wxFlexGridSizer * SensorCommandDialog::getGrid |
( |
| ) |
|
|
protected |
std::array< uint8_t, 6 > SensorCommandDialog::getMac |
( |
| ) |
const |
|
protected |
std::string SensorCommandDialog::getMacString |
( |
| ) |
const |
|
protected |
wxPanel * SensorCommandDialog::getPanel |
( |
| ) |
|
|
protected |
wxBoxSizer * SensorCommandDialog::getVerticalBox |
( |
| ) |
|
|
protected |
void SensorCommandDialog::onSensorSelected |
( |
wxCommandEvent & |
event | ) |
|
|
private |
void SensorCommandDialog::setActiveSensor |
( |
const unsigned int |
row | ) |
|
void SensorCommandDialog::setDiscoveredSensors |
( |
const wxDataViewListModel * |
sensor_list, |
|
|
const std::vector< bool > & |
show = {} |
|
) |
| |
Set list of discovered devices to provide a drop down menu to the user.
- Parameters
-
sensor_list | list of devices |
Definition at line 83 of file sensor-command-dialog.cc.
SensorCommandDialog::wxDECLARE_EVENT_TABLE |
( |
| ) |
|
|
private |
wxFlexGridSizer* SensorCommandDialog::grid_ |
|
private |
wxHtmlHelpController* SensorCommandDialog::help_ctrl_ |
|
private |
std::array<wxTextCtrl *, 6> SensorCommandDialog::mac_ |
|
private |
wxPanel* SensorCommandDialog::panel_ |
|
private |
std::unordered_map<unsigned int, unsigned int> SensorCommandDialog::row_map_ |
|
private |
std::unordered_map<unsigned int, unsigned int> SensorCommandDialog::row_map_inv_ |
|
private |
const wxDataViewListModel* SensorCommandDialog::sensor_list_ |
|
private |
wxChoice* SensorCommandDialog::sensors_ |
|
private |
wxBoxSizer* SensorCommandDialog::vbox_ |
|
private |
The documentation for this class was generated from the following files: