force-ip-dialog.h
Go to the documentation of this file.
1 /*
2 * Roboception GmbH
3 * Munich, Germany
4 * www.roboception.com
5 *
6 * Copyright (c) 2017 Roboception GmbH
7 * All rights reserved
8 *
9 * Author: Raphael Schaller
10 */
11 #ifndef FORCE_IP_DIALOG_H
12 #define FORCE_IP_DIALOG_H
13 
14 #include "sensor-command-dialog.h"
15 
16 #include <map>
17 
22 {
23  public:
24  ForceIpDialog() = default;
25 
26  ForceIpDialog(wxHtmlHelpController *help_ctrl,
27  wxWindow *parent, wxWindowID id,
28  const wxPoint &pos = wxDefaultPosition,
29  long style = wxDEFAULT_DIALOG_STYLE,
30  const wxString &name = wxDialogNameStr);
31 
32  virtual ~ForceIpDialog() = default;
33 
34  private:
35  void addIpToBoxSizer(wxBoxSizer *sizer,
36  std::array<wxTextCtrl *, 4> &ip, int id);
37  static std::uint32_t parseIp(const std::array<wxTextCtrl *, 4> &ip);
38 
39  void changeTextCtrlIfNotChangedByUser(wxTextCtrl *ctrl,
40  const std::string &v);
41 
42  private:
43  void onClearButton(wxCommandEvent &event);
44 
45  void onForceIpButton(wxCommandEvent &event);
46  void onHelpButton(wxCommandEvent &event);
47 
48  void onIpChanged(wxCommandEvent &event);
49 
50  private:
51  std::array<wxTextCtrl *, 4> ip_;
52  std::array<wxTextCtrl *, 4> subnet_;
53  std::array<wxTextCtrl *, 4> gateway_;
54 
55  std::map<const wxTextCtrl *, bool> changed_by_user_;
56 
58 };
59 
60 #endif // FORCE_IP_DIALOG_H
void onIpChanged(wxCommandEvent &event)
std::array< wxTextCtrl *, 4 > ip_
ForceIpDialog()=default
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)


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