00001 /*************************************************************************** 00002 * Copyright (c) 2009 Jürgen Riegel <juergen.riegel@web.de> * 00003 * * 00004 * This file is part of the FreeCAD CAx development system. * 00005 * * 00006 * This library is free software; you can redistribute it and/or * 00007 * modify it under the terms of the GNU Library General Public * 00008 * License as published by the Free Software Foundation; either * 00009 * version 2 of the License, or (at your option) any later version. * 00010 * * 00011 * This library is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00014 * GNU Library General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU Library General Public * 00017 * License along with this library; see the file COPYING.LIB. If not, * 00018 * write to the Free Software Foundation, Inc., 59 Temple Place, * 00019 * Suite 330, Boston, MA 02111-1307, USA * 00020 * * 00021 ***************************************************************************/ 00022 00023 00024 00025 #ifndef GUI_DOCKWND_COMBIVIEW_H 00026 #define GUI_DOCKWND_COMBIVIEW_H 00027 00028 #include "DockWindow.h" 00029 #include "Selection.h" 00030 00031 class QTabWidget; 00032 class QTreeView; 00033 00034 namespace App { 00035 class PropertyContainer; 00036 } 00037 00038 namespace Gui { 00039 class TreeWidget; 00040 class PropertyView; 00041 00042 namespace PropertyEditor { 00043 class EditableListView; 00044 class EditableItem; 00045 class PropertyEditor; 00046 } // namespace PropertyEditor 00047 00048 namespace TaskView { 00049 class TaskView; 00050 class TaskDialog; 00051 } // namespace TaskView 00052 } // namespace Gui 00053 00054 00055 namespace Gui { 00056 class ControlSingleton; 00057 namespace DockWnd { 00058 00063 class GuiExport CombiView : public Gui::DockWindow 00064 { 00065 Q_OBJECT 00066 00067 public: 00072 CombiView(Gui::Document* pcDocument, QWidget *parent=0); 00073 00078 virtual ~CombiView(); 00079 00080 Gui::TaskView::TaskView *getTaskPanel(void){return taskPanel;} 00081 00082 00083 friend class Gui::ControlSingleton; 00084 00085 void showTreeView(); 00086 void showTaskView(); 00087 00088 protected: 00089 void showDialog(Gui::TaskView::TaskDialog *dlg); 00090 void closeDialog(); 00091 void closedDialog(); 00092 void changeEvent(QEvent *e); 00093 00094 int oldTabIndex; 00095 00096 private: 00097 QTabWidget * tabs; 00098 Gui::PropertyView * prop; 00099 QTreeView * tree; 00100 Gui::TaskView::TaskView * taskPanel; 00101 }; 00102 00103 } // namespace DockWnd 00104 } // namespace Gui 00105 00106 #endif // GUI_DOCKWND_SELECTIONVIEW_H