]> sigrok.org Git - pulseview.git/blobdiff - pv/views/viewbase.hpp
Implement adding different view types
[pulseview.git] / pv / views / viewbase.hpp
index 09c5716ae1cb82443cd13a243a2f714c73c76198..0c7b0463661d3019943859883bff3b14987962e4 100644 (file)
@@ -50,12 +50,17 @@ class Signal;
 
 namespace views {
 
+// When adding an entry here, don't forget to update ViewTypeNames as well
 enum ViewType {
        ViewTypeTrace,
+#ifdef ENABLE_DECODE
        ViewTypeDecoderOutput,
-       ViewTypeTabularDecode
+#endif
+       ViewTypeCount  // Indicates how many view types there are, must always be last
 };
 
+extern const char* ViewTypeNames[ViewTypeCount];
+
 class ViewBase : public QWidget
 {
        Q_OBJECT