]> sigrok.org Git - pulseview.git/blobdiff - pv/views/tabular_decoder/view.hpp
TabularDecView: Some fixes and refactorings
[pulseview.git] / pv / views / tabular_decoder / view.hpp
index 534e3d9d99eb41cf87d80fc0f281fe1a72a2de4d..2d0ce54a1a50feda50db19aefe04b44016b12226 100644 (file)
@@ -17,8 +17,8 @@
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef PULSEVIEW_PV_VIEWS_TABULARDECODER_VIEW_HPP
-#define PULSEVIEW_PV_VIEWS_TABULARDECODER_VIEW_HPP
+#ifndef PULSEVIEW_PV_VIEWS_TABULAR_DECODER_VIEW_HPP
+#define PULSEVIEW_PV_VIEWS_TABULAR_DECODER_VIEW_HPP
 
 #include <QAction>
 #include <QCheckBox>
@@ -114,11 +114,14 @@ public:
 
        void set_sample_range(uint64_t start_sample, uint64_t end_sample);
 
+       void enable_range_filtering(bool value);
+
 protected:
        bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
 
 private:
        uint64_t range_start_sample_, range_end_sample_;
+       bool range_filtering_enabled_;
 };
 
 
@@ -208,4 +211,4 @@ private:
 } // namespace views
 } // namespace pv
 
-#endif // PULSEVIEW_PV_VIEWS_TABULARDECODER_VIEW_HPP
+#endif // PULSEVIEW_PV_VIEWS_TABULAR_DECODER_VIEW_HPP