|
HAL
v4.5.0-133-g64838ea8d
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
|
The CommentEntry class encapsulated information related to a comment. More...
#include </home/runner/work/hal/hal/plugins/gui/include/gui/comment_system/comment_entry.h>

Public Member Functions | |
| CommentEntry (Node n, QString text=QString(), QString header=QString()) | |
| CommentEntry (const QJsonObject &jsonObj) | |
| ~CommentEntry () | |
| void | setHeader (QString newHeader) |
| void | setText (QString newText) |
| void | setDirty (bool dirty) |
| QString | getHeader () const |
| QString | getText () const |
| Node | getNode () const |
| QDateTime | getCreationTime () const |
| QDateTime | getLastModifiedTime () const |
| QJsonObject | toJson () const |
| bool | isInvalid () const |
| void | dump () const |
| QString | getDateFormatString () const |
The CommentEntry class encapsulated information related to a comment.
This class holds all relvant information for a gui comment such as a header, the time of creation, and the text itself. For now only gates and modules can be associated with a comment.
Definition at line 42 of file comment_entry.h.
Definition at line 8 of file comment_entry.cpp.
References QDateTime::currentDateTime(), and QDateTime::toUTC().
| hal::CommentEntry::CommentEntry | ( | const QJsonObject & | jsonObj | ) |
Definition at line 14 of file comment_entry.cpp.
References QJsonObject::contains(), QDateTime::fromString(), and Qt::ISODate.
|
inline |
Definition at line 47 of file comment_entry.h.
| void hal::CommentEntry::dump | ( | ) | const |
Definition at line 96 of file comment_entry.cpp.
References hal::Node::id(), hal::Node::isGate(), QString::left(), QDateTime::toString(), and QIODevice::WriteOnly.
| QDateTime hal::CommentEntry::getCreationTime | ( | ) | const |
Definition at line 67 of file comment_entry.cpp.
| QString hal::CommentEntry::getDateFormatString | ( | ) | const |
Definition at line 106 of file comment_entry.cpp.
Referenced by hal::CommentDialog::CommentDialog(), and hal::CommentItem::updateCurrentEntry().
| QString hal::CommentEntry::getHeader | ( | ) | const |
Definition at line 52 of file comment_entry.cpp.
Referenced by hal::CommentDialog::CommentDialog(), and hal::CommentItem::updateCurrentEntry().
| QDateTime hal::CommentEntry::getLastModifiedTime | ( | ) | const |
Definition at line 72 of file comment_entry.cpp.
Referenced by hal::CommentDialog::CommentDialog(), and hal::CommentItem::updateCurrentEntry().
| Node hal::CommentEntry::getNode | ( | ) | const |
Definition at line 62 of file comment_entry.cpp.
Referenced by hal::CommentManager::addComment(), and hal::CommentManager::deleteComment().
| QString hal::CommentEntry::getText | ( | ) | const |
Definition at line 57 of file comment_entry.cpp.
Referenced by hal::CommentDialog::CommentDialog(), and hal::CommentItem::updateCurrentEntry().
| bool hal::CommentEntry::isInvalid | ( | ) | const |
Definition at line 91 of file comment_entry.cpp.
References hal::Node::isNull().
| void hal::CommentEntry::setDirty | ( | bool | dirty | ) |
Definition at line 47 of file comment_entry.cpp.
| void hal::CommentEntry::setHeader | ( | QString | newHeader | ) |
Definition at line 33 of file comment_entry.cpp.
References QDateTime::currentDateTime(), and QDateTime::toUTC().
| void hal::CommentEntry::setText | ( | QString | newText | ) |
Definition at line 40 of file comment_entry.cpp.
References QDateTime::currentDateTime(), and QDateTime::toUTC().
| QJsonObject hal::CommentEntry::toJson | ( | ) | const |
Definition at line 77 of file comment_entry.cpp.
References hal::Node::id(), Qt::ISODate, QDateTime::toString(), and hal::Node::type().
Referenced by hal::CommentManager::serialize().