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
88 lines
2.5 KiB
#ifndef __QT5_MAIN_WINDOW_HEADER__
|
|
#define __QT5_MAIN_WINDOW_HEADER__
|
|
|
|
#ifndef __linux__
|
|
#include <WinSock2.h>
|
|
#endif
|
|
|
|
#include "../../components/base/basicSettingsProvider.h"
|
|
#include "../../gui/guiClass.h"
|
|
#include "../../data/cortex/layers/layersFactory.h"
|
|
#include "../../data/media/video/videoAVLIBSource.h"
|
|
#include "../../gui/controls/MediaDestWidget.h"
|
|
#include "../../gui/controls/CortexLayerWidget.h"
|
|
|
|
class mainWinow : public QMainWindow{
|
|
//Q_OBJECT
|
|
private:
|
|
config_setting_t * m_pSettings;
|
|
QWidget * m_pMainWidget;
|
|
bool m_bChangesAreSaved;
|
|
cortexLayersFactory * m_pFactory;
|
|
basicCortex * m_pCortex;
|
|
QTableWidget * m_pLayerTable;
|
|
QTabWidget * m_pTabWidget;
|
|
QWidget * m_pTabProcessingUnits;
|
|
QWidget * m_pTabNetworkStageVisual;
|
|
QWidget * m_pTabLayerVisual;
|
|
QWidget * m_pTabCategories;
|
|
QWidget * m_pTabLearning;
|
|
QWidget * m_pTabInput;
|
|
QWidget * m_pTabOutput;
|
|
videoAVLIBSource * m_pAVLIBSource;
|
|
MediaDestWidget * m_pInputStream;
|
|
MediaDestWidget * m_pOutputStream;
|
|
CortexLayerWidget * m_pLayerPreview;
|
|
void * m_pInputImage;
|
|
|
|
private slots:
|
|
void newNetwork();
|
|
void open();
|
|
void save();
|
|
void saveAs();
|
|
void exitApp();
|
|
void selectLayerRow( int, int );
|
|
public:
|
|
QAction * actionNew_Network;
|
|
QAction * actionOpen;
|
|
QAction * actionSave;
|
|
QAction * actionSave_As;
|
|
QAction * actionExit;
|
|
|
|
QAction * tbActionInsert;
|
|
QAction * tbActionAdd;
|
|
QAction * tbActionEdit;
|
|
QAction * tbActionDelete;
|
|
QAction * tbActionLoadWeights;
|
|
|
|
QMenu * menuFile;
|
|
QToolBar * toolBar;
|
|
// Method to fetch singleton instance.
|
|
static mainWinow * getInstance();
|
|
// Destructor
|
|
virtual ~mainWinow();
|
|
protected:
|
|
mainWinow();
|
|
void changeEvent(QEvent *event);
|
|
void contextMenuEvent(QContextMenuEvent* event) override;
|
|
private:
|
|
// private static member referencing the single instance of the object
|
|
// TODO: Replace basicLogCollection with the type of object you want to
|
|
// return the single instance of
|
|
static mainWinow* _instance;
|
|
|
|
// Copy constructor
|
|
// Declared but not defined to prevent auto-generated
|
|
// copy constructor. Refer to "Effective C++" by Meyers
|
|
mainWinow(const mainWinow& src);
|
|
|
|
// Assignment operator
|
|
// Declared but not defined to prevent auto-generated
|
|
// assignment operator. Refer to "Effective C++" by Meyers
|
|
mainWinow& operator=(const mainWinow& src);
|
|
public slots:
|
|
// void callbackSettings(void);
|
|
// void callbackClear(void);
|
|
};
|
|
|
|
#endif
|