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.
|
|
|
|
#include "OperModelTreeMouseEvent.h"
|
|
|
|
|
|
|
|
|
|
#include "GUIFrame/MainWindow.h"
|
|
|
|
|
#include "GUIFrame/MainTreeWidget.h"
|
|
|
|
|
#include "GUIWidget/TreeWidget.h"
|
|
|
|
|
#include "OperatorsInterface/GraphEventOperator.h"
|
|
|
|
|
|
|
|
|
|
#include "FITK_Kernel/FITKAppFramework/FITKAppFramework.h"
|
|
|
|
|
#include "FITK_Kernel/FITKAppFramework/FITKGlobalData.h"
|
|
|
|
|
#include "FITK_Kernel/FITKCore/FITKOperatorRepo.h"
|
|
|
|
|
#include "FITK_Kernel/FITKCore/FITKActionOperator.h"
|
|
|
|
|
|
|
|
|
|
#include <QMenu>
|
|
|
|
|
#include <QStandardItemModel>
|
|
|
|
|
#include <QTreeView>
|
|
|
|
|
#include <QTreeWidgetItem>
|
|
|
|
|
|
|
|
|
|
namespace GUIOper
|
|
|
|
|
{
|
|
|
|
|
// OperModelTreeMouseEvent类构造函数
|
|
|
|
|
OperModelTreeMouseEvent::OperModelTreeMouseEvent(/* args */)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// OperModelTreeMouseEvent类析构函数
|
|
|
|
|
OperModelTreeMouseEvent::~OperModelTreeMouseEvent()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 更新所有模型案例树方法
|
|
|
|
|
void OperModelTreeMouseEvent::updateTree()
|
|
|
|
|
{
|
|
|
|
|
GUI::MainWindow* mainWindow = dynamic_cast<GUI::MainWindow*>(FITKAPP->getGlobalData()->getMainWindow());
|
|
|
|
|
GUI::TreeWidget* treeWidget = mainWindow->getTreeWidget()->getTreeWidget();
|
|
|
|
|
if (treeWidget) {
|
|
|
|
|
treeWidget->updateTree();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|