1
/***************************************************************************
2
* Copyright (c) 2009 J�rgen Riegel <juergen.riegel@web.de> *
4
* This file is part of the FreeCAD CAx development system. *
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. *
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. *
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 *
21
***************************************************************************/
24
#include "PreCompiled.h"
26
/// Here the FreeCAD includes sorted by Base,App,Gui......
28
#include "CombiView.h"
29
#include "BitmapFactory.h"
30
#include "iisTaskPanel/include/iisTaskPanel"
31
#include "PropertyView.h"
32
#include "Application.h"
34
#include "ViewProvider.h"
36
#include "TaskView/TaskView.h"
37
#include "propertyeditor/PropertyEditor.h"
40
using namespace Gui::DockWnd;
43
CombiView::CombiView(Gui::Document* pcDocument, QWidget *parent)
44
: DockWindow(pcDocument,parent)
46
setWindowTitle(tr("CombiView"));
48
QGridLayout* pLayout = new QGridLayout(this);
49
pLayout->setSpacing( 0 );
50
pLayout->setMargin ( 0 );
52
// tabs to switch between Tree/Properties and TaskPanel
53
tabs = new QTabWidget ();
54
tabs->setObjectName(QString::fromUtf8("combiTab"));
55
tabs->setTabPosition(QTabWidget::North);
56
//tabs->setTabShape(QTabWidget::Triangular);
57
pLayout->addWidget( tabs, 0, 0 );
59
// splitter between tree and property view
60
QSplitter *splitter = new QSplitter();
61
splitter->setOrientation(Qt::Vertical);
64
tree = new TreeWidget(this);
65
//tree->setRootIsDecorated(false);
66
splitter->addWidget(tree);
69
prop = new PropertyView(this);
70
splitter->addWidget(prop);
72
tabs->addTab(splitter,trUtf8("Project"));
75
taskPanel = new Gui::TaskView::TaskView(this);
76
tabs->addTab(taskPanel, trUtf8("Tasks"));
79
CombiView::~CombiView()
83
#include "moc_CombiView.cpp"