blob: 2694b1784d4f208e285a3432d890dd71a8b459b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/***************************************************************************
* Copyright (C) 2005 by David Saxton *
* david@bluehaze.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
#include "mechanicsdocument.h"
#include "mechanicsview.h"
#include "viewiface.h"
MechanicsView::MechanicsView( MechanicsDocument *mechanicsDocument, ViewContainer *viewContainer, uint viewAreaId, const char *name )
: ItemView( mechanicsDocument, viewContainer, viewAreaId, name )
{
setXMLFile( "ktechlabmechanicsui.rc", true );
m_pViewIface = new MechanicsViewIface(this);
}
MechanicsView::~MechanicsView()
{
delete m_pViewIface;
m_pViewIface = 0l;
}
void MechanicsView::dragEnterEvent( TQDragEnterEvent * e )
{
ItemView::dragEnterEvent(e);
if ( e->isAccepted() )
return;
e->accept( e->provides("ktechlab/mechanical") );
}
#include "mechanicsview.moc"
|