discover_window.h
Go to the documentation of this file.
1 /*
2  * Roboception GmbH
3  * Munich, Germany
4  * www.roboception.com
5  *
6  * Copyright (c) 2024 Roboception GmbH
7  * All rights reserved
8  *
9  * Author: Heiko Hirschmueller
10  */
11 
12 #ifndef DISCOVER_WINDOW_H
13 #define DISCOVER_WINDOW_H
14 
15 #include "menu_bar.h"
16 #include "device_list.h"
17 #include "button.h"
18 #include "input_filter.h"
19 #include "logo.h"
20 
21 #include <FL/Fl.H>
22 #include <FL/Fl_Double_Window.H>
23 #include <FL/Fl_Check_Button.H>
24 #include <FL/Fl_Menu_Button.H>
25 
26 #include <vector>
27 #include <string>
28 #include <memory>
29 #include <atomic>
30 #include <thread>
31 
32 class DiscoverWindow : public Fl_Double_Window
33 {
34  public:
35 
36  DiscoverWindow(int ww, int hh, int _only_rc, const std::string &_filter);
38 
39  void getSorting(int &sort_col, bool &sort_down) { list->getSorting(sort_col, sort_down); }
40  void setSorting(int sort_col, bool sort_down) { list->setSorting(sort_col, sort_down); }
41 
42  int getOnlyRCValue() { return only_rc->value(); }
43  const char *getFilterValue() { return filter->value(); }
44 
45  void doDiscover();
46  void doOnlyRC();
47  void doFilter();
48  void doOpenContextMenu();
49  void doCopyToClipboard(int i);
50  void doOpenWebGUI();
51  void doReset();
52  void doSetTmpIP();
53  void doReconnect();
54  void doClose();
55 
56  void update();
57 
58  private:
59 
60  void discoverThread();
61 
62  std::atomic_bool running;
63  std::thread *discover_thread;
64 
66 
68  Fl_Check_Button *only_rc;
72  Fl_Menu_Button *context_menu;
79 };
80 
81 #endif
DiscoverWindow::only_rc
Fl_Check_Button * only_rc
Definition: discover_window.h:68
MenuBar
Definition: menu_bar.h:18
DeviceList::getSorting
void getSorting(int &sort_col, bool &sort_down)
Definition: device_list.cc:269
DiscoverWindow::doCopyToClipboard
void doCopyToClipboard(int i)
Definition: discover_window.cc:326
Logo
Definition: logo.h:19
DeviceList::setSorting
void setSorting(int sort_col, bool sort_down)
Definition: device_list.cc:278
DiscoverWindow::doReset
void doReset()
Definition: discover_window.cc:343
DiscoverWindow::DiscoverWindow
DiscoverWindow(int ww, int hh, int _only_rc, const std::string &_filter)
Definition: discover_window.cc:129
DiscoverWindow::set_tmp_ip
Button * set_tmp_ip
Definition: discover_window.h:76
Button
Definition: button.h:18
button.h
input_filter.h
device_list.h
DiscoverWindow::update
void update()
Definition: discover_window.cc:379
DiscoverWindow::discover
Button * discover
Definition: discover_window.h:67
DiscoverWindow::setSorting
void setSorting(int sort_col, bool sort_down)
Definition: discover_window.h:40
menu_bar.h
DiscoverWindow::filter
InputFilter * filter
Definition: discover_window.h:69
DiscoverWindow::context_menu
Fl_Menu_Button * context_menu
Definition: discover_window.h:72
DiscoverWindow::doSetTmpIP
void doSetTmpIP()
Definition: discover_window.cc:354
DiscoverWindow::help
Button * help
Definition: discover_window.h:78
DiscoverWindow::doOpenWebGUI
void doOpenWebGUI()
Definition: discover_window.cc:337
DiscoverWindow::doClose
void doClose()
Definition: discover_window.cc:366
DiscoverWindow::doOnlyRC
void doOnlyRC()
Definition: discover_window.cc:271
DiscoverWindow::getSorting
void getSorting(int &sort_col, bool &sort_down)
Definition: discover_window.h:39
DeviceList
Definition: device_list.h:22
DiscoverWindow::doReconnect
void doReconnect()
Definition: discover_window.cc:360
DiscoverWindow::menu_bar
MenuBar * menu_bar
Definition: discover_window.h:65
DiscoverWindow::~DiscoverWindow
~DiscoverWindow()
Definition: discover_window.cc:243
DiscoverWindow::reset_index
int reset_index
Definition: discover_window.h:74
DiscoverWindow::running
std::atomic_bool running
Definition: discover_window.h:62
DiscoverWindow::doFilter
void doFilter()
Definition: discover_window.cc:277
DiscoverWindow::discover_thread
std::thread * discover_thread
Definition: discover_window.h:63
DiscoverWindow::getFilterValue
const char * getFilterValue()
Definition: discover_window.h:43
DiscoverWindow::list
DeviceList * list
Definition: discover_window.h:71
DiscoverWindow::reconnect
Button * reconnect
Definition: discover_window.h:77
DiscoverWindow::openwebgui_index
int openwebgui_index
Definition: discover_window.h:73
DiscoverWindow::doDiscover
void doDiscover()
Definition: discover_window.cc:254
DiscoverWindow::doOpenContextMenu
void doOpenContextMenu()
Definition: discover_window.cc:283
DiscoverWindow::logo
Logo * logo
Definition: discover_window.h:70
logo.h
DiscoverWindow::getOnlyRCValue
int getOnlyRCValue()
Definition: discover_window.h:42
DiscoverWindow
Definition: discover_window.h:32
InputFilter
Definition: input_filter.h:20
DiscoverWindow::discoverThread
void discoverThread()
Definition: discover_window.cc:404
DiscoverWindow::reset
Button * reset
Definition: discover_window.h:75


rcdiscover
Author(s): Heiko Hirschmueller , Raphael Schaller
autogenerated on Thu Aug 1 2024 02:55:56