From: Joel Holdsworth Date: Sat, 4 May 2013 10:25:19 +0000 (+0100) Subject: Derrived Signals from SelectableItem X-Git-Tag: pulseview-0.2.0~358 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=e0e90d8091d3e4f20c03de6015bcedc5e4568567 Derrived Signals from SelectableItem --- diff --git a/pv/view/selectableitem.h b/pv/view/selectableitem.h new file mode 100644 index 00000000..4bbd1f69 --- /dev/null +++ b/pv/view/selectableitem.h @@ -0,0 +1,38 @@ +/* + * 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, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef PULSEVIEW_PV_SELECTABLEITEM_H +#define PULSEVIEW_PV_SELECTABLEITEM_H + +#include + +class QAction; + +namespace pv { +namespace view { + +class SelectableItem +{ +}; + +} // namespace view +} // namespace pv + +#endif // PULSEVIEW_PV_SELECTABLEITEM_H diff --git a/pv/view/signal.h b/pv/view/signal.h index b53d0539..3a7a103d 100644 --- a/pv/view/signal.h +++ b/pv/view/signal.h @@ -33,6 +33,8 @@ #include +#include "selectableitem.h" + namespace pv { namespace data { @@ -41,7 +43,7 @@ class SignalData; namespace view { -class Signal +class Signal : public SelectableItem { private: static const int LabelHitPadding;