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

221 lines
6.6 KiB
C

/**********************************************************************
* @file MainWindow.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-04
*********************************************************************/
#ifndef _POST3DMAINWINDOW_H_
#define _POST3DMAINWINDOW_H_
#include <QMainWindow>
#include "GUIFrameAPI.h"
#include "FITK_Kernel/FITKCore/FITKAbstractGUIObject.h"
namespace Ui {
class MainWindow;
}
namespace Comp {
class FITKTabWidget;
}
namespace GUI
{
class MainTreeWidget;
class ToolBarAnimation;
class ToolBarColorMapper;
class ToolBarFilter;
class ToolBarEvent;
class RenderWidget;
class ActionEventHandler;
class InformationWidget;
class PropertyWidget;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-04
*/
class GUIFRAMEAPI MainWindow : public QMainWindow, public Core::FITKAbstractGUIObject
{
Q_OBJECT;
public:
MainWindow(QWidget* parent = nullptr);
~MainWindow();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-04
*/
void init();
/**
* @brief
* @param[i] actionName
* @param[i] iconPath
* @param[i] actionTitle
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-04
*/
QAction* createAction(QString actionName, QString iconPath = "", QString actionTitle = "");
/**
* @brief action
* @param[i] actionName
* @return QAction *
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-04
*/
QAction* findAction(QString actionName);
/**
* @brief
* @return RenderWidget*
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-06
*/
RenderWidget* getRenderWidget();
/**
* @brief
* @return MainTreeWidget*
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-07
*/
MainTreeWidget* getTreeWidget();
/**
* @brief
* @return PropertyWidget*
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-13
*/
PropertyWidget* getPropertyWidget();
/**
* @brief
* @return ToolBarColorMapper*
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-10
*/
ToolBarColorMapper* getToolBarColorMapper();
/**
* @brief
* @return ToolBarAnimation*
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-10
*/
ToolBarAnimation* getToolBarAnimation();
/**
* @brief
* @return ToolBarFilter*
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-13
*/
ToolBarFilter* getToolFilter();
/**
* @brief
* @return ToolBarEvent *
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-14
*/
ToolBarEvent* getToolEvent();
/**
* @brief
* @return InformationWidget*
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-13
*/
InformationWidget* getInfoWidget();
/**
* @brief
* @return Comp::FITKTabWidget*
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-16
*/
Comp::FITKTabWidget* getEventWidget();
signals:
;
void sigMainWindowClose();
protected:
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-04
*/
void closeEvent(QCloseEvent* event) override;
private:
void initCentralWidget();
/**
* @brief action
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-04
*/
void initAction();
private:
/**
* @brief ui
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-04
*/
Ui::MainWindow* _ui = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-04
*/
MainTreeWidget* _treeWidget = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-06
*/
RenderWidget* _renderWidget = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-13
*/
InformationWidget* _infoWidget = nullptr;
/**
* @brief action
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-04
*/
ActionEventHandler* _actionHandler{};
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-13
*/
ToolBarColorMapper* _colorMapToolBar = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-13
*/
ToolBarAnimation* _animationToolBar = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-13
*/
ToolBarFilter* _filterBar = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-14
*/
ToolBarEvent* _filterEvent = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-13
*/
PropertyWidget* _propertyWidget = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-16
*/
Comp::FITKTabWidget* _eventWidget = nullptr;
};
}
#endif