.. _program_listing_file_src_dialog_paletteeditdialog.h: Program Listing for File paletteeditdialog.h ============================================ |exhale_lsh| :ref:`Return to documentation for file ` (``src/dialog/paletteeditdialog.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /* * PaletteDialog - Dialog for creating and editing Palettes. */ #ifndef PALETTEEDITDIALOG_H #define PALETTEEDITDIALOG_H #include #include "controller/palettecontroller.h" #include "widget/palettecontrolwidget.h" namespace Ui { class PaletteEditDialog; } namespace PixelMaestroStudio { class PaletteEditDialog : public QDialog { Q_OBJECT public: explicit PaletteEditDialog(PaletteControlWidget* parent, PaletteController::PaletteWrapper* target_palette_wrapper = nullptr); ~PaletteEditDialog(); private slots: void accept(); void on_baseColorButton_clicked(); void on_targetColorButton_clicked(); void on_typeComboBox_currentIndexChanged(int index); void on_numColorsSpinBox_valueChanged(int arg1); void on_reverseCheckBox_stateChanged(int arg1); private: Colors::RGB base_color_ = Colors::RGB(0, 0, 0); bool colors_changed_ = false; Colors::RGB target_color_ = Colors::RGB(0, 0, 0); PaletteController::PaletteWrapper* target_palette_ = nullptr; Ui::PaletteEditDialog *ui; }; } #endif // PALETTEEDITDIALOG_H