File indexing completed on 2025-01-26 04:10:27

0001 /*
0002  *  dlg_grow_selection.h -- part of Krita
0003  *
0004  *  SPDX-FileCopyrightText: 2006 Michael Thaler <michael.thaler@physik.tu-muenchen.de>
0005  *  SPDX-FileCopyrightText: 2013 Juan Palacios <jpalaciosdev@gmail.com>
0006  *
0007  *  SPDX-License-Identifier: GPL-2.0-or-later
0008  */
0009 #ifndef DLG_GROW_SELECTION_H
0010 #define DLG_GROW_SELECTION_H
0011 
0012 #include "ui_wdg_grow_selection.h"
0013 #include <operations/kis_operation_ui_widget.h>
0014 
0015 class KisViewManager;
0016 class WdgGrowSelection : public KisOperationUIWidget, public Ui::WdgGrowSelection
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     WdgGrowSelection(QWidget *parent, KisViewManager* view, KisOperationConfigurationSP config);
0022 
0023     void getConfiguration(KisOperationConfigurationSP config) override;
0024 
0025 private Q_SLOTS:
0026     void slotGrowValueChanged(int value);
0027     void slotGrowValueChanged(double value);
0028     void slotUnitChanged(int index);
0029 
0030 private:
0031     void updateGrowUIValue(double value);
0032 
0033     double m_resolution;
0034     int m_growValue;
0035 };
0036 
0037 #endif // DLG_GROW_SELECTION_H