i0mapmon.h 1012 Bytes
Newer Older
Giacomo Strangolino's avatar
Giacomo Strangolino committed
1
2
3
4
5
6
7
8
9
#ifndef I0mapmon_H
#define I0mapmon_H

#include <QWidget>

// cumbia
#include <qulogimpl.h>
#include <cucontrolsfactorypool.h>
class CumbiaPool;
Giacomo Strangolino's avatar
Giacomo Strangolino committed
10
class CuData;
Giacomo Strangolino's avatar
Giacomo Strangolino committed
11
12
// cumbia

Giacomo Strangolino's avatar
Giacomo Strangolino committed
13
14
class CheckableComboBoxModel;

Giacomo Strangolino's avatar
Giacomo Strangolino committed
15
16
17
18
19
20
21
22
23
24
25
26
namespace Ui {
class I0mapmon;
}

class I0mapmon : public QWidget
{
    Q_OBJECT

public:
    explicit I0mapmon(CumbiaPool *cu_p, QWidget *parent = 0);
    ~I0mapmon();

27
private slots:
28
    void onLabelReady(const QStringList& n);
29
    void applyWavelenX();
Giacomo Strangolino's avatar
Giacomo Strangolino committed
30
31
32
    void onYChanged(const QString& y);
    void onWlensChanged(const CuData &s);
    void onWlenSelectionChanged(const QString &wl, bool enab);
Giacomo Strangolino's avatar
Giacomo Strangolino committed
33
    void setYMinMax();
Giacomo Strangolino's avatar
Giacomo Strangolino committed
34
35

    void m_plot_reconf();
36

Giacomo Strangolino's avatar
Giacomo Strangolino committed
37
38
39
40
41
42
43
44
private:
    Ui::I0mapmon *ui;

    // cumbia
    CumbiaPool *cu_pool;
    QuLogImpl m_log_impl;
    CuControlsFactoryPool m_ctrl_factory_pool;
    // cumbia
45
46

    int m_fel0x;
Giacomo Strangolino's avatar
Giacomo Strangolino committed
47
48
49
50
51

    CheckableComboBoxModel* m_cb_model;

    // methods
    void m_setup_x_list();
Giacomo Strangolino's avatar
Giacomo Strangolino committed
52

Giacomo Strangolino's avatar
Giacomo Strangolino committed
53
    QMap<int, double> m_selected_wlens() const;
54
    QStringList m_ynames;
Giacomo Strangolino's avatar
Giacomo Strangolino committed
55
56
57
};

#endif // I0mapmon_H