CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
cansignalviewerguiint.h
Go to the documentation of this file.
1#ifndef CANSIGNALVIEWERGUIINT_H
2#define CANSIGNALVIEWERGUIINT_H
3
4#include <Qt>
5#include <functional>
6
7class QWidget;
8class QAbstractItemModel;
9
11 typedef std::function<void()> clear_t;
12 typedef std::function<void()> dockUndock_t;
13 typedef std::function<void(int)> sectionClicked_t;
14 typedef std::function<void(bool)> filter_t;
15
16 virtual void setClearCbk(const clear_t& cb) = 0;
17 virtual void setDockUndockCbk(const dockUndock_t& cb) = 0;
18 virtual void setSectionClikedCbk(const sectionClicked_t& cb) = 0;
19 virtual void setFilterCbk(const filter_t& cb) = 0;
20
22 {
23 }
24
25 virtual QWidget* mainWidget() = 0;
26 virtual void setModel(QAbstractItemModel* model) = 0;
27 virtual void initTableView(QAbstractItemModel& tvModel) = 0;
28 virtual bool isViewFrozen() = 0;
29 virtual void setViewFrozen(bool state) = 0;
30 virtual void scrollToBottom() = 0;
31 virtual Qt::SortOrder getSortOrder() = 0;
32 virtual QString getClickedColumn(int ndx) = 0;
33 virtual void setSorting(int sortNdx, Qt::SortOrder order) = 0;
34 virtual QString getWindowTitle() = 0;
35 virtual bool isColumnHidden(int ndx) = 0;
36 virtual void getColumnProper(int ndx, int& vIdx) = 0;
37 virtual void setColumnProper(int vIdxFrom, int vIdxTo) = 0;
38};
39
40#endif // CANSIGNALVIEWERGUIINT_H
Definition cansignalviewerguiint.h:10
virtual void setDockUndockCbk(const dockUndock_t &cb)=0
virtual ~CanSignalViewerGuiInt()
Definition cansignalviewerguiint.h:21
virtual void setModel(QAbstractItemModel *model)=0
virtual void getColumnProper(int ndx, int &vIdx)=0
virtual void initTableView(QAbstractItemModel &tvModel)=0
virtual QWidget * mainWidget()=0
virtual void scrollToBottom()=0
std::function< void(bool)> filter_t
Definition cansignalviewerguiint.h:14
virtual void setSectionClikedCbk(const sectionClicked_t &cb)=0
virtual QString getClickedColumn(int ndx)=0
virtual bool isViewFrozen()=0
virtual void setSorting(int sortNdx, Qt::SortOrder order)=0
virtual Qt::SortOrder getSortOrder()=0
std::function< void()> dockUndock_t
Definition cansignalviewerguiint.h:12
virtual void setViewFrozen(bool state)=0
std::function< void(int)> sectionClicked_t
Definition cansignalviewerguiint.h:13
std::function< void()> clear_t
Definition cansignalviewerguiint.h:11
virtual void setClearCbk(const clear_t &cb)=0
virtual QString getWindowTitle()=0
virtual void setColumnProper(int vIdxFrom, int vIdxTo)=0
virtual void setFilterCbk(const filter_t &cb)=0
virtual bool isColumnHidden(int ndx)=0