DataView Class Referenceabstract

#include <RobotAPI/libraries/armem_gui/instance/DataView.h>

+ Inheritance diagram for DataView:

Classes

class  ImageView
 

Signals

void actionsMenuRequested (const MemoryID &memoryID, QWidget *parent, const QPoint &pos, QMenu *menu)
 
void memoryIdResolutionRequested (const MemoryID &id)
 
void updated ()
 
void useTypeInfoChanged (bool enable)
 

Public Member Functions

void addDataView (DataView *dataView)
 
 DataView ()
 
void setStatusLabel (QLabel *statusLabel)
 
void setUseTypeInfo (bool enable)
 
virtual void update ()=0
 
virtual ~DataView ()=default
 
- Public Member Functions inherited from Logging
SpamFilterDataPtr deactivateSpam (float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) const
 disables the logging for the current line for the given amount of seconds. More...
 
MessageTypeT getEffectiveLoggingLevel () const
 
 Logging ()
 
void setLocalMinimumLoggingLevel (MessageTypeT level)
 With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set. More...
 
void setTag (const LogTag &tag)
 
void setTag (const std::string &tagName)
 
virtual ~Logging ()
 

Protected Types

enum  Columns { KEY = 0, VALUE = 1, TYPE = 2 }
 

Protected Slots

virtual void prepareTreeContextMenu (const QPoint &pos)
 
void removeImageView ()
 
void showImageView (const aron::Path &elementPath)
 

Protected Member Functions

virtual QMenu * buildActionsMenu (const QPoint &pos)
 
virtual aron::data::DictPtr getData ()=0
 
std::optional< MemoryIDgetElementMemoryID (const aron::Path &elementPath)
 
QAction * makeActionCopyMemoryID (const MemoryID &id)
 
void showErrorMessage (const std::string &message)
 
virtual void updateData (const aron::data::DictPtr &data, aron::type::ObjectPtr aronType=nullptr)
 
void updateImageView (const aron::data::DictPtr &data)
 
- Protected Member Functions inherited from Logging
bool checkLogLevel (MessageTypeT level) const
 
const LogSenderPtrgetLogSender () const
 Retrieve log sender. More...
 
LogSenderPtr loghelper (const char *file, int line, const char *function) const
 

Static Protected Member Functions

static std::optional< aron::PathgetElementPath (const QTreeWidgetItem *item)
 

Protected Attributes

aron::type::ObjectPtr currentAronType = nullptr
 
ImageViewimageView = nullptr
 
QSplitter * splitter
 
QLabel * statusLabel = nullptr
 
QTreeWidget * tree
 
QTreeWidgetItem * treeItemData
 
bool useTypeInfo = true
 
- Protected Attributes inherited from Logging
MessageTypeT minimumLoggingLevel
 
SpamFilterDataPtr spamFilter
 
LogTag tag
 

Detailed Description

Definition at line 34 of file DataView.h.

Member Enumeration Documentation

◆ Columns

enum Columns
strongprotected
Enumerator
KEY 
VALUE 
TYPE 

Definition at line 89 of file DataView.h.

Constructor & Destructor Documentation

◆ DataView()

DataView ( )

Definition at line 30 of file DataView.cpp.

+ Here is the call graph for this function:

◆ ~DataView()

virtual ~DataView ( )
virtualdefault

Member Function Documentation

◆ actionsMenuRequested

void actionsMenuRequested ( const MemoryID memoryID,
QWidget *  parent,
const QPoint &  pos,
QMenu *  menu 
)
signal
+ Here is the caller graph for this function:

◆ addDataView()

void addDataView ( DataView dataView)

Definition at line 79 of file DataView.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildActionsMenu()

QMenu * buildActionsMenu ( const QPoint &  pos)
protectedvirtual

Definition at line 343 of file DataView.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getData()

virtual aron::data::DictPtr getData ( )
protectedpure virtual
+ Here is the caller graph for this function:

◆ getElementMemoryID()

std::optional< MemoryID > getElementMemoryID ( const aron::Path elementPath)
protected

Definition at line 157 of file DataView.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getElementPath()

std::optional< aron::Path > getElementPath ( const QTreeWidgetItem *  item)
staticprotected

Definition at line 142 of file DataView.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeActionCopyMemoryID()

QAction * makeActionCopyMemoryID ( const MemoryID id)
protected

Definition at line 232 of file DataView.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ memoryIdResolutionRequested

void memoryIdResolutionRequested ( const MemoryID id)
signal
+ Here is the caller graph for this function:

◆ prepareTreeContextMenu

void prepareTreeContextMenu ( const QPoint &  pos)
protectedvirtualslot

Definition at line 443 of file DataView.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeImageView

void removeImageView ( )
protectedslot

Definition at line 482 of file DataView.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setStatusLabel()

void setStatusLabel ( QLabel *  statusLabel)

Definition at line 65 of file DataView.cpp.

+ Here is the caller graph for this function:

◆ setUseTypeInfo()

void setUseTypeInfo ( bool  enable)

Definition at line 71 of file DataView.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showErrorMessage()

void showErrorMessage ( const std::string &  message)
protected

Definition at line 133 of file DataView.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showImageView

void showImageView ( const aron::Path elementPath)
protectedslot

Definition at line 458 of file DataView.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ update()

virtual void update ( )
pure virtual

Implemented in InstanceView, and AronDataView.

+ Here is the caller graph for this function:

◆ updated

void updated ( )
signal
+ Here is the caller graph for this function:

◆ updateData()

void updateData ( const aron::data::DictPtr data,
aron::type::ObjectPtr  aronType = nullptr 
)
protectedvirtual

Definition at line 101 of file DataView.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateImageView()

void updateImageView ( const aron::data::DictPtr data)
protected

Definition at line 576 of file DataView.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ useTypeInfoChanged

void useTypeInfoChanged ( bool  enable)
signal
+ Here is the caller graph for this function:

Member Data Documentation

◆ currentAronType

aron::type::ObjectPtr currentAronType = nullptr
protected

Definition at line 96 of file DataView.h.

◆ imageView

ImageView* imageView = nullptr
protected

Definition at line 131 of file DataView.h.

◆ splitter

QSplitter* splitter
protected

Definition at line 99 of file DataView.h.

◆ statusLabel

QLabel* statusLabel = nullptr
protected

Definition at line 133 of file DataView.h.

◆ tree

QTreeWidget* tree
protected

Definition at line 101 of file DataView.h.

◆ treeItemData

QTreeWidgetItem* treeItemData
protected

Definition at line 102 of file DataView.h.

◆ useTypeInfo

bool useTypeInfo = true
protected

Definition at line 97 of file DataView.h.


The documentation for this class was generated from the following files: