File indexing completed on 2025-01-26 04:10:27
0001 /* 0002 * dlg_shrink_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_SHRINK_SELECTION_H 0010 #define DLG_SHRINK_SELECTION_H 0011 0012 #include "ui_wdg_shrink_selection.h" 0013 #include <operations/kis_operation_ui_widget.h> 0014 0015 class KisViewManager; 0016 class WdgShrinkSelection : public KisOperationUIWidget, public Ui::WdgShrinkSelection 0017 { 0018 Q_OBJECT 0019 0020 public: 0021 WdgShrinkSelection(QWidget *parent, KisViewManager* view, KisOperationConfigurationSP config); 0022 0023 void getConfiguration(KisOperationConfigurationSP config) override; 0024 0025 private Q_SLOTS: 0026 void slotShrinkValueChanged(int value); 0027 void slotShrinkValueChanged(double value); 0028 void slotUnitChanged(int index); 0029 void slotShrinkFromImageBorderChanged(bool value); 0030 0031 private: 0032 void updateShrinkUIValue(double value); 0033 0034 double m_resolution; 0035 int m_shrinkValue; 0036 bool m_shrinkFromImageBorder; 0037 }; 0038 0039 #endif // DLG_SHRINK_SELECTION_H