00001 /* This file is part of the KDE project 00002 Copyright (C) 2006 Stefan Nikolaus <stefan.nikolaus@kdemail.net> 00003 (C) 2004 Laurent Montel <montel@kde.org> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301 USA 00019 */ 00020 00021 #include "KPtViewAdaptor.h" 00022 #include "kptview.h" 00023 00024 #include <kapplication.h> 00025 00026 namespace KPlato 00027 { 00028 00029 /************************************************ 00030 * 00031 * ViewAdaptor 00032 * 00033 ************************************************/ 00034 00035 ViewAdaptor::ViewAdaptor( View* t ) 00036 : KoViewAdaptor( t ) 00037 { 00038 setAutoRelaySignals(true); 00039 m_view = t; 00040 } 00041 00042 ViewAdaptor::~ViewAdaptor() 00043 { 00044 } 00045 00046 void ViewAdaptor::slotEditResource() 00047 { 00048 m_view->slotEditResource(); 00049 } 00050 00051 void ViewAdaptor::slotEditCut() 00052 { 00053 m_view->slotEditCut(); 00054 } 00055 00056 void ViewAdaptor::slotEditCopy() 00057 { 00058 m_view->slotEditCopy(); 00059 } 00060 00061 void ViewAdaptor::slotEditPaste() 00062 { 00063 m_view->slotEditPaste(); 00064 } 00065 00066 void ViewAdaptor::slotViewGantt() 00067 { 00068 m_view->slotViewGantt(); 00069 } 00070 00071 void ViewAdaptor::slotViewResources() 00072 { 00073 m_view->slotViewResources(); 00074 } 00075 00076 void ViewAdaptor::slotAddTask() 00077 { 00078 m_view->slotAddTask(); 00079 } 00080 00081 void ViewAdaptor::slotAddSubTask() 00082 { 00083 m_view->slotAddSubTask(); 00084 } 00085 00086 void ViewAdaptor::slotAddMilestone() 00087 { 00088 m_view->slotAddMilestone(); 00089 } 00090 00091 void ViewAdaptor::slotProjectEdit() 00092 { 00093 m_view->slotProjectEdit(); 00094 } 00095 00096 void ViewAdaptor::slotConfigure() 00097 { 00098 m_view->slotConfigure(); 00099 } 00100 00101 } //KPlato namespace 00102 00103 #include "KPtViewAdaptor.moc"