Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
DiscoverFrame Class Reference

Main window in which the table of discovered devices is displayed. More...

#include <discover-frame.h>

Inheritance diagram for DiscoverFrame:
Inheritance graph
[legend]

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

AboutDialogabout_dialog_
 
wxDataViewListCtrl * device_list_
 
wxButton * discover_button_
 
wxTextCtrl * filter_input_
 
std::string filter_text_
 
wxButton * force_ip_button_
 
ForceIpDialogforce_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_
 
ReconnectDialogreconnect_dialog_
 
wxButton * reset_button_
 
ResetDialogreset_dialog_
 
wxAnimation spinner_
 
wxAnimationCtrl * spinner_ctrl_
 

Detailed Description

Main window in which the table of discovered devices is displayed.

Definition at line 59 of file discover-frame.h.

Member Enumeration Documentation

Enumerator
NAME 
MANUFACTURER 
MODEL 
SERIAL 
IP 
MAC 
IFACE 
REACHABLE 
NUM_COLUMNS 

Definition at line 72 of file discover-frame.h.

Constructor & Destructor Documentation

DiscoverFrame::DiscoverFrame ( const wxString &  title,
const wxPoint &  pos 
)

Constructor.

Parameters
titletitle of the window
posposition of the window

Definition at line 97 of file discover-frame.cc.

virtual DiscoverFrame::~DiscoverFrame ( )
virtualdefault

Member Function Documentation

void DiscoverFrame::clearBusy ( )
private

Stop spinner rotation.

Definition at line 356 of file discover-frame.cc.

void DiscoverFrame::onAbout ( wxCommandEvent &  )
private

Event handler for "about" item in window menu.

Definition at line 638 of file discover-frame.cc.

void DiscoverFrame::onCopy ( wxMenuEvent &  evt)
private

Event handler for "copy" context menu item.

Definition at line 521 of file discover-frame.cc.

void DiscoverFrame::onDataViewContextMenu ( wxDataViewEvent &  event)
private

Event handler for right mouse button click on device.

Parameters
eventevent

Definition at line 485 of file discover-frame.cc.

void DiscoverFrame::onDeviceDoubleClick ( wxDataViewEvent &  event)
private

Event handler for double click on a device.

Parameters
eventevent

Definition at line 459 of file discover-frame.cc.

void DiscoverFrame::onDeviceSelection ( wxDataViewEvent &  event)
private

Event handler for selection of a device.

Parameters
eventevent

Definition at line 472 of file discover-frame.cc.

void DiscoverFrame::onDiscoverButton ( wxCommandEvent &  )
private

Event handler for Discovery button click.

Definition at line 371 of file discover-frame.cc.

void DiscoverFrame::onDiscoveryCompleted ( wxThreadEvent &  event)
private

Event handler for completed device discovery.

Parameters
eventevent

Definition at line 386 of file discover-frame.cc.

void DiscoverFrame::onDiscoveryError ( wxThreadEvent &  event)
private

Event handler for erroneous device discovery.

Parameters
eventevent

Definition at line 430 of file discover-frame.cc.

void DiscoverFrame::onExit ( wxCommandEvent &  )
private

Event handler for exit command.

Definition at line 608 of file discover-frame.cc.

void DiscoverFrame::onFilterTextChange ( wxCommandEvent &  evt)
private

Event handler for change of the filter text box.

Parameters
evtevent

Definition at line 624 of file discover-frame.cc.

void DiscoverFrame::onForceIpButton ( wxCommandEvent &  )
private

Event handler for ForceIP button click.

Definition at line 444 of file discover-frame.cc.

void DiscoverFrame::onForceIpContextMenu ( wxMenuEvent &  )
private

Event handler for "force ip" context menu item.

Definition at line 586 of file discover-frame.cc.

void DiscoverFrame::onHelp ( wxCommandEvent &  )
private

Event handler for "help" item in window menu.

Definition at line 613 of file discover-frame.cc.

void DiscoverFrame::onHelpDiscovery ( wxCommandEvent &  )
private

Event handler for help button.

Definition at line 454 of file discover-frame.cc.

void DiscoverFrame::onOnlyRcCheckbox ( wxCommandEvent &  evt)
private

