]> sigrok.org Git - pulseview.git/blobdiff - pv/views/decoder_output/view.hpp
DecoderOutputView: Implement saving
[pulseview.git] / pv / views / decoder_output / view.hpp
index 28c7e9066ae27960d8b321919c8f2ec472ac2d13..a6362ede7ac59646e1b08e43124c741abaab96d9 100644 (file)
@@ -41,7 +41,9 @@ namespace decoder_output {
 // When adding an entry here, don't forget to update SaveTypeNames as well
 enum SaveType {
        SaveTypeBinary,
-       SaveTypeHexDump,
+       SaveTypeHexDumpPlain,
+       SaveTypeHexDumpWithOffset,
+       SaveTypeHexDumpComplete,
        SaveTypeCount  // Indicates how many save types there are, must always be last
 };
 
@@ -77,7 +79,7 @@ private:
        void update_data();
 
        void save_data() const;
-       void save_data_as_hex_dump() const;
+       void save_data_as_hex_dump(bool with_offset=false, bool with_ascii=false) const;
 
 private Q_SLOTS:
        void on_selected_decoder_changed(int index);