X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fmarginwidget.hpp;fp=pv%2Fview%2Fmarginwidget.hpp;h=0000000000000000000000000000000000000000;hb=1573bf16ba50d1c023ad3a9ce596f0ab6eaeacff;hp=ebe8cfc08b780ce06f3d4697d1ef277f6d2100c7;hpb=4c7a19d3d7049bcc9fb3185ce2bc91333a7ca9e1;p=pulseview.git diff --git a/pv/view/marginwidget.hpp b/pv/view/marginwidget.hpp deleted file mode 100644 index ebe8cfc..0000000 --- a/pv/view/marginwidget.hpp +++ /dev/null @@ -1,74 +0,0 @@ -/* - * This file is part of the PulseView project. - * - * Copyright (C) 2013 Joel Holdsworth - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * 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, see . - */ - -#ifndef PULSEVIEW_PV_MARGINWIDGET_HPP -#define PULSEVIEW_PV_MARGINWIDGET_HPP - -#include - -#include - -#include "viewwidget.hpp" - -using std::shared_ptr; - -namespace pv { -namespace views { -namespace TraceView { - -class ViewItem; - -class MarginWidget : public ViewWidget -{ - Q_OBJECT - -public: - MarginWidget(View &parent); - - /** - * The extended area that the margin widget would like to be sized to. - * @remarks This area is the area specified by sizeHint, extended by - * the area to overlap the viewport. - */ - virtual QSize extended_size_hint() const = 0; - -protected: - /** - * Indicates the event an a view item has been clicked. - * @param item the view item that has been clicked. - */ - virtual void item_clicked(const shared_ptr &item); - - /** - * Shows the popup of a the specified @c ViewItem . - * @param item The item to show the popup for. - */ - void show_popup(const shared_ptr &item); - -protected: - virtual void contextMenuEvent(QContextMenuEvent *event); - - virtual void keyPressEvent(QKeyEvent *event); -}; - -} // namespace TraceView -} // namespace views -} // namespace pv - -#endif // PULSEVIEW_PV_MARGINWIDGET_HPP