2008-05-03 09:37:10 -05:00
|
|
|
#ifndef _PORT_STATS_FILTER_DIALOG_H
|
|
|
|
#define _PORT_STATS_FILTER_DIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QAbstractItemModel>
|
2008-05-25 06:30:30 -05:00
|
|
|
#include <QStandardItemModel>
|
|
|
|
#include "ui_portstatsfilter.h"
|
2008-05-03 09:37:10 -05:00
|
|
|
#include "portgrouplist.h"
|
|
|
|
|
|
|
|
class PortStatsFilterDialog : public QDialog, public Ui::PortStatsFilterDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2008-05-25 06:30:30 -05:00
|
|
|
PortStatsFilterDialog(QWidget *parent = 0);
|
|
|
|
QList<uint> getItemList(bool* ok, QAbstractItemModel *model,
|
|
|
|
Qt::Orientation orientation = Qt::Vertical,
|
|
|
|
QList<uint> initial = QList<uint>());
|
|
|
|
|
|
|
|
private:
|
|
|
|
enum ItemRole {
|
|
|
|
PositionRole = Qt::UserRole + 1
|
|
|
|
};
|
|
|
|
QStandardItemModel mUnselected;
|
|
|
|
QStandardItemModel mSelected;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_tbSelectIn_clicked();
|
|
|
|
void on_tbSelectOut_clicked();
|
2009-02-12 11:07:19 -06:00
|
|
|
void on_lvUnselected_doubleClicked(const QModelIndex &index);
|
|
|
|
void on_lvSelected_doubleClicked(const QModelIndex &index);
|
2008-05-03 09:37:10 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|