X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fviewwidget.hpp;h=02c842a84b8f592cdbb340b66e012df568468b85;hp=cfcbda43ff3b68db0679d6f4a44fd5e50017adf5;hb=6f925ba9d6faf1077b73c5a5808259576081716a;hpb=f4e57597347e47a4ea58fbdc7b0a22e07f1c0ede diff --git a/pv/view/viewwidget.hpp b/pv/view/viewwidget.hpp index cfcbda4..02c842a 100644 --- a/pv/view/viewwidget.hpp +++ b/pv/view/viewwidget.hpp @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #ifndef PULSEVIEW_PV_VIEWWIDGET_HPP @@ -25,6 +24,9 @@ #include +using std::shared_ptr; +using std::vector; + class QTouchEvent; namespace pv { @@ -47,16 +49,14 @@ protected: * if no view item is being hovered over. * @remarks the default implementation does nothing. */ - virtual void item_hover( - const std::shared_ptr &item); + virtual void item_hover(const shared_ptr &item); /** * Indicates the event an a view item has been clicked. * @param item the view item that has been clicked. * @remarks the default implementation does nothing. */ - virtual void item_clicked( - const std::shared_ptr &item); + virtual void item_clicked(const shared_ptr &item); /** * Returns true if the selection of row items allows dragging. @@ -95,7 +95,7 @@ protected: /** * Gets the items in the view widget. */ - virtual std::vector< std::shared_ptr > items() = 0; + virtual vector< shared_ptr > items() = 0; /** * Gets the first view item which has a hit-box that contains @c pt . @@ -103,8 +103,7 @@ protected: * @return the view item that has been found, or and empty * @c shared_ptr if no item was found. */ - virtual std::shared_ptr get_mouse_over_item( - const QPoint &pt) = 0; + virtual shared_ptr get_mouse_over_item(const QPoint &pt) = 0; /** * Handles left mouse button press events. @@ -143,7 +142,7 @@ protected: pv::views::TraceView::View &view_; QPoint mouse_point_; QPoint mouse_down_point_; - std::shared_ptr mouse_down_item_; + shared_ptr mouse_down_item_; bool item_dragging_; };