]> sigrok.org Git - pulseview.git/blobdiff - pv/view/viewitemowner.hpp
Change namespace for the trace view and implement ViewBase
[pulseview.git] / pv / view / viewitemowner.hpp
index 8d34059ad9fd9e9c37c54242ef16677e08ec22fd..d31df80ec7263caafe4b388a979849091c3fc719 100644 (file)
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#ifndef PULSEVIEW_PV_VIEW_VIEWITEMOWNER_HPP
-#define PULSEVIEW_PV_VIEW_VIEWITEMOWNER_HPP
+#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWITEMOWNER_HPP
+#define PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWITEMOWNER_HPP
 
 #include <memory>
 #include <vector>
@@ -30,7 +30,8 @@ namespace pv {
 
 class Session;
 
-namespace view {
+namespace views {
+namespace TraceView {
 
 class ViewItem;
 class View;
@@ -72,7 +73,7 @@ public:
        const_iterator end() const;
 
        /**
-        * Creates a list of decendant signals filtered by type.
+        * Creates a list of descendant signals filtered by type.
         */
        template<class T>
        std::vector< std::shared_ptr<T> > list_by_type() {
@@ -90,7 +91,8 @@ protected:
        item_list items_;
 };
 
-} // view
-} // pv
+} // namespace TraceView
+} // namespace views
+} // namespace pv
 
-#endif // PULSEVIEW_PV_VIEW_VIEWITEMOWNER_HPP
+#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWITEMOWNER_HPP