/* ***** BEGIN LICENSE BLOCK *****
 * FW4SPL - Copyright (C) IRCAD, 2009-2012.
 * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
 * published by the Free Software Foundation.
 * ****** END LICENSE BLOCK ****** */

#include <fwGui/registry/macros.hpp>

#include "fwGuiQt/ActionCallback.hpp"


fwGuiRegisterMacro( ::fwGuiQt::ActionCallback, ::fwGui::ActionCallbackBase::REGISTRY_KEY );

namespace fwGuiQt
{

//-----------------------------------------------------------------------------

ActionCallback::ActionCallback(::fwGui::GuiBaseObject::Key key)
{}

//-----------------------------------------------------------------------------

ActionCallback::~ActionCallback()
{}

//-----------------------------------------------------------------------------

// if action is checkable, executeQt is executed after checkQt
void ActionCallback::executeQt(bool checked)
{
    this->execute();
}

//-----------------------------------------------------------------------------

void ActionCallback::checkQt(bool checked)
{
    this->check(checked);
}

} // namespace fwGuiQt


