Commit d8f6b0a2 authored by Jan Möbius's avatar Jan Möbius

Drag and drop not working anymore... some debug outputs...

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4478 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b9060149
......@@ -9,9 +9,9 @@
<ignoreparts/>
<projectdirectory>../</projectdirectory>
<absoluteprojectpath>false</absoluteprojectpath>
<description></description>
<description/>
<projectname>gui</projectname>
<defaultencoding></defaultencoding>
<defaultencoding/>
<versioncontrol>kdevsubversion</versioncontrol>
</general>
<kdevcustomproject>
......@@ -19,11 +19,11 @@
<mainprogram>/data/home1/moebius/projects/OpenFlipper/OpenFlipper/Debian_64_Debug/OpenFlipper</mainprogram>
<directoryradio>executable</directoryradio>
<customdirectory>/</customdirectory>
<programargs></programargs>
<programargs/>
<terminal>false</terminal>
<autocompile>true</autocompile>
<envvars/>
<globaldebugarguments></globaldebugarguments>
<globaldebugarguments/>
<globalcwd>/data/home1/moebius/projects/OpenFlipper</globalcwd>
<useglobalprogram>false</useglobalprogram>
<autoinstall>false</autoinstall>
......@@ -31,15 +31,15 @@
</run>
<build>
<buildtool>make</buildtool>
<builddir></builddir>
<builddir/>
</build>
<make>
<abortonerror>false</abortonerror>
<numberofjobs>4</numberofjobs>
<prio>0</prio>
<dontact>false</dontact>
<makebin></makebin>
<defaulttarget></defaulttarget>
<makebin/>
<defaulttarget/>
<makeoptions>-i</makeoptions>
<selectedenvironment>Debug</selectedenvironment>
<environments>
......@@ -81,8 +81,8 @@
<other>
<prio>0</prio>
<otherbin>acgmake -max</otherbin>
<defaulttarget></defaulttarget>
<otheroptions></otheroptions>
<defaulttarget/>
<otheroptions/>
<selectedenvironment>Debug</selectedenvironment>
<environments>
<default/>
......@@ -95,12 +95,12 @@
</kdevcustomproject>
<kdevdebugger>
<general>
<dbgshell></dbgshell>
<dbgshell/>
<programargs/>
<gdbpath></gdbpath>
<configGdbScript></configGdbScript>
<runShellScript></runShellScript>
<runGdbScript></runGdbScript>
<gdbpath/>
<configGdbScript/>
<runShellScript/>
<runGdbScript/>
<breakonloadinglibs>true</breakonloadinglibs>
<separatetty>false</separatetty>
<floatingtoolbar>false</floatingtoolbar>
......@@ -213,7 +213,7 @@
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
</codecompletion>
<creategettersetter>
<prefixGet></prefixGet>
<prefixGet/>
<prefixSet>set</prefixSet>
<prefixVariable>m_,_</prefixVariable>
<parameterName>theValue</parameterName>
......
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE KDevPrjSession>
<KDevPrjSession>
<DocsAndViews NumberOfDocuments="17" >
<DocsAndViews NumberOfDocuments="3" >
<Doc0 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/Plugin-TemplateModeling/Init.cc" >
<View0 Encoding="" line="1140" Type="Source" />
<View0 Encoding="" line="1151" Type="Source" />
</Doc0>
<Doc1 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/Plugin-TemplateModeling/TemplateModelingPlugin.hh" >
<View0 Encoding="" line="21" Type="Source" />
<Doc1 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/OpenFlipper/widgets/glWidget/QtBaseViewer.hh" >
<View0 Encoding="" line="875" Type="Source" />
</Doc1>
<Doc2 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/Plugin-TemplateModeling/DataContainerT.cc" >
<View0 Encoding="" line="17" Type="Source" />
</Doc2>
<Doc3 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/Plugin-TemplateModeling/TemplateBlendingComputation.cc" >
<View0 Encoding="" line="240" Type="Source" />
</Doc3>
<Doc4 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/Plugin-TemplateModeling/TemplateModelingPlugin.cc" >
<View0 Encoding="" line="36" Type="Source" />
</Doc4>
<Doc5 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/Plugin-TemplateModeling/Matching.cc" >
<View0 Encoding="" line="156" Type="Source" />
</Doc5>
<Doc6 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/ACG/Scenegraph/TranslationManipulatorNode.cc" >
<View0 Encoding="" line="103" Type="Source" />
</Doc6>
<Doc7 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/ACG/Scenegraph/TranslationManipulatorNode.hh" >
<View0 Encoding="" line="226" Type="Source" />
</Doc7>
<Doc8 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/ACG/QtWidgets/QtBaseViewer.cc" >
<View0 Encoding="" line="1019" Type="Source" />
</Doc8>
<Doc9 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/OpenFlipper/Core/PluginLoader.cc" >
<View0 Encoding="" line="596" Type="Source" />
</Doc9>
<Doc10 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/ObjectTypes/MeshObject/MeshObjectT.cc" >
<View0 Encoding="" line="277" Type="Source" />
</Doc10>
<Doc11 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/ACG/QtWidgets/QtGLGraphicsView.hh" >
<View0 Encoding="" line="0" Type="Source" />
</Doc11>
<Doc12 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/ACG/QtWidgets/QtGLGraphicsView.cc" >
<Doc2 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/OpenFlipper/widgets/glWidget/QtGLGraphicsScene.cc" >
<View0 Encoding="" line="0" Type="Source" />
</Doc12>
<Doc13 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/ACG/QtWidgets/QtGLGraphicsScene.hh" >
<View0 Encoding="" line="75" Type="Source" />
</Doc13>
<Doc14 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/ACG/QtWidgets/QtGLGraphicsScene.cc" >
<View0 Encoding="" line="50" Type="Source" />
</Doc14>
<Doc15 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/ACG/QtWidgets/QtExaminerViewer.cc" >
<View0 Encoding="" line="131" Type="Source" />
</Doc15>
<Doc16 NumberOfViews="1" URL="file:///data/home1/moebius/projects/OpenFlipper/ACG/QtWidgets/QtBaseViewer.hh" >
<View0 Encoding="" line="484" Type="Source" />
</Doc16>
</Doc2>
</DocsAndViews>
<pluginList>
<kdevdebugger>
......
......@@ -868,12 +868,12 @@ private:
* @{ */
//===========================================================================
protected:
public:
/// drag & drop for modelview copying
virtual void glDragEnterEvent(QDragEnterEvent* _event);
void glDragEnterEvent(QDragEnterEvent* _event){ std::cerr << "dragEnter" << std::endl; emit dragEnterEvent(_event); };
/// drag & drop for modelview copying
virtual void glDropEvent(QDropEvent* _event);
void glDropEvent(QDropEvent* _event){ std::cerr << "drop" << std::endl; emit dropEvent( _event ); }
signals:
/** Signal is emitted when Control modifier is pressed and mouse moded.
......
//=============================================================================
//
// OpenFlipper
// Copyright (C) 2008 by Computer Graphics Group, RWTH Aachen
// www.openflipper.org
//
//-----------------------------------------------------------------------------
//
// License
//
// OpenFlipper is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// OpenFlipper is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenFlipper. If not, see <http://www.gnu.org/licenses/>.
//
//-----------------------------------------------------------------------------
//
// $Revision: 3663 $
// $Author: moebius $
// $Date: 2008-11-06 14:55:30 +0100 (Do, 06. Nov 2008) $
//
//=============================================================================
//=============================================================================
//
// CLASS QtBaseViewer - IMPLEMENTATION
//
//=============================================================================
//== INCLUDES =================================================================
#include "QtBaseViewer.hh"
//== NAMESPACES ===============================================================
//== IMPLEMENTATION ==========================================================
void QtBaseViewer::glDragEnterEvent(QDragEnterEvent* _event)
{
emit dragEnterEvent(_event);
}
void QtBaseViewer::glDropEvent(QDropEvent* _event)
{
emit dropEvent( _event );
}
//=============================================================================
//=============================================================================
......@@ -164,10 +164,11 @@ void QtGLGraphicsScene::contextMenuEvent(QGraphicsSceneContextMenuEvent* _e)
void QtGLGraphicsScene::dragEnterEvent(QGraphicsSceneDragDropEvent* _e)
{
std::cerr << "Todo : SceneDragEnterEvent not working with external handling" << std::endl;
QGraphicsScene::dragEnterEvent(_e);
if (_e->isAccepted())
return;
std::cerr << "Not Accepted ... passing to baseviewer" << std::endl;
QPoint p (_e->scenePos().x(), _e->scenePos().y());
QDragEnterEvent de(p, _e->possibleActions(), _e->mimeData(), _e->buttons(),
_e->modifiers ());
......@@ -177,9 +178,11 @@ void QtGLGraphicsScene::dragEnterEvent(QGraphicsSceneDragDropEvent* _e)
void QtGLGraphicsScene::dropEvent(QGraphicsSceneDragDropEvent* _e)
{
std::cerr << "Todo : SceneDropEvent not working with external handling" << std::endl;
QGraphicsScene::dropEvent(_e);
if (_e->isAccepted())
return;
std::cerr << "Not Accepted ... passing to baseviewer" << std::endl;
QPoint p (_e->scenePos().x(), _e->scenePos().y());
QDropEvent de(p, _e->possibleActions(), _e->mimeData(), _e->buttons(),
_e->modifiers ());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment