#ifndef QGCTOOLWIDGETITEM_H#define QGCTOOLWIDGETITEM_H#include <QWidget>#include <QAction>classQGCToolWidgetItem:publicQWidget{Q_OBJECTpublic:explicitQGCToolWidgetItem(QWidget*parent=0);~QGCToolWidgetItem();intcomponent(){return_component;}publicslots:virtualvoidstartEditMode(){}virtualvoidendEditMode(){}virtualvoidsetComponent(intcomp){_component=comp;}protected:QAction*startEditAction;QAction*stopEditAction;boolisInEditMode;int_component;///< The MAV component (the process or device ID)voidcontextMenuEvent(QContextMenuEvent*event);};#endif // QGCTOOLWIDGETITEM_H