30 #ifndef UAVGADGETVIEW_H
31 #define UAVGADGETVIEW_H
33 #include <QtCore/QList>
34 #include <QtCore/QString>
35 #include <QtCore/QSettings>
39 #include <QVBoxLayout>
40 #include <QStackedLayout>
41 #include <QtCore/QPointer>
57 class UAVGadgetManager;
67 QWidget *parent =
nullptr,
bool restoring =
false);
86 QPointer<UAVGadgetManager> m_uavGadgetManager;
87 QPointer<IUAVGadget> m_uavGadget;
89 QComboBox *m_defaultToolBar;
90 QWidget *m_currentToolBar;
91 QWidget *m_activeToolBar;
92 QComboBox *m_uavGadgetList;
93 QToolButton *m_closeButton;
97 QLabel *m_activeLabel;
101 #endif // UAVGADGETVIEW_H
void doReplaceGadget(int index)
Slot called when the user changes the selected gadget on the view's dropbox.
void showToolbar(bool show)
int indexOfClassId(QString classId)
IUAVGadget * gadget() const
bool hasGadget(IUAVGadget *uavGadget) const
void setGadget(IUAVGadget *uavGadget)
UAVGadgetView(UAVGadgetManager *uavGadgetManager, IUAVGadget *uavGadget=nullptr, QWidget *parent=nullptr, bool restoring=false)
void selectionActivated(int index, bool forceLoadConfiguration)
Function used to select the gadget to show on this view.