You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.1 KiB

7 years ago
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
7 years ago
​
​
​
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __DEVICE_CHOOSER_WIDGET_HEADER__
  2. #define __DEVICE_CHOOSER_WIDGET_HEADER__
  3. #include "../guiClass.h"
  4. #include "../dialogs/addDeviceDialog.h"
  5. #include "../../components/object/objectSensorsEnumirator.h"
  6. //https://www.ebay.com/itm/Sex-Masturbation-Dildo-Wireless-Remote-Control-Wearable-Vibrator-Toys/273174500513
  7. //https://www.ebay.com/itm/Wireless-Remote-Control-Vibrating-Panty-Vibrator-Sex-toys-for-Women-Couples/282801162690
  8. //https://www.ebay.com/itm/Wireless-Waterproof-Vibrating-Egg-Vibrator-Massager-Adult-Sexy-Love-Toy/283019440838
  9. //https://www.ebay.com/itm/Wireless-Control-Remote-Butterfly-Invisible-Female-Wearable-Super-Vibrator-Panty/153104234168
  10. //https://www.ebay.com/itm/USB-Rechargeable-Bluetooth-Wireless-App-Remote-Control-Soft-Silicone-Vibrator/372083151605
  11. //
  12. class LrfSensorWidget;
  13. class RangeMapWidget;
  14. class RadarMapWidget;
  15. #ifdef QT_CREATOR_PROJECT
  16. class MainWindow;
  17. #else
  18. class mainWinow;
  19. #endif
  20. class DeviceChooser: public QWidget {
  21. private:
  22. objectSensorsEnumirator *m_pEnumirator;
  23. /* GUI */
  24. QWidget *m_pParentWidget;
  25. QHBoxLayout *m_pHorizontalLayout;
  26. guiAddDeviceDialog *m_pAddDeviceDialog;
  27. QPushButton *m_pButtonCmdAdd;
  28. QSpacerItem *m_pSideSpacer;
  29. objectLGS *m_pSelectedDevice;
  30. bool m_bIsSelectionLocked;
  31. std::vector<LrfSensorWidget *> m_vWidgets;
  32. public:
  33. explicit DeviceChooser( QWidget *parent=NULL );
  34. ~DeviceChooser();
  35. RangeMapWidget *getRangeMap( void );
  36. RadarMapWidget *getRadarMap( void );
  37. GLRadar *getGlRadar( void );
  38. public slots:
  39. void createNew(SENSOR_INFO *SI);
  40. bool unselectAllDevices( void );
  41. void selectForMainPreview( void *P );
  42. void setSelectedDevice( objectLGS *Device );
  43. void setSelectedDevice( int id );
  44. void showAddSourceDialog();
  45. void showEditSourceDialog(int index);
  46. void lockSelectedDevice(void){ m_bIsSelectionLocked = true; };
  47. void unlockSelectedDevice(void){ m_bIsSelectionLocked = false; };
  48. };
  49. #endif