Skip to main content

src/WhiskerToolbox/DataViewer_Widget/UI/SpikeSorterKeyNumberingDialog.hpp

src/WhiskerToolbox/DataViewer_Widget/UI/SpikeSorterKeyNumberingDialog.hpp

Dialog for selecting series key numbering when loading a SpikeSorter config.

Classes

Name
class SpikeSorterKeyNumberingDialog
Minimal dialog for SpikeSorter series key numbering selection.

Types

Name
enum class SpikeSorterKeyNumberingMode { AutoDetect = 0, OneBased = 1, ZeroBased = 2}
Key numbering mode for mapping series suffixes to electrode channels.

Types Documentation

enum SpikeSorterKeyNumberingMode

Enumerator Value Description
AutoDetect 0
OneBased 1
ZeroBased 2

Key numbering mode for mapping series suffixes to electrode channels.

Source code



#ifndef SPIKE_SORTER_KEY_NUMBERING_DIALOG_HPP
#define SPIKE_SORTER_KEY_NUMBERING_DIALOG_HPP

#include <QComboBox>
#include <QDialog>
#include <QDialogButtonBox>
#include <QLabel>
#include <QVBoxLayout>

enum class SpikeSorterKeyNumberingMode {
    AutoDetect = 0,
    OneBased = 1,
    ZeroBased = 2
};

class SpikeSorterKeyNumberingDialog : public QDialog {
    Q_OBJECT
public:
    explicit SpikeSorterKeyNumberingDialog(
            QString const & group_name,
            bool auto_detected_one_based,
            QWidget * parent = nullptr);

    [[nodiscard]] SpikeSorterKeyNumberingMode numberingMode() const;

    [[nodiscard]] bool keyOneBased(bool auto_detected_one_based) const;

private:
    QComboBox * _numbering_combo{nullptr};
};

#endif// SPIKE_SORTER_KEY_NUMBERING_DIALOG_HPP

Updated on 2026-11-13 at 20:25:45 +0000