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.

50 lines
1.4 KiB
C

/**********************************************************************
* @file ToolBarBase.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-10
*********************************************************************/
#ifndef _ToolBarBase_H
#define _ToolBarBase_H
#include "GUIWidgetAPI.h"
#include <QToolBar>
#include <QComboBox>
namespace Interface {
class FITKCFDPost3DManager;
class PostGraphObjectManager;
class FITKAbstractCFDPostData;
class PostGraphObjectBase;
}
namespace GUI
{
class GUIWidgetAPI ToolBarBase : public QToolBar
{
Q_OBJECT;
public:
ToolBarBase(QWidget* parent = nullptr);
~ToolBarBase();
virtual void updateCurrentGraphObj(int objID) = 0;
protected:
QAction* createAction(QString actionName, QString iconPath = "", QString actionTitle = "");
void reRender();
protected:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-06
*/
Interface::FITKCFDPost3DManager* _postDataManager = nullptr;
Interface::PostGraphObjectManager* _postGraphManager = nullptr;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-13
*/
int _currentDataID = -1;
};
}
#endif