X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fselectableitem.cpp;fp=pv%2Fview%2Fselectableitem.cpp;h=517b6879120c2b71f34670df4a23b1caa154cae0;hb=f1283456ae0859990ccd914f8c147064345df13f;hp=0000000000000000000000000000000000000000;hpb=2a2512b21581ea346fea7d96bd3deeb37f1cfed4;p=pulseview.git diff --git a/pv/view/selectableitem.cpp b/pv/view/selectableitem.cpp new file mode 100644 index 00000000..517b6879 --- /dev/null +++ b/pv/view/selectableitem.cpp @@ -0,0 +1,42 @@ +/* + * 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 + */ + +#include "selectableitem.h" + +namespace pv { +namespace view { + +SelectableItem::SelectableItem() : + _selected(false) +{ +} + +bool SelectableItem::selected() const +{ + return _selected; +} + +void SelectableItem::select(bool select) +{ + _selected = select; +} + +} // namespace view +} // namespace pv