Event handler for change of the "only RC cameras" checkbox.

Parameters
evtevent

Definition at line 618 of file discover-frame.cc.

void DiscoverFrame::onOpenWebGUI ( wxMenuEvent &  )
private

Event handler for "open web gui" context menu item.

Definition at line 564 of file discover-frame.cc.

void DiscoverFrame::onReconnectButton ( wxCommandEvent &  )
private

Event handler for Reconnect button click.

Definition at line 449 of file discover-frame.cc.

void DiscoverFrame::onReconnectContextMenu ( wxMenuEvent &  )
private

Event handler for "reconnect" context menu item.

Definition at line 597 of file discover-frame.cc.

void DiscoverFrame::onResetButton ( wxCommandEvent &  )
private

Event handler for Reset button click.

Definition at line 439 of file discover-frame.cc.

void DiscoverFrame::onResetContextMenu ( wxMenuEvent &  )
private

Event handler for "reset" context menu item.

Definition at line 575 of file discover-frame.cc.

void DiscoverFrame::openForceIpDialog ( int  row)
private

Open Force IP dialog.

Parameters
rowrow of currently selected device in the table

Definition at line 653 of file discover-frame.cc.

void DiscoverFrame::openReconnectDialog ( int  row)
private

Open Reconnect dialog.

Parameters
rowrow of currently selected device in the table

Definition at line 663 of file discover-frame.cc.

void DiscoverFrame::openResetDialog ( int  row)
private

Open device reset dialog.

Parameters
rowrow of currently selected device in the table

Definition at line 643 of file discover-frame.cc.

void DiscoverFrame::openWebGUI ( int  row)
private

Open WebGUI for device in specific row.

Definition at line 673 of file discover-frame.cc.

void DiscoverFrame::setBusy ( )
private

Let spinner rotate.

Definition at line 347 of file discover-frame.cc.

void DiscoverFrame::updateDeviceList ( const std::vector< wxVector< wxVariant >> &  d)
private

Updates the device table.

Parameters
ddiscovered cameras

Definition at line 393 of file discover-frame.cc.

DiscoverFrame::wxDECLARE_EVENT_TABLE ( )
private

Member Data Documentation

AboutDialog* DiscoverFrame::about_dialog_
private

Definition at line 244 of file discover-frame.h.

wxDataViewListCtrl* DiscoverFrame::device_list_
private

Definition at line 235 of file discover-frame.h.

wxButton* DiscoverFrame::discover_button_
private

Definition at line 236 of file discover-frame.h.

wxTextCtrl* DiscoverFrame::filter_input_
private

Definition at line 237 of file discover-frame.h.

std::string DiscoverFrame::filter_text_
private

Definition at line 250 of file discover-frame.h.

wxButton* DiscoverFrame::force_ip_button_
private

Definition at line 239 of file discover-frame.h.

ForceIpDialog* DiscoverFrame::force_ip_dialog_
private

Definition at line 242 of file discover-frame.h.

wxHtmlHelpController* DiscoverFrame::help_ctrl_
private

Definition at line 247 of file discover-frame.h.

std::vector<wxVector<wxVariant> > DiscoverFrame::last_data_
private

Definition at line 251 of file discover-frame.h.

std::unique_ptr<std::pair<int, int> > DiscoverFrame::menu_event_item_
private

Definition at line 248 of file discover-frame.h.

bool DiscoverFrame::only_rc_sensors_
private

Definition at line 249 of file discover-frame.h.

wxButton* DiscoverFrame::reconnect_button_
private

Definition at line 240 of file discover-frame.h.

ReconnectDialog* DiscoverFrame::reconnect_dialog_
private

Definition at line 243 of file discover-frame.h.

wxButton* DiscoverFrame::reset_button_
private

Definition at line 238 of file discover-frame.h.

ResetDialog* DiscoverFrame::reset_dialog_
private

Definition at line 241 of file discover-frame.h.

wxAnimation DiscoverFrame::spinner_
private

Definition at line 245 of file discover-frame.h.

wxAnimationCtrl* DiscoverFrame::spinner_ctrl_
private

Definition at line 246 of file discover-frame.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