/** * @file ScosTime/gui.h * @brief GUI for the ScosTime application * @author Enar Vaikene * * Copyright (c) 2012 Enar Vaikene * * This file is part of the eVaf C++ cross-platform application development framework. * * This file can be used under the terms of the GNU General Public License * version 3.0 as published by the Free Software Foundation and appearing in * the file LICENSE included in the packaging of this file. Please review the * the following information to ensure the GNU General Public License version * 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. * * Alternatively, this file may be used in accordance with the Commercial License * Agreement provided with the Software. */ #ifndef __SCOSTIME_GUI_H # define __SCOSTIME_GUI_H #include "version.h" #include #include #include #include class QLineEdit; class QComboBox; namespace eVaf { namespace ScosTime { /** * Graphical User Interface for the ScosTime application. * * This module adds a GUI window to the ScosTime application using the SdiWindow module. */ class Module : public Plugins::iPlugin { Q_OBJECT Q_INTERFACES(eVaf::Plugins::iPlugin) Q_PLUGIN_METADATA(IID VER_MODULE_NAME_STR) public: Module(); virtual ~Module(); virtual bool init(const QString & args); virtual void done(); virtual bool isReady() const { return mReady; } private slots: void dateTimeClicked(); void hexClicked(); private: // Methods QDateTime strToDateTime(QString const & s) const; private: // Members /// Flag indicating that the module is ready bool mReady; /// Widgets on the screen QComboBox * wEpoch; QLineEdit * wDateTime; QLineEdit * wHex; }; } // namespace eVaf::ScosTime } // namespace eVaf #endif // gui.h