CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
plugin_type.h
Go to the documentation of this file.
1#ifndef PLUGIN_TYPE_H_AGCRIYX2
2#define PLUGIN_TYPE_H_AGCRIYX2
3
4#include <QColor>
5#include <QCheckBox>
6#include <typestring.hh>
7
8template<typename Name, int Color, int Space>
9struct PluginBase {
10 static const char* sectionName()
11 {
12 return Name::data();
13 }
14
15 static QColor sectionColor()
16 {
17 return { Color };
18 }
19
20 static int spacing()
21 {
22 return Space;
23 }
24};
25
26#endif /* end of include guard: PLUGIN_TYPE_H_AGCRIYX2 */
Definition plugin_type.h:9
static int spacing()
Definition plugin_type.h:20
static const char * sectionName()
Definition plugin_type.h:10
static QColor sectionColor()
Definition plugin_type.h:15