X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Ftracetreeitem.hpp;h=5b0bc6153aadabcdfe377b7e808707a600b9b9ab;hb=0bd39c0c6fcf31063fca364bfdb23d3d40914ba1;hp=5e60ffcb2e568f959bff3f4ab7f6d5470b1799f7;hpb=7c8b6ad299f4b4cfd5299953aff932316893a372;p=pulseview.git
diff --git a/pv/view/tracetreeitem.hpp b/pv/view/tracetreeitem.hpp
index 5e60ffc..5b0bc61 100644
--- a/pv/view/tracetreeitem.hpp
+++ b/pv/view/tracetreeitem.hpp
@@ -14,12 +14,11 @@
* 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_VIEW_TRACETREEITEM_HPP
-#define PULSEVIEW_PV_VIEW_TRACETREEITEM_HPP
+#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_TRACETREEITEM_HPP
+#define PULSEVIEW_PV_VIEWS_TRACEVIEW_TRACETREEITEM_HPP
#include
@@ -27,13 +26,17 @@
#include "rowitem.hpp"
+using std::enable_shared_from_this;
+using std::pair;
+
namespace pv {
-namespace view {
+namespace views {
+namespace TraceView {
class TraceTreeItemOwner;
class TraceTreeItem : public RowItem,
- public std::enable_shared_from_this
+ public enable_shared_from_this
{
Q_OBJECT
Q_PROPERTY(int visual_v_offset
@@ -46,6 +49,16 @@ public:
*/
TraceTreeItem();
+ /**
+ * Gets the owner of this item in the view item hierachy.
+ */
+ TraceTreeItemOwner* owner() const;
+
+ /**
+ * Selects or deselects the signal.
+ */
+ void select(bool select = true);
+
/**
* Gets the vertical layout offset of this signal.
*/
@@ -77,16 +90,11 @@ public:
*/
void animate_to_layout_v_offset();
- /**
- * Gets the owner this trace in the view trace hierachy.
- */
- pv::view::TraceTreeItemOwner* owner() const;
-
/**
* Sets the owner this trace in the view trace hierachy.
* @param The new owner of the trace.
*/
- void set_owner(pv::view::TraceTreeItemOwner *owner);
+ void set_owner(TraceTreeItemOwner *owner);
/**
* Gets the visual y-offset of the axis.
@@ -109,10 +117,10 @@ public:
* Computes the vertical extents of the contents of this row item.
* @return A pair containing the minimum and maximum y-values.
*/
- virtual std::pair v_extents() const = 0;
+ virtual pair v_extents() const = 0;
protected:
- pv::view::TraceTreeItemOwner *owner_;
+ TraceTreeItemOwner *owner_;
int layout_v_offset_;
int visual_v_offset_;
@@ -121,7 +129,8 @@ private:
QPropertyAnimation v_offset_animation_;
};
-} // namespace view
+} // namespace TraceView
+} // namespace views
} // namespace pv
-#endif // PULSEVIEW_PV_VIEW_TRACETREEITEM_HPP
+#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_TRACETREEITEM_HPP