Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ForceIpDialog Class Reference

Dialog for sending FORCEIP_CMD to camera. More...

#include <force-ip-dialog.h>

Inheritance diagram for ForceIpDialog:
Inheritance graph
[legend]

Public Member Functions

 ForceIpDialog ()=default
 
 ForceIpDialog (wxHtmlHelpController *help_ctrl, wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, long style=wxDEFAULT_DIALOG_STYLE, const wxString &name=wxDialogNameStr)
 
virtual ~ForceIpDialog ()=default
 
- Public Member Functions inherited from SensorCommandDialog
 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
 

Private Member Functions

void addIpToBoxSizer (wxBoxSizer *sizer, std::array< wxTextCtrl *, 4 > &ip, int id)
 
void changeTextCtrlIfNotChangedByUser (wxTextCtrl *ctrl, const std::string &v)
 
void onClearButton (wxCommandEvent &event)
 
void onForceIpButton (wxCommandEvent &event)
 
void onHelpButton (wxCommandEvent &event)
 
void onIpChanged (wxCommandEvent &event)
 
 wxDECLARE_EVENT_TABLE ()
 

Static Private Member Functions

static std::uint32_t parseIp (const std::array< wxTextCtrl *, 4 > &ip)
 

Private Attributes

std::map< const wxTextCtrl *, bool > changed_by_user_
 
std::array< wxTextCtrl *, 4 > gateway_
 
std::array< wxTextCtrl *, 4 > ip_
 
std::array< wxTextCtrl *, 4 > subnet_
 

Additional Inherited Members

- Protected Member Functions inherited from SensorCommandDialog
virtual void clear ()
 Reset and clear all fields. More...
 
void displayHelp (const std::string &section)
 
wxFlexGridSizer * getGrid ()
 
std::array< uint8_t, 6 > getMac () const
 
std::string getMacString () const
 
wxPanel * getPanel ()
 
wxBoxSizer * getVerticalBox ()
 

Detailed Description

Dialog for sending FORCEIP_CMD to camera.

Definition at line 21 of file force-ip-dialog.h.

Constructor & Destructor Documentation

ForceIpDialog::ForceIpDialog ( )
default
ForceIpDialog::ForceIpDialog ( wxHtmlHelpController *  help_ctrl,
wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
long  style = wxDEFAULT_DIALOG_STYLE,
const wxString &  name = wxDialogNameStr 
)

Definition at line 27 of file force-ip-dialog.cc.

virtual ForceIpDialog::~ForceIpDialog ( )
virtualdefault

Member Function Documentation

void ForceIpDialog::addIpToBoxSizer ( wxBoxSizer *  sizer,
std::array< wxTextCtrl *, 4 > &  ip,
int  id 
)
private

Definition at line 110 of file force-ip-dialog.cc.

void ForceIpDialog::changeTextCtrlIfNotChangedByUser ( wxTextCtrl *  ctrl,
const std::string &  v 
)
private

Definition at line 158 of file force-ip-dialog.cc.

void ForceIpDialog::onClearButton ( wxCommandEvent &  event)
private

Definition at line 89 of file force-ip-dialog.cc.

void ForceIpDialog::onForceIpButton ( wxCommandEvent &  event)
private

Definition at line 255 of file force-ip-dialog.cc.

void ForceIpDialog::onHelpButton ( wxCommandEvent &  event)
private

Definition at line 305 of file force-ip-dialog.cc.

void ForceIpDialog::onIpChanged ( wxCommandEvent &  event)
private

Definition at line 178 of file force-ip-dialog.cc.

uint32_t ForceIpDialog::parseIp ( const std::array< wxTextCtrl *, 4 > &  ip)
staticprivate

Definition at line 130 of file force-ip-dialog.cc.

ForceIpDialog::wxDECLARE_EVENT_TABLE ( )
private

Member Data Documentation

std::map<const wxTextCtrl *, bool> ForceIpDialog::changed_by_user_
private

Definition at line 55 of file force-ip-dialog.h.

std::array<wxTextCtrl *, 4> ForceIpDialog::gateway_
private

Definition at line 53 of file force-ip-dialog.h.

std::array<wxTextCtrl *, 4> ForceIpDialog::ip_
private

Definition at line 51 of file force-ip-dialog.h.

std::array<wxTextCtrl *, 4> ForceIpDialog::subnet_
private

Definition at line 52 of file force-ip-dialog.h.


The documentation for this class was generated from the following files:


rcdiscover
Author(s): Heiko Hirschmueller , Raphael Schaller
autogenerated on Sun Apr 18 2021 02:16:32