File size: 2,720 Bytes
985c397
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# ***************************************************************************
# *   Copyright (c) 2025 Stefan Tröger <stefantroeger@gmx.net>              *
# *                                                                         *
# *   This file is part of the FreeCAD CAx development system.              *
# *                                                                         *
# *   This program is free software; you can redistribute it and/or modify  *
# *   it under the terms of the GNU Lesser General Public License (LGPL)    *
# *   as published by the Free Software Foundation; either version 2 of     *
# *   the License, or (at your option) any later version.                   *
# *   for detail see the LICENCE text file.                                 *
# *                                                                         *
# *   This program 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 program; if not, write to the Free Software   *
# *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
# *   USA                                                                   *
# *                                                                         *
# ***************************************************************************

__title__ = "FreeCAD FEM post extractor object task panel"
__author__ = "Stefan Tröger"
__url__ = "https://www.freecad.org"

## @package task_post_extractor
#  \ingroup FEM
#  \brief universal task dialog for extractor objects.

from PySide import QtCore, QtGui

from . import base_fempostpanel


class _ExtractorTaskPanel(base_fempostpanel._BasePostTaskPanel):
    """
    The TaskPanel for editing properties extractor objects. The actual UI is
    provided by the viewproviders. This allows using a universal task panel
    """

    def __init__(self, obj):
        super().__init__(obj)

        # form is used to display individual task panels
        app = obj.ViewObject.Proxy.get_app_edit_widget(self)
        app.setWindowTitle("Data Extraction")
        app.setWindowIcon(obj.ViewObject.Icon)
        view = obj.ViewObject.Proxy.get_view_edit_widget(self)
        view.setWindowTitle("Visualization Settings")
        view.setWindowIcon(obj.ViewObject.Icon)

        self.form = [app, view]