class QTouchEvent;
namespace pv {
-namespace view {
-
-enum ViewType {
- TraceView,
- TabularDecodeView
-};
+namespace views {
+namespace TraceView {
class View;
class ViewItem;
* @remarks the default implementation does nothing.
*/
virtual void item_hover(
- const std::shared_ptr<pv::view::ViewItem> &item);
+ const std::shared_ptr<ViewItem> &item);
/**
* Indicates the event an a view item has been clicked.
* @remarks the default implementation does nothing.
*/
virtual void item_clicked(
- const std::shared_ptr<pv::view::ViewItem> &item);
+ const std::shared_ptr<ViewItem> &item);
/**
* Returns true if the selection of row items allows dragging.
/**
* Gets the items in the view widget.
*/
- virtual std::vector< std::shared_ptr<pv::view::ViewItem> > items() = 0;
+ virtual std::vector< std::shared_ptr<ViewItem> > items() = 0;
/**
* Gets the first view item which has a hit-box that contains @c pt .
* @return the view item that has been found, or and empty
* @c shared_ptr if no item was found.
*/
- virtual std::shared_ptr<pv::view::ViewItem> get_mouse_over_item(
+ virtual std::shared_ptr<ViewItem> get_mouse_over_item(
const QPoint &pt) = 0;
/**
void selection_changed();
protected:
- pv::view::View &view_;
+ pv::views::TraceView::View &view_;
QPoint mouse_point_;
QPoint mouse_down_point_;
std::shared_ptr<ViewItem> mouse_down_item_;
bool item_dragging_;
};
-} // namespace view
+} // namespace TraceView
+} // namespace views
} // namespace pv
#endif // PULSEVIEW_PV_VIEWWIDGET_HPP