54 lines
1.1 KiB
C++
54 lines
1.1 KiB
C++
// **************************************************************************
|
|
//
|
|
// (C) Copyright 2009 Swiss SIMTEC AG
|
|
//
|
|
// **************************************************************************
|
|
//
|
|
// $HeadURL$
|
|
// $LastChangedBy$
|
|
// $LastChangedDate$
|
|
// $LastChangedRevision$
|
|
//
|
|
// **************************************************************************
|
|
|
|
#pragma once
|
|
|
|
#include "LogViewWidget.hpp"
|
|
#include <QLineEdit>
|
|
|
|
namespace N_LogView
|
|
{
|
|
/**
|
|
* Used for arrays of char and string.
|
|
*
|
|
* @author alois.wismer
|
|
* @version 1.0
|
|
* @created 21-Mai-2010 10:28:05
|
|
*/
|
|
class LogViewTextEdit : public QLineEdit, public LogViewWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
/**
|
|
*
|
|
* @param a_field
|
|
* @param a_parent
|
|
* @param a_readonly
|
|
*/
|
|
LogViewTextEdit(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 slots:
|
|
void checkAndOvertakeContent();
|
|
|
|
};
|
|
|
|
}
|