// ************************************************************************** // // (C) Copyright 2009 Swiss SIMTEC AG // // ************************************************************************** // // $HeadURL$ // $LastChangedBy$ // $LastChangedDate$ // $LastChangedRevision$ // // ************************************************************************** #pragma once #include "LogViewWidget.hpp" #include namespace N_LogView { /** * Used for scalar signed or unsigned values * * @author alois.wismer * @version 1.0 * @created 20-Mai-2010 14:47:50 */ class LogViewValueEdit : public QLineEdit, public LogViewWidget { Q_OBJECT public: /** * * @param a_field * @param a_parent * @param a_readonly */ LogViewValueEdit(LogViewField* a_field, QWidget* a_parent, const bool a_readonly); /** * Writes the content into telegram. * Returns true if successful. * * @param a_telegram */ bool saveContent(LogViewTelegram* a_telegram) override; protected: bool m_IsFloat; protected slots: void checkAndOvertakeContent(); }; }