X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftracegroup.hpp;h=80fc5fc00ccd46ac848e4a18478ddca3034e2a38;hp=f89ea437f33c8026ad1ab9898055bf145b9867d8;hb=efdec55aec1a137460fa362a381ed1904182bfed;hpb=2b81ae4682ade4109ffa442794de36ceb32045eb diff --git a/pv/view/tracegroup.hpp b/pv/view/tracegroup.hpp index f89ea437..80fc5fc0 100644 --- a/pv/view/tracegroup.hpp +++ b/pv/view/tracegroup.hpp @@ -14,20 +14,20 @@ * 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_TRACEGROUP_H -#define PULSEVIEW_PV_VIEW_TRACEGROUP_H +#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_TRACEGROUP_HPP +#define PULSEVIEW_PV_VIEWS_TRACEVIEW_TRACEGROUP_HPP -#include "rowitem.hpp" -#include "rowitemowner.hpp" +#include "tracetreeitem.hpp" +#include "tracetreeitemowner.hpp" namespace pv { -namespace view { +namespace views { +namespace TraceView { -class TraceGroup : public RowItem, public RowItemOwner +class TraceGroup : public TraceTreeItem, public TraceTreeItemOwner { Q_OBJECT @@ -61,12 +61,12 @@ public: /** * Returns the view of the owner. */ - virtual pv::view::View* view(); + virtual View* view(); /** * Returns the view of the owner. */ - virtual const pv::view::View* view() const; + virtual const View* view() const; /** * Computes the vertical extents of the contents of this row item. @@ -81,15 +81,14 @@ public: * area. * @param hover true if the label is being hovered over by the mouse. */ - void paint_label(QPainter &p, int right, bool hover); + void paint_label(QPainter &p, const QRect &rect, bool hover); /** * Computes the outline rectangle of a label. - * @param right the x-coordinate of the right edge of the header - * area. + * @param rect the rectangle of the header area. * @return Returns the rectangle of the signal label. */ - QRectF label_rect(int right) const; + QRectF label_rect(const QRectF &rect) const; /** * Determines if a point is in the header label rect. @@ -120,7 +119,7 @@ public: void ungroup(); public: - void appearance_changed(bool label, bool content); + void row_item_appearance_changed(bool label, bool content); void extents_changed(bool horz, bool vert); @@ -128,7 +127,8 @@ private Q_SLOTS: void on_ungroup(); }; -} // view -} // pv +} // namespace TraceView +} // namespace views +} // namespace pv -#endif // PULSEVIEW_PV_VIEW_TRACEGROUP_H +#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_TRACEGROUP_HPP