2019-12-09 13:22:54 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QMdiArea>
|
|
|
|
#include <QMdiSubWindow>
|
|
|
|
#include <QTableView>
|
|
|
|
#include "QtGenericTableModel.h"
|
|
|
|
|
|
|
|
#include "signal/Signal.h"
|
|
|
|
#include "Types.h"
|
|
|
|
|
2020-01-06 12:40:18 +00:00
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class CAddressListViewWnd;
|
|
|
|
}
|
|
|
|
|
2019-12-09 13:22:54 +00:00
|
|
|
class CAddressListViewWnd : public QMdiSubWindow
|
|
|
|
{
|
2020-01-06 12:40:18 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
2019-12-09 13:22:54 +00:00
|
|
|
public:
|
|
|
|
typedef std::vector<uint32> AddressList;
|
|
|
|
|
|
|
|
typedef Framework::CSignal<void(uint32)> AddressSelectedEvent;
|
|
|
|
|
|
|
|
CAddressListViewWnd(QMdiArea*);
|
2020-01-06 12:40:18 +00:00
|
|
|
virtual ~CAddressListViewWnd();
|
2019-12-09 13:22:54 +00:00
|
|
|
|
|
|
|
void SetTitle(std::string);
|
|
|
|
void SetAddressList(AddressList);
|
|
|
|
|
|
|
|
AddressSelectedEvent AddressSelected;
|
|
|
|
|
|
|
|
public slots:
|
2021-01-19 17:14:19 -05:00
|
|
|
void show();
|
2019-12-09 13:22:54 +00:00
|
|
|
void tableDoubleClick(const QModelIndex&);
|
|
|
|
|
|
|
|
private:
|
2020-01-06 12:40:18 +00:00
|
|
|
Ui::CAddressListViewWnd* ui;
|
|
|
|
|
2019-12-09 13:22:54 +00:00
|
|
|
CQtGenericTableModel* m_model;
|
|
|
|
};
|