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.

88 lines
2.5 KiB

6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __QT5_MAIN_WINDOW_HEADER__
  2. #define __QT5_MAIN_WINDOW_HEADER__
  3. #ifndef __linux__
  4. #include <WinSock2.h>
  5. #endif
  6. #include "../../components/base/basicSettingsProvider.h"
  7. #include "../../gui/guiClass.h"
  8. #include "../../data/cortex/layers/layersFactory.h"
  9. #include "../../data/media/video/videoAVLIBSource.h"
  10. #include "../../gui/controls/MediaDestWidget.h"
  11. #include "../../gui/controls/CortexLayerWidget.h"
  12. class mainWinow : public QMainWindow{
  13. //Q_OBJECT
  14. private:
  15. config_setting_t * m_pSettings;
  16. QWidget * m_pMainWidget;
  17. bool m_bChangesAreSaved;
  18. cortexLayersFactory * m_pFactory;
  19. basicCortex * m_pCortex;
  20. QTableWidget * m_pLayerTable;
  21. QTabWidget * m_pTabWidget;
  22. QWidget * m_pTabProcessingUnits;
  23. QWidget * m_pTabNetworkStageVisual;
  24. QWidget * m_pTabLayerVisual;
  25. QWidget * m_pTabCategories;
  26. QWidget * m_pTabLearning;
  27. QWidget * m_pTabInput;
  28. QWidget * m_pTabOutput;
  29. videoAVLIBSource * m_pAVLIBSource;
  30. MediaDestWidget * m_pInputStream;
  31. MediaDestWidget * m_pOutputStream;
  32. CortexLayerWidget * m_pLayerPreview;
  33. void * m_pInputImage;
  34. private slots:
  35. void newNetwork();
  36. void open();
  37. void save();
  38. void saveAs();
  39. void exitApp();
  40. void selectLayerRow( int, int );
  41. public:
  42. QAction * actionNew_Network;
  43. QAction * actionOpen;
  44. QAction * actionSave;
  45. QAction * actionSave_As;
  46. QAction * actionExit;
  47. QAction * tbActionInsert;
  48. QAction * tbActionAdd;
  49. QAction * tbActionEdit;
  50. QAction * tbActionDelete;
  51. QAction * tbActionLoadWeights;
  52. QMenu * menuFile;
  53. QToolBar * toolBar;
  54. // Method to fetch singleton instance.
  55. static mainWinow * getInstance();
  56. // Destructor
  57. virtual ~mainWinow();
  58. protected:
  59. mainWinow();
  60. void changeEvent(QEvent *event);
  61. void contextMenuEvent(QContextMenuEvent* event) override;
  62. private:
  63. // private static member referencing the single instance of the object
  64. // TODO: Replace basicLogCollection with the type of object you want to
  65. // return the single instance of
  66. static mainWinow* _instance;
  67. // Copy constructor
  68. // Declared but not defined to prevent auto-generated
  69. // copy constructor. Refer to "Effective C++" by Meyers
  70. mainWinow(const mainWinow& src);
  71. // Assignment operator
  72. // Declared but not defined to prevent auto-generated
  73. // assignment operator. Refer to "Effective C++" by Meyers
  74. mainWinow& operator=(const mainWinow& src);
  75. public slots:
  76. // void callbackSettings(void);
  77. // void callbackClear(void);
  78. };
  79. #endif