Debian Codegraph @

src/Gui/ComboView.h

raw
1 /***************************************************************************
2 * Copyright (c) 2009 Jürgen Riegel <[email protected]> *
3 * *
4 * This file is part of the FreeCAD CAx development system. *
5 * *
6 * This library is free software; you can redistribute it and/or *
7 * modify it under the terms of the GNU Library General Public *
8 * License as published by the Free Software Foundation; either *
9 * version 2 of the License, or (at your option) any later version. *
10 * *
11 * This library is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU Library General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Library General Public *
17 * License along with this library; see the file COPYING.LIB. If not, *
18 * write to the Free Software Foundation, Inc., 59 Temple Place, *
19 * Suite 330, Boston, MA 02111-1307, USA *
20 * *
21 ***************************************************************************/
22
23 #ifndef GUI_DOCKWND_COMBOVIEW_H
24 #define GUI_DOCKWND_COMBOVIEW_H
25
26 #include "DockWindow.h"
27
28
29 class QTabWidget;
30 class QTreeView;
31
32 namespace App
33 {
34 class PropertyContainer;
35 }
36
37 namespace Gui
38 {
39 class TreeWidget;
40 class PropertyView;
41 class TreePanel;
42 namespace PropertyEditor
43 {
44 class EditableListView;
45 class EditableItem;
46 class PropertyEditor;
47 } // namespace PropertyEditor
48
49 namespace TaskView
50 {
51 class TaskView;
52 class TaskDialog;
53 } // namespace TaskView
54 } // namespace Gui
55
56
57 namespace Gui
58 {
59 class ControlSingleton;
60 namespace DockWnd
61 {
62
63 /** Combo View
64 * is a combination of a tree and property view for
65 * integrated user action.
66 */
67 class GuiExport ComboView: public Gui::DockWindow
68 {
69 Q_OBJECT
70
71 public:
72 /**
73 * A constructor.
74 * A more elaborate description of the constructor.
75 */
76 ComboView(Gui::Document* pcDocument, QWidget* parent = nullptr);
77
78 void setShowModel(bool);
79
80 /**
81 * A destructor.
82 * A more elaborate description of the destructor.
83 */
84 ~ComboView() override;
85
86 friend class Gui::ControlSingleton;
87
88 private:
89 Gui::PropertyView* prop;
90 Gui::TreePanel* tree;
91 };
92
93 } // namespace DockWnd
94 } // namespace Gui
95
96 #endif // GUI_DOCKWND_SELECTIONVIEW_H