| 1 |
/****************************************************************************** |
| 2 |
This source file is part of the Avogadro project. |
| 3 |
This source code is released under the 3-Clause BSD License, (see "LICENSE"). |
| 4 |
******************************************************************************/ |
| 5 |
|
| 6 |
#include "toolplugin.h" |
| 7 |
|
| 8 |
namespace Avogadro::QtGui { |
| 9 |
|
| 10 |
ToolPlugin::ToolPlugin(QObject* parent_) : QObject(parent_) {} |
| 11 |
|
| 12 |
ToolPlugin::~ToolPlugin() {} |
| 13 |
|
| 14 |
QUndoCommand* ToolPlugin::mousePressEvent(QMouseEvent*) |
| 15 |
{ |
| 16 |
return nullptr; |
| 17 |
} |
| 18 |
|
| 19 |
QUndoCommand* ToolPlugin::mouseReleaseEvent(QMouseEvent*) |
| 20 |
{ |
| 21 |
return nullptr; |
| 22 |
} |
| 23 |
|
| 24 |
QUndoCommand* ToolPlugin::mouseMoveEvent(QMouseEvent*) |
| 25 |
{ |
| 26 |
return nullptr; |
| 27 |
} |
| 28 |
|
| 29 |
QUndoCommand* ToolPlugin::mouseDoubleClickEvent(QMouseEvent*) |
| 30 |
{ |
| 31 |
return nullptr; |
| 32 |
} |
| 33 |
|
| 34 |
QUndoCommand* ToolPlugin::wheelEvent(QWheelEvent*) |
| 35 |
{ |
| 36 |
return nullptr; |
| 37 |
} |
| 38 |
|
| 39 |
QUndoCommand* ToolPlugin::keyPressEvent(QKeyEvent*) |
| 40 |
{ |
| 41 |
return nullptr; |
| 42 |
} |
| 43 |
|
| 44 |
QUndoCommand* ToolPlugin::keyReleaseEvent(QKeyEvent*) |
| 45 |
{ |
| 46 |
return nullptr; |
| 47 |
} |
| 48 |
|
| 49 |
void ToolPlugin::draw(Rendering::GroupNode&) {} |
| 50 |
|
| 51 |
bool ToolPlugin::handleCommand(const QString& command, |
| 52 |
const QVariantMap& options) |
| 53 |
{ |
| 54 |
Q_UNUSED(command); |
| 55 |
Q_UNUSED(options); |
| 56 |
return false; |
| 57 |
} |
| 58 |
|
| 59 |
ToolPluginFactory::~ToolPluginFactory() {} |
| 60 |
|
| 61 |
} // namespace Avogadro::QtGui |