Skip to content

File buttonlistview.h#

File List > config > buttonlistview.h

Go to the documentation of this file.


// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors

#pragma once

#include "src/widgets/capture/capturetoolbutton.h"
#include <QListWidget>

class ButtonListView : public QListWidget
{
public:
    explicit ButtonListView(QWidget* parent = nullptr);

public slots:
    void selectAll();
    void updateComponents();

private slots:
    void reverseItemCheck(QListWidgetItem*);

protected:
    void initButtonList();

private:
    QList<CaptureTool::Type> m_listButtons;
    QMap<QString, CaptureTool::Type> m_buttonTypeByName;

    void updateActiveButtons(QListWidgetItem*);
};