projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Segment: Rework append_samples() so it can handle large input
[pulseview.git]
/
pv
/
view
/
tracetreeitem.hpp
diff --git
a/pv/view/tracetreeitem.hpp
b/pv/view/tracetreeitem.hpp
index c41b67d75d1d2ab1a2dc503048d80d7c4241b63b..5b0bc6153aadabcdfe377b7e808707a600b9b9ab 100644
(file)
--- 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
* 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 <http://www.gnu.org/licenses/>.
*/
*/
-#ifndef PULSEVIEW_PV_VIEW_TRACETREEITEM_HPP
-#define PULSEVIEW_PV_VIEW_TRACETREEITEM_HPP
+#ifndef PULSEVIEW_PV_VIEW
S_TRACEVIEW
_TRACETREEITEM_HPP
+#define PULSEVIEW_PV_VIEW
S_TRACEVIEW
_TRACETREEITEM_HPP
#include <memory>
#include <memory>
@@
-27,13
+26,17
@@
#include "rowitem.hpp"
#include "rowitem.hpp"
+using std::enable_shared_from_this;
+using std::pair;
+
namespace pv {
namespace pv {
-namespace view {
+namespace views {
+namespace TraceView {
class TraceTreeItemOwner;
class TraceTreeItem : public RowItem,
class TraceTreeItemOwner;
class TraceTreeItem : public RowItem,
- public
std::enable_shared_from_this<pv::view::
TraceTreeItem>
+ public
enable_shared_from_this<
TraceTreeItem>
{
Q_OBJECT
Q_PROPERTY(int visual_v_offset
{
Q_OBJECT
Q_PROPERTY(int visual_v_offset
@@
-47,7
+50,7
@@
public:
TraceTreeItem();
/**
TraceTreeItem();
/**
- * Gets the owner this item in the view item hierachy.
+ * Gets the owner
of
this item in the view item hierachy.
*/
TraceTreeItemOwner* owner() const;
*/
TraceTreeItemOwner* owner() const;
@@
-91,7
+94,7
@@
public:
* Sets the owner this trace in the view trace hierachy.
* @param The new owner of the trace.
*/
* 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.
/**
* Gets the visual y-offset of the axis.
@@
-114,7
+117,7
@@
public:
* Computes the vertical extents of the contents of this row item.
* @return A pair containing the minimum and maximum y-values.
*/
* Computes the vertical extents of the contents of this row item.
* @return A pair containing the minimum and maximum y-values.
*/
- virtual
std::
pair<int, int> v_extents() const = 0;
+ virtual pair<int, int> v_extents() const = 0;
protected:
TraceTreeItemOwner *owner_;
protected:
TraceTreeItemOwner *owner_;
@@
-126,7
+129,8
@@
private:
QPropertyAnimation v_offset_animation_;
};
QPropertyAnimation v_offset_animation_;
};
-} // namespace view
+} // namespace TraceView
+} // namespace views
} // namespace pv
} // namespace pv
-#endif // PULSEVIEW_PV_VIEW_TRACETREEITEM_HPP
+#endif // PULSEVIEW_PV_VIEW
S_TRACEVIEW
_TRACETREEITEM_HPP