mechanicsview.cpp

00001 /***************************************************************************
00002  *   Copyright (C) 2005 by David Saxton                                    *
00003  *   david@bluehaze.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #include "mechanicsdocument.h"
00012 #include "mechanicsview.h"
00013 #include "viewiface.h"
00014 
00015 
00016 MechanicsView::MechanicsView( MechanicsDocument *mechanicsDocument, ViewContainer *viewContainer, uint viewAreaId, const char *name )
00017         : ItemView( mechanicsDocument, viewContainer, viewAreaId, name )
00018 {
00019         setXMLFile( "ktechlabmechanicsui.rc", true );
00020         m_pViewIface = new MechanicsViewIface(this);
00021 }
00022 
00023 MechanicsView::~MechanicsView()
00024 {
00025         delete m_pViewIface;
00026 }
00027 
00028 void MechanicsView::dragEnterEvent( QDragEnterEvent * e )
00029 {
00030         ItemView::dragEnterEvent(e);
00031         if ( e->isAccepted() )
00032                 return;
00033         
00034         e->accept( e->provides("ktechlab/mechanical") );
00035 }
00036 
00037 #include "mechanicsview.moc"

Generated on Tue May 8 17:05:31 2007 for KTechLab by  doxygen 1.5.1