/* * Project: MoleCuilder * Description: creates and alters molecular systems * Copyright (C) 2010 University of Bonn. All rights reserved. * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. */ /* * VersionAction.cpp * * Created on: May 8, 2010 * Author: heber */ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include "Helpers/MemDebug.hpp" #include "Actions/CmdAction/VersionAction.hpp" #include "Actions/ActionRegistry.hpp" #include "version.h" #include #include using namespace std; #include "UIElements/UIFactory.hpp" #include "UIElements/Dialog.hpp" #include "Actions/ValueStorage.hpp" const char CommandLineVersionAction::NAME[] = "version"; CommandLineVersionAction::CommandLineVersionAction() : Action(NAME) {} CommandLineVersionAction::~CommandLineVersionAction() {} void CommandVersion() { ActionRegistry::getInstance().getActionByName(CommandLineVersionAction::NAME)->call(Action::NonInteractive); }; void CommandLineVersionAction::getParametersfromValueStorage() {}; Dialog* CommandLineVersionAction::fillDialog(Dialog *dialog) { ASSERT(dialog,"No Dialog given when filling action dialog"); dialog->queryEmpty(NAME, MOLECUILDERVERSION); return dialog; } Action::state_ptr CommandLineVersionAction::performCall() { return Action::success; } Action::state_ptr CommandLineVersionAction::performUndo(Action::state_ptr _state) { return Action::success; } Action::state_ptr CommandLineVersionAction::performRedo(Action::state_ptr _state){ return Action::success; } bool CommandLineVersionAction::canUndo() { return true; } bool CommandLineVersionAction::shouldUndo() { return false; } const string CommandLineVersionAction::getName() { return NAME; }