]> sigrok.org Git - pulseview.git/blobdiff - pv/view/view.h
View: Create trace groups from channel groups
[pulseview.git] / pv / view / view.h
index eb60ab1a7735d9f3e51e2f96f00928fa5445b4da..8664ba8de28a368257b88836b09a69559f9a2066 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <memory>
 #include <set>
+#include <unordered_map>
 #include <vector>
 
 #include <QAbstractScrollArea>
@@ -195,6 +196,17 @@ private:
         */
        QRectF label_rect(int right);
 
+       static bool add_channels_to_owner(
+               const std::vector< std::shared_ptr<sigrok::Channel> > &channels,
+               RowItemOwner *owner, int &offset,
+               std::unordered_map<std::shared_ptr<sigrok::Channel>,
+                       std::shared_ptr<Signal> > &signal_map,
+               std::function<bool (std::shared_ptr<RowItem>)> filter_func =
+                       std::function<bool (std::shared_ptr<RowItem>)>());
+
+       static void apply_offset(
+               std::shared_ptr<RowItem> row_item, int &offset);
+
 private:
        bool eventFilter(QObject *object, QEvent *event);