Rev | Line | |
---|
[4] | 1 | #ifndef _QCHANNELMANAGERWIDGET_H_ |
---|
| 2 | #define _QCHANNELMANAGERWIDGET_H_ |
---|
| 3 | |
---|
| 4 | #include <QtGui> |
---|
| 5 | #include <QtXml> |
---|
| 6 | |
---|
| 7 | #include "ui_qchannelmanagerwidget.h" |
---|
| 8 | |
---|
| 9 | namespace projection |
---|
| 10 | { |
---|
| 11 | class ProjectionModel; |
---|
| 12 | class Channel; |
---|
| 13 | |
---|
| 14 | class QChannelManagerWidget : public QWidget |
---|
| 15 | { |
---|
| 16 | Q_OBJECT |
---|
| 17 | |
---|
| 18 | public: |
---|
| 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 | |
---|
| 31 | public slots: |
---|
| 32 | |
---|
| 33 | void updateChannelNamesGUI(); |
---|
| 34 | void updateGUI(); |
---|
| 35 | |
---|
| 36 | private 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 | |
---|
| 45 | private: |
---|
| 46 | |
---|
| 47 | void addChannelToTable(int row, Channel* pChannel); |
---|
| 48 | |
---|
| 49 | private: |
---|
| 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.