virtual int owner_v_offset() const = 0;
+ /**
+ * Returns the number of nested parents that this row item owner has.
+ */
+ virtual unsigned int depth() const = 0;
+
/**
* Returns a list of row items owned by this object.
*/
return _owner ? layout_v_offset() + _owner->owner_v_offset() : 0;
}
+unsigned int TraceGroup::depth() const
+{
+ return _owner ? _owner->depth() + 1 : 0;
+}
+
void TraceGroup::on_ungroup()
{
const vector< shared_ptr<RowItem> > items(
*/
int owner_v_offset() const;
+ /**
+ * Returns the number of nested parents that this row item owner has.
+ */
+ unsigned int depth() const;
+
public:
void appearance_changed(bool label, bool content);
return -_v_offset;
}
+unsigned int View::depth() const
+{
+ return 0;
+}
+
void View::zoom(double steps)
{
zoom(steps, _viewport->width() / 2);
double offset() const;
int owner_v_offset() const;
+ /**
+ * Returns the number of nested parents that this row item owner has.
+ */
+ unsigned int depth() const;
+
void zoom(double steps);
void zoom(double steps, int offset);