ViewParamWidget.h 1.28 KB
Newer Older
1 2 3 4 5
#ifndef VIEWPARAMWIDGET_H
#define VIEWPARAMWIDGET_H

#include <QComboBox>
#include <QDockWidget>
6 7
#include <QFormLayout>
#include <QSignalMapper>
8
#include <QSpinBox>
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
#include <QTabWidget>
#include <QVBoxLayout>

#include "GlobalViewParams.h"
#include "SystemViewParams.h"

class UASInterface;

class ViewParamWidget : public QDockWidget
{
    Q_OBJECT

public:
    ViewParamWidget(GlobalViewParamsPtr& globalViewParams,
                    QMap<int, SystemViewParamsPtr>& systemViewParamMap,
                    QWidget* parent = 0, QWidget* mainWindow = 0);

    void setFollowCameraId(int id);

signals:

private slots:
31
    void overlayCreated(int systemId, const QString& name);
32
    void systemCreated(UASInterface* uas);
33
    void setpointsCheckBoxToggled(int state);
34
    void showImageryParamDialog(void);
35 36 37 38 39 40 41 42 43 44 45 46 47 48

private:
    void buildLayout(QVBoxLayout* layout);
    void addTab(int systemId);

    // view parameters
    GlobalViewParamsPtr mGlobalViewParams;
    QMap<int, SystemViewParamsPtr>& mSystemViewParamMap;

    // parent widget
    QWidget* mParent;

    // child widgets
    QComboBox* mFollowCameraComboBox;
49
    QSpinBox* mSetpointHistoryLengthSpinBox;
50
    QMap<int, QFormLayout*> mOverlayLayout;
51
    QTabWidget* mTabWidget;
52 53

    QSignalMapper* mOverlaySignalMapper;
54 55 56
};

#endif // VIEWPARAMWIDGET_H