Main window in which the table of discovered devices is displayed. More...
#include <discover-frame.h>
Public Types | |
enum | COLUMNS { NAME = 0, MANUFACTURER = 1, MODEL = 2, SERIAL = 3, IP = 4, MAC = 5, IFACE = 6, REACHABLE = 7, NUM_COLUMNS = 8 } |
Public Member Functions | |
DiscoverFrame (const wxString &title, const wxPoint &pos) | |
Constructor. More... | |
virtual | ~DiscoverFrame ()=default |
Private Member Functions | |
void | clearBusy () |
Stop spinner rotation. More... | |
void | onAbout (wxCommandEvent &) |
Event handler for "about" item in window menu. More... | |
void | onCopy (wxMenuEvent &) |
Event handler for "copy" context menu item. More... | |
void | onDataViewContextMenu (wxDataViewEvent &event) |
Event handler for right mouse button click on device. More... | |
void | onDeviceDoubleClick (wxDataViewEvent &event) |
Event handler for double click on a device. More... | |
void | onDeviceSelection (wxDataViewEvent &event) |
Event handler for selection of a device. More... | |
void | onDiscoverButton (wxCommandEvent &) |
Event handler for Discovery button click. More... | |
void | onDiscoveryCompleted (wxThreadEvent &event) |
Event handler for completed device discovery. More... | |
void | onDiscoveryError (wxThreadEvent &event) |
Event handler for erroneous device discovery. More... | |
void | onExit (wxCommandEvent &) |
Event handler for exit command. More... | |
void | onFilterTextChange (wxCommandEvent &evt) |
Event handler for change of the filter text box. More... | |
void | onForceIpButton (wxCommandEvent &) |
Event handler for ForceIP button click. More... | |
void | onForceIpContextMenu (wxMenuEvent &) |
Event handler for "force ip" context menu item. More... | |
void | onHelp (wxCommandEvent &) |
Event handler for "help" item in window menu. More... | |
void | onHelpDiscovery (wxCommandEvent &) |
Event handler for help button. More... | |
void | onOnlyRcCheckbox (wxCommandEvent &evt) |
Event handler for change of the "only RC cameras" checkbox. More... | |
void | onOpenWebGUI (wxMenuEvent &) |
Event handler for "open web gui" context menu item. More... | |
void | onReconnectButton (wxCommandEvent &) |
Event handler for Reconnect button click. More... | |
void | onReconnectContextMenu (wxMenuEvent &) |
Event handler for "reconnect" context menu item. More... | |
void | onResetButton (wxCommandEvent &) |
Event handler for Reset button click. More... | |
void | onResetContextMenu (wxMenuEvent &) |
Event handler for "reset" context menu item. More... | |
void | openForceIpDialog (int row) |
Open Force IP dialog. More... | |
void | openReconnectDialog (int row) |
Open Reconnect dialog. More... | |
void | openResetDialog (int row) |
Open device reset dialog. More... | |
void | openWebGUI (int row) |
Open WebGUI for device in specific row. More... | |
void | setBusy () |
Let spinner rotate. More... | |
void | updateDeviceList (const std::vector< wxVector< wxVariant >> &d) |
Updates the device table. More... | |
wxDECLARE_EVENT_TABLE () | |
Private Attributes | |
AboutDialog * | about_dialog_ |
wxDataViewListCtrl * | device_list_ |
wxButton * | discover_button_ |
wxTextCtrl * | filter_input_ |
std::string | filter_text_ |
wxButton * | force_ip_button_ |
ForceIpDialog * | force_ip_dialog_ |
wxHtmlHelpController * | help_ctrl_ |
std::vector< wxVector< wxVariant > > | last_data_ |
std::unique_ptr< std::pair< int, int > > | menu_event_item_ |
bool | only_rc_sensors_ |
wxButton * | reconnect_button_ |
ReconnectDialog * | reconnect_dialog_ |
wxButton * | reset_button_ |
ResetDialog * | reset_dialog_ |
wxAnimation | spinner_ |
wxAnimationCtrl * | spinner_ctrl_ |
Main window in which the table of discovered devices is displayed.
Definition at line 59 of file discover-frame.h.
Enumerator | |
---|---|
NAME | |
MANUFACTURER | |
MODEL | |
SERIAL | |
IP | |
MAC | |
IFACE | |
REACHABLE | |
NUM_COLUMNS |
Definition at line 72 of file discover-frame.h.
DiscoverFrame::DiscoverFrame | ( | const wxString & | title, |
const wxPoint & | pos | ||
) |
Constructor.
title | title of the window |
pos | position of the window |
Definition at line 97 of file discover-frame.cc.
|
virtualdefault |
|
private |
Stop spinner rotation.
Definition at line 356 of file discover-frame.cc.
|
private |
Event handler for "about" item in window menu.
Definition at line 638 of file discover-frame.cc.
|
private |
Event handler for "copy" context menu item.
Definition at line 521 of file discover-frame.cc.
|
private |
Event handler for right mouse button click on device.
event | event |
Definition at line 485 of file discover-frame.cc.
|
private |
Event handler for double click on a device.
event | event |
Definition at line 459 of file discover-frame.cc.
|
private |
Event handler for selection of a device.
event | event |
Definition at line 472 of file discover-frame.cc.
|
private |
Event handler for Discovery button click.
Definition at line 371 of file discover-frame.cc.
|
private |
Event handler for completed device discovery.
event | event |
Definition at line 386 of file discover-frame.cc.
|
private |
Event handler for erroneous device discovery.
event | event |
Definition at line 430 of file discover-frame.cc.
|
private |
Event handler for exit command.
Definition at line 608 of file discover-frame.cc.
|
private |
Event handler for change of the filter text box.
evt | event |
Definition at line 624 of file discover-frame.cc.
|
private |
Event handler for ForceIP button click.
Definition at line 444 of file discover-frame.cc.
|
private |
Event handler for "force ip" context menu item.
Definition at line 586 of file discover-frame.cc.
|
private |
Event handler for "help" item in window menu.
Definition at line 613 of file discover-frame.cc.
|
private |
Event handler for help button.
Definition at line 454 of file discover-frame.cc.
|
private |
Event handler for change of the "only RC cameras" checkbox.
evt | event |
Definition at line 618 of file discover-frame.cc.
|
private |
Event handler for "open web gui" context menu item.
Definition at line 564 of file discover-frame.cc.
|
private |
Event handler for Reconnect button click.
Definition at line 449 of file discover-frame.cc.
|
private |
Event handler for "reconnect" context menu item.
Definition at line 597 of file discover-frame.cc.
|
private |
Event handler for Reset button click.
Definition at line 439 of file discover-frame.cc.
|
private |
Event handler for "reset" context menu item.
Definition at line 575 of file discover-frame.cc.
|
private |
Open Force IP dialog.
row | row of currently selected device in the table |
Definition at line 653 of file discover-frame.cc.
|
private |
Open Reconnect dialog.
row | row of currently selected device in the table |
Definition at line 663 of file discover-frame.cc.
|
private |
Open device reset dialog.
row | row of currently selected device in the table |
Definition at line 643 of file discover-frame.cc.
|
private |
Open WebGUI for device in specific row.
Definition at line 673 of file discover-frame.cc.
|
private |
Let spinner rotate.
Definition at line 347 of file discover-frame.cc.
|
private |
Updates the device table.
d | discovered cameras |
Definition at line 393 of file discover-frame.cc.
|
private |
|
private |
Definition at line 244 of file discover-frame.h.
|
private |
Definition at line 235 of file discover-frame.h.
|
private |
Definition at line 236 of file discover-frame.h.
|
private |
Definition at line 237 of file discover-frame.h.
|
private |
Definition at line 250 of file discover-frame.h.
|
private |
Definition at line 239 of file discover-frame.h.
|
private |
Definition at line 242 of file discover-frame.h.
|
private |
Definition at line 247 of file discover-frame.h.
|
private |
Definition at line 251 of file discover-frame.h.
|
private |
Definition at line 248 of file discover-frame.h.
|
private |
Definition at line 249 of file discover-frame.h.
|
private |
Definition at line 240 of file discover-frame.h.
|
private |
Definition at line 243 of file discover-frame.h.
|
private |
Definition at line 238 of file discover-frame.h.
|
private |
Definition at line 241 of file discover-frame.h.
|
private |
Definition at line 245 of file discover-frame.h.
|
private |
Definition at line 246 of file discover-frame.h.