Go to the documentation of this file.00001
00004 #ifndef BPSTABLEVIEW_H
00005 #define BPSTABLEVIEW_H
00006
00007 #include "bpsgui_global.h"
00008 #include <QTableView>
00009
00019 class BPSGUI_EXPORT BpsTableView : public QTableView
00020 {
00021 Q_OBJECT
00022 BPS_PRIVATE(BpsTableView)
00023
00024 public:
00025
00030 BpsTableView(QWidget * aParent = 0 );
00031
00032 virtual ~BpsTableView();
00033
00037 virtual QSize sizeHint() const;
00038
00043 void setSizeHint(const QSize& aSize);
00044
00048 QVariant saveHorizontalHeaderState();
00049
00054 void restoreHorizontalHeaderState(const QVariant& aData);
00055
00059 QList<int> selectedRowNumbers() const;
00060
00061 signals:
00062
00067 void focusInOutEvent(bool aFocusIn);
00068
00074 void contextMenuRequested(const QPoint& aPosition, const QModelIndex& aIndex);
00075
00083 void dataGotChanged(const QModelIndex& aTopLeft, const QModelIndex& aBottomRight);
00084
00086 protected:
00087 virtual void focusInEvent(QFocusEvent* aEvent);
00088 virtual void focusOutEvent (QFocusEvent* aEvent);
00089 virtual void contextMenuEvent(QContextMenuEvent* aEvent);
00090 virtual void keyPressEvent(QKeyEvent* aEvent);
00091 protected slots:
00092 virtual void dataChanged(const QModelIndex& aTopLeft, const QModelIndex& aBottomRight);
00093 private slots:
00094 void headerContextMenu(const QPoint& aPoint);
00095 void hideShowColumn(bool aShow);
00097
00098 };
00099
00100 #endif // BPSTABLEVIEW_H