File colorpickereditor.h#
File List > config > colorpickereditor.h
Go to the documentation of this file.
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2022 Dearsh Oberoi
#pragma once
#include "QtColorWidgets/color_wheel.hpp"
#include "src/utils/confighandler.h"
#include <QWidget>
class ColorPickerEditMode;
class QLabel;
class QPushButton;
class QLineEdit;
class QColor;
class QGridLayout;
class ColorPickerEditor : public QWidget
{
Q_OBJECT
public:
explicit ColorPickerEditor(QWidget* parent = nullptr);
private slots:
void onAddPreset();
void onDeletePreset();
void onUpdatePreset();
private:
void addPreset();
void deletePreset();
void updatePreset();
ColorPickerEditMode* m_colorpicker;
color_widgets::ColorWheel* m_colorWheel;
QLabel* m_colorEditLabel;
QLineEdit* m_colorEdit;
QPushButton* m_deletePresetButton;
QPushButton* m_updatePresetButton;
QLineEdit* m_colorInput;
QLabel* m_addPresetLabel;
QPushButton* m_addPresetButton;
QColor m_color;
int m_selectedIndex;
QVector<QColor> m_colorList;
ConfigHandler m_config;
QGridLayout* m_gLayout;
};