source: projectionDesigner/trunk/projdesigner/include/gui/QChannelManagerWidget.h @ 54

Last change on this file since 54 was 4, checked in by Torben Dannhauer, 15 years ago
File size: 1.2 KB
Line 
1#ifndef _QCHANNELMANAGERWIDGET_H_
2#define _QCHANNELMANAGERWIDGET_H_
3
4#include <QtGui>
5#include <QtXml>
6
7#include "ui_qchannelmanagerwidget.h"
8
9namespace projection
10{
11class ProjectionModel;
12class Channel;
13
14class QChannelManagerWidget : public QWidget
15{
16    Q_OBJECT
17
18public:
19
20    QChannelManagerWidget(QWidget* pParent=0, Qt::WFlags flag=0);
21    virtual ~QChannelManagerWidget();
22
23    void setModel(ProjectionModel* pModel);
24
25    void selectChannel(int index);
26    int getSelectedChannel() const;
27
28    bool initFromDOMElement(const QDomElement& element);
29    QDomElement domElement(QDomDocument& doc) const;
30
31public slots:
32
33    void updateChannelNamesGUI();
34    void updateGUI();
35
36private slots:
37
38    void on_addButton_clicked();
39    void on_removeButton_clicked();
40    void on_channelTable_currentCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn);
41    void on_channelTable_itemChanged(QTableWidgetItem* pItem);
42    void channelTableHeaderClicked(int index);
43    void channelStateChanged();
44
45private:
46
47    void addChannelToTable(int row, Channel* pChannel);
48
49private:
50
51    Ui::QChannelManagerWidget ui;
52
53    ProjectionModel* m_pModel;
54};
55
56}; // projection
57
58#endif // _QCHANNELMANAGERWIDGET_H_
Note: See TracBrowser for help on using the repository browser.