CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
crsguiinterface.h
Go to the documentation of this file.
1#ifndef CRSGUIINTERFACE_H
2#define CRSGUIINTERFACE_H
3
4#include <QModelIndex>
5#include <functional>
6#include <memory>
7class QWidget;
8class QAbstractItemModel;
9class CanRawSender;
10class NewLineManager;
11
14 {
15 }
16
17 typedef std::function<void()> add_t;
18 typedef std::function<void()> remove_t;
19 typedef std::function<void()> dockUndock_t;
20 virtual void setAddCbk(const add_t& cb) = 0;
21 virtual void setRemoveCbk(const remove_t& cb) = 0;
22 virtual void setDockUndockCbk(const dockUndock_t& cb) = 0;
23
24 virtual QWidget* mainWidget() = 0;
25 virtual void initTableView(QAbstractItemModel& _tvModel) = 0;
26 virtual QModelIndexList getSelectedRows() = 0;
27 virtual void setIndexWidget(const QModelIndex& index, QWidget* widget) = 0;
28};
29#endif // CRSGUIINTERFACE_H
Definition canrawsender.h:13
This class holds informations about all the columns in line and relationships beteewn them.
Definition newlinemanager.h:17
Definition crsguiinterface.h:12
virtual QWidget * mainWidget()=0
std::function< void()> remove_t
Definition crsguiinterface.h:18
virtual void initTableView(QAbstractItemModel &_tvModel)=0
virtual QModelIndexList getSelectedRows()=0
virtual void setAddCbk(const add_t &cb)=0
std::function< void()> add_t
Definition crsguiinterface.h:17
std::function< void()> dockUndock_t
Definition crsguiinterface.h:19
virtual void setRemoveCbk(const remove_t &cb)=0
virtual void setIndexWidget(const QModelIndex &index, QWidget *widget)=0
virtual void setDockUndockCbk(const dockUndock_t &cb)=0
virtual ~CRSGuiInterface()
Definition crsguiinterface.h:13