58 lines
1.2 KiB
C++
Executable File
58 lines
1.2 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
*
|
|
* TableView for dynamic topics
|
|
*
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QTableView>
|
|
#include "telegrammodel.h"
|
|
#include "logger.h"
|
|
|
|
class TelegramSortModel;
|
|
class DetailViewDlg;
|
|
|
|
class TelegramView : public QTableView
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit TelegramView(QWidget *parent = nullptr);
|
|
~TelegramView();
|
|
|
|
TelegramModel *telegramModel() {return m_model;}
|
|
|
|
void setConnected(bool bConnected) { m_bConnected = bConnected; }
|
|
|
|
signals:
|
|
void dataClicked(const dds::core::xtypes::DynamicData &data, const QString &topicName);
|
|
void clearDetailView();
|
|
void send(const QSharedPointer<dds::core::xtypes::DynamicData> &data, const QString &topicName);
|
|
|
|
public slots:
|
|
void onTypeCodeInfosChanged();
|
|
|
|
private:
|
|
|
|
void init();
|
|
void onSaveDynamicDataVector(const QVector<TelegramModel::TelegramData> &vector);
|
|
|
|
TelegramSortModel *m_proxyModel;
|
|
TelegramModel *m_model;
|
|
bool m_bConnected;
|
|
NGL::INGLLogger &m_logger;
|
|
|
|
private slots:
|
|
void onTableClicked(const QModelIndex &mi);
|
|
void onTableDoubleClicked(const QModelIndex &mi);
|
|
void onCustomContextMenuRequested(const QPoint &p);
|
|
void onDeleteIndex();
|
|
void onSendIndex();
|
|
void onSaveIndex();
|
|
void onSaveAllIndexes();
|
|
};
|