modbus_tcp_configure.hpp
Go to the documentation of this file.
1 #ifndef IM_AM_MONITORING_QT_GUIS_MODBUS_TCP_CONFIGURE_HPP
2 #define IM_AM_MONITORING_QT_GUIS_MODBUS_TCP_CONFIGURE_HPP
3 
4 #ifndef Q_MOC_RUN
5 #include <industrial_modbus_tcp/ConfigureRequest.h>
7 #include <ros/ros.h>
8 #endif
9 
10 #include <QDialog>
11 #include <QDialogButtonBox>
12 #include <QMessageBox>
13 #include <QPushButton>
14 #include <QTabWidget>
15 #include <QVBoxLayout>
16 
17 namespace industrial_modbus_tcp
18 {
19 
20 class ModbusTCPConfigure : public QDialog
21 {
22  Q_OBJECT
23 
24 public:
25  ModbusTCPConfigure(const industrial_modbus_tcp::ConfigureRequest &req);
26  virtual ~ModbusTCPConfigure();
27 
28  void getConfigureRequest(industrial_modbus_tcp::ConfigureRequest &req);
29 
30 Q_SIGNALS:
31  void displayMessageBox(const QString,
32  const QString,
33  const QString,
34  const QMessageBox::Icon);
35 
36 private Q_SLOTS:
37  void checkHandlers();
38  void updateTabsNames();
39  void addHandler();
40  void removeHandler();
41  void addHandler(const industrial_modbus_tcp::ModbusHandler h);
42  void removeLastHandler();
43  void displayMessageBoxHandler(const QString title,
44  const QString text,
45  const QString info = "",
46  const QMessageBox::Icon icon = QMessageBox::Icon::Information);
47 private:
48  QVBoxLayout *layout_;
49  QTabWidget *tabs_;
50  QPushButton *remove_handler_;
51 };
52 
53 }
54 
55 #endif
void getConfigureRequest(industrial_modbus_tcp::ConfigureRequest &req)
ModbusTCPConfigure(const industrial_modbus_tcp::ConfigureRequest &req)
void displayMessageBox(const QString, const QString, const QString, const QMessageBox::Icon)
void displayMessageBoxHandler(const QString title, const QString text, const QString info="", const QMessageBox::Icon icon=QMessageBox::Icon::Information)


industrial_modbus_tcp
Author(s): Victor Lamoine - Institut Maupertuis
autogenerated on Mon Feb 28 2022 22:33:12