69 lines
2.7 KiB
C++
69 lines
2.7 KiB
C++
/***************************************************************************
|
|
* Copyright (c) 2025 Stefan Tröger <stefantroeger@gmx.net> *
|
|
* *
|
|
* This file is part of the FreeCAD CAx development system. *
|
|
* *
|
|
* This library is free software; you can redistribute it and/or *
|
|
* modify it under the terms of the GNU Library General Public *
|
|
* License as published by the Free Software Foundation; either *
|
|
* version 2 of the License, or (at your option) any later version. *
|
|
* *
|
|
* This library is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU Library General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU Library General Public *
|
|
* License along with this library; see the file COPYING.LIB. If not, *
|
|
* write to the Free Software Foundation, Inc., 59 Temple Place, *
|
|
* Suite 330, Boston, MA 02111-1307, USA *
|
|
* *
|
|
***************************************************************************/
|
|
|
|
#ifndef GUI_TASKVIEW_TaskPostExtraction_H
|
|
#define GUI_TASKVIEW_TaskPostExtraction_H
|
|
|
|
#include <Gui/DocumentObserver.h>
|
|
#include <Gui/TaskView/TaskDialog.h>
|
|
#include <Gui/TaskView/TaskView.h>
|
|
#include <Gui/ViewProviderDocumentObject.h>
|
|
|
|
#include <QAbstractTableModel>
|
|
|
|
#include "TaskPostBoxes.h"
|
|
|
|
#include <vtkSmartPointer.h>
|
|
#include <vtkTableAlgorithm.h>
|
|
|
|
class Ui_TaskPostExtraction;
|
|
|
|
|
|
namespace FemGui
|
|
{
|
|
|
|
// ***************************************************************************
|
|
// box to handle data extractions: It is implemented in python, the c++
|
|
// code is used to access it and manage it for the c++ task panels
|
|
class TaskPostExtraction: public TaskPostWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TaskPostExtraction(ViewProviderFemPostObject* view, QWidget* parent = nullptr);
|
|
~TaskPostExtraction();
|
|
|
|
protected:
|
|
bool isGuiTaskOnly() override;
|
|
void apply() override;
|
|
void onPostDataChanged(Fem::FemPostObject* obj) override;
|
|
bool initiallyCollapsed() override;
|
|
|
|
private:
|
|
Py::Object m_panel;
|
|
};
|
|
|
|
|
|
} // namespace FemGui
|
|
|
|
#endif // GUI_TASKVIEW_TaskPostExtraction_H
|