Changeset View
Changeset View
Standalone View
Standalone View
dialogs/imagelib/effects/kpEffectsDialog.cpp
Show All 19 Lines | 2 | /* | |||
---|---|---|---|---|---|
20 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | 20 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
21 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 21 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
22 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 22 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
23 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 24 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
25 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | */ | 26 | */ | ||
27 | 27 | | |||
28 | | ||||
29 | #define DEBUG_KP_EFFECTS_DIALOG 0 | | |||
30 | | ||||
31 | | ||||
32 | #include "kpEffectsDialog.h" | 28 | #include "kpEffectsDialog.h" | ||
33 | 29 | | |||
34 | #include "kpDefs.h" | 30 | #include "kpDefs.h" | ||
35 | #include "document/kpDocument.h" | 31 | #include "document/kpDocument.h" | ||
36 | #include "widgets/imagelib/effects/kpEffectBalanceWidget.h" | 32 | #include "widgets/imagelib/effects/kpEffectBalanceWidget.h" | ||
37 | #include "widgets/imagelib/effects/kpEffectBlurSharpenWidget.h" | 33 | #include "widgets/imagelib/effects/kpEffectBlurSharpenWidget.h" | ||
38 | #include "widgets/imagelib/effects/kpEffectEmbossWidget.h" | 34 | #include "widgets/imagelib/effects/kpEffectEmbossWidget.h" | ||
39 | #include "widgets/imagelib/effects/kpEffectFlattenWidget.h" | 35 | #include "widgets/imagelib/effects/kpEffectFlattenWidget.h" | ||
▲ Show 20 Lines • Show All 158 Lines • ▼ Show 20 Line(s) | |||||
198 | int kpEffectsDialog::selectedEffect () const | 194 | int kpEffectsDialog::selectedEffect () const | ||
199 | { | 195 | { | ||
200 | return m_effectsComboBox->currentIndex (); | 196 | return m_effectsComboBox->currentIndex (); | ||
201 | } | 197 | } | ||
202 | 198 | | |||
203 | // public slot | 199 | // public slot | ||
204 | void kpEffectsDialog::selectEffect (int which) | 200 | void kpEffectsDialog::selectEffect (int which) | ||
205 | { | 201 | { | ||
206 | #if DEBUG_KP_EFFECTS_DIALOG | | |||
207 | qCDebug(kpLogDialogs) << "kpEffectsDialog::selectEffect(" << which << ")"; | 202 | qCDebug(kpLogDialogs) << "kpEffectsDialog::selectEffect(" << which << ")"; | ||
208 | #endif | | |||
209 | 203 | | |||
210 | if (which < 0 || | 204 | if (which < 0 || | ||
211 | which >= m_effectsComboBox->count ()) | 205 | which >= m_effectsComboBox->count ()) | ||
212 | { | 206 | { | ||
213 | return; | 207 | return; | ||
214 | } | 208 | } | ||
215 | 209 | | |||
216 | if (which != m_effectsComboBox->currentIndex ()) | 210 | if (which != m_effectsComboBox->currentIndex ()) | ||
▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines |