11 #ifndef FORCE_IP_DIALOG_H 12 #define FORCE_IP_DIALOG_H 27 wxWindow *parent, wxWindowID
id,
28 const wxPoint &pos = wxDefaultPosition,
29 long style = wxDEFAULT_DIALOG_STYLE,
30 const wxString &name = wxDialogNameStr);
36 std::array<wxTextCtrl *, 4> &ip,
int id);
37 static std::uint32_t
parseIp(
const std::array<wxTextCtrl *, 4> &ip);
40 const std::string &v);
51 std::array<wxTextCtrl *, 4>
ip_;
60 #endif // FORCE_IP_DIALOG_H void onIpChanged(wxCommandEvent &event)
std::array< wxTextCtrl *, 4 > ip_
Dialog for sending FORCEIP_CMD to camera.
std::array< wxTextCtrl *, 4 > gateway_
std::map< const wxTextCtrl *, bool > changed_by_user_
virtual ~ForceIpDialog()=default
void onClearButton(wxCommandEvent &event)
Base class for dialogs for sending commands to a camera.
std::array< wxTextCtrl *, 4 > subnet_
static std::uint32_t parseIp(const std::array< wxTextCtrl *, 4 > &ip)
void onForceIpButton(wxCommandEvent &event)
void onHelpButton(wxCommandEvent &event)
void addIpToBoxSizer(wxBoxSizer *sizer, std::array< wxTextCtrl *, 4 > &ip, int id)
void changeTextCtrlIfNotChangedByUser(wxTextCtrl *ctrl, const std::string &v)