Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit c7d0e7aa authored by Dmitry Kazakov's avatar Dmitry Kazakov

Rename LOD mode into Instant Preview mode

Only for user-visible strings
parent e851a5b1
......@@ -31,7 +31,7 @@ struct KisSyncLodCacheStrokeStrategy::Private
};
KisSyncLodCacheStrokeStrategy::KisSyncLodCacheStrokeStrategy(KisImageWSP image)
: KisSimpleStrokeStrategy("SyncLodCacheStroke", kundo2_i18n("Update LOD")),
: KisSimpleStrokeStrategy("SyncLodCacheStroke", kundo2_i18n("Instant Preview")),
m_d(new Private)
{
m_d->image = image;
......
......@@ -505,10 +505,10 @@
</Action>
<Action name="level_of_detail_mode">
<icon></icon>
<text>&amp;Fast Preview Mode (LOD)</text>
<text>&amp;Instant Preview Mode</text>
<whatsThis></whatsThis>
<toolTip>Fast Preview Mode (LOD)</toolTip>
<iconText>Fast Preview Mode (LOD)</iconText>
<toolTip>Instant Preview Mode</toolTip>
<iconText>Instant Preview Mode</iconText>
<activationFlags>1</activationFlags>
<activationConditions>0</activationConditions>
<shortcut>Shift+L</shortcut>
......
......@@ -349,10 +349,10 @@ void KisAutoBrush::lodLimitations(KisPaintopLodLimitations *l) const
KisBrush::lodLimitations(l);
if (!qFuzzyCompare(density(), 1.0)) {
l->limitations << KoID("auto-brush-density", i18nc("PaintOp LoD limitation", "Brush Density recommended value 100.0"));
l->limitations << KoID("auto-brush-density", i18nc("PaintOp instant preview limitation", "Brush Density recommended value 100.0"));
}
if (!qFuzzyCompare(randomness(), 0.0)) {
l->limitations << KoID("auto-brush-randomness", i18nc("PaintOp LoD limitation", "Brush Randomness recommended value 0.0"));
l->limitations << KoID("auto-brush-randomness", i18nc("PaintOp instant preview limitation", "Brush Randomness recommended value 0.0"));
}
}
......@@ -629,8 +629,8 @@ QPainterPath KisBrush::outline() const
void KisBrush::lodLimitations(KisPaintopLodLimitations *l) const
{
if (autoSpacingActive()) {
l->limitations << KoID("auto-spacing", i18nc("PaintOp LoD limitation", "Auto Spacing"));
l->limitations << KoID("auto-spacing", i18nc("PaintOp instant preview limitation", "Auto Spacing"));
} else if (spacing() > 0.5) {
l->limitations << KoID("huge-spacing", i18nc("PaintOp LoD limitation", "Spacing > 0.5, consider disabling LoD"));
l->limitations << KoID("huge-spacing", i18nc("PaintOp instant preview limitation", "Spacing > 0.5, consider disabling Instant Preview"));
}
}
......@@ -48,7 +48,7 @@ public:
}
virtual void lodLimitations(KisPaintopLodLimitations *l) const {
l->blockers << KoID("colorsmudge-overlay", i18nc("PaintOp LoD limitation", "Overlay Option"));
l->blockers << KoID("colorsmudge-overlay", i18nc("PaintOp instant preview limitation", "Overlay Option"));
}
};
......
......@@ -70,6 +70,6 @@ KisPropertiesConfiguration* KisDuplicateOpSettingsWidget::configuration() const
KisPaintopLodLimitations KisDuplicateOpSettingsWidget::lodLimitations() const
{
KisPaintopLodLimitations l = KisBrushBasedPaintopOptionWidget::lodLimitations();
l.blockers << KoID("clone-brush", i18nc("PaintOp LoD limitation", "Clone Brush (temporarily disabled)"));
l.blockers << KoID("clone-brush", i18nc("PaintOp instant preview limitation", "Clone Brush (temporarily disabled)"));
return l;
}
......@@ -109,7 +109,7 @@ void KisDeformOption::writeOptionSetting(KisPropertiesConfiguration* config) con
void KisDeformOption::lodLimitations(KisPaintopLodLimitations *l) const
{
l->blockers << KoID("deform-brush", i18nc("PaintOp LoD limitation", "Deform Brush (unsupported)"));
l->blockers << KoID("deform-brush", i18nc("PaintOp instant preview limitation", "Deform Brush (unsupported)"));
}
int KisDeformOption::deformAction() const
......
......@@ -179,5 +179,5 @@ void KisDynaOpOption::readOptionSetting(const KisPropertiesConfiguration* settin
void KisDynaOpOption::lodLimitations(KisPaintopLodLimitations *l) const
{
l->blockers << KoID("dyna-brush", i18nc("PaintOp LoD limitation", "Dyna Brush (not supported)"));
l->blockers << KoID("dyna-brush", i18nc("PaintOp instant preview limitation", "Dyna Brush (not supported)"));
}
......@@ -126,6 +126,6 @@ void KisExperimentOpOption::enableDisplacement(qreal value)
void KisExperimentOpOption::lodLimitations(KisPaintopLodLimitations *l) const
{
if (m_options->displaceCHBox->isChecked()) {
l->blockers << KoID("experiment-displacement", i18nc("PaintOp LoD limitation", "Displacement Option"));
l->blockers << KoID("experiment-displacement", i18nc("PaintOp instant preview limitation", "Displacement Option"));
}
}
......@@ -100,5 +100,5 @@ void KisHairyBristleOption::writeOptionSetting(KisPropertiesConfiguration* confi
void KisHairyBristleOption::lodLimitations(KisPaintopLodLimitations *l) const
{
l->limitations << KoID("hairy-brush", i18nc("PaintOp LoD limitation", "Bristle Brush (the lines will be thinner than on preview)"));
l->limitations << KoID("hairy-brush", i18nc("PaintOp instant preview limitation", "Bristle Brush (the lines will be thinner than on preview)"));
}
......@@ -119,6 +119,6 @@ void KisHatchingOptions::readOptionSetting(const KisPropertiesConfiguration* set
void KisHatchingOptions::lodLimitations(KisPaintopLodLimitations *l) const
{
l->limitations << KoID("hatching-brush", i18nc("PaintOp LoD limitation", "Hatching Brush (heavy aliasing in LOD mode)"));
l->limitations << KoID("hatching-brush", i18nc("PaintOp instant preview limitation", "Hatching Brush (heavy aliasing in preview mode)"));
}
......@@ -87,11 +87,11 @@ void KisColorSourceOptionWidget::readOptionSetting(const KisPropertiesConfigurat
void KisColorSourceOptionWidget::lodLimitations(KisPaintopLodLimitations *l) const
{
if (d->option.type() == KisColorSourceOption::TOTAL_RANDOM) {
l->limitations << KoID("source-total-random", i18nc("PaintOp LoD limitation", "Source -> Total Random"));
l->limitations << KoID("source-total-random", i18nc("PaintOp instant preview limitation", "Source -> Total Random"));
} else if (d->option.type() == KisColorSourceOption::PATTERN) {
l->blockers << KoID("source-pattern", i18nc("PaintOp LoD limitation", "Source -> Pattern"));
l->blockers << KoID("source-pattern", i18nc("PaintOp instant preview limitation", "Source -> Pattern"));
} else if (d->option.type() == KisColorSourceOption::PATTERN_LOCKED) {
l->blockers << KoID("source-pattern-locked", i18nc("PaintOp LoD limitation", "Source -> Pattern Locked"));
l->blockers << KoID("source-pattern-locked", i18nc("PaintOp instant preview limitation", "Source -> Pattern Locked"));
}
}
......
......@@ -200,7 +200,7 @@ void KisFilterOption::lodLimitations(KisPaintopLodLimitations *l) const
if (m_currentFilter->neededRect(testRect, config, 0) != testRect ||
m_currentFilter->changedRect(testRect, config, 0) != testRect) {
l->blockers << KoID("filter-nonlinear", i18nc("PaintOp LoD limitation", "\"%1\" does not support LOD (non-linear filter)", config->name()));
l->blockers << KoID("filter-nonlinear", i18nc("PaintOp instant preview limitation", "\"%1\" does not support scaled preview (non-linear filter)", config->name()));
}
}
}
......
......@@ -41,10 +41,10 @@ double KisPressureSizeOption::apply(const KisPaintInformation & info) const
void KisPressureSizeOption::lodLimitations(KisPaintopLodLimitations *l) const
{
if (sensor(FUZZY, true)) {
l->limitations << KoID("size-fade", i18nc("PaintOp LoD limitation", "Size -> Fuzzy (sensor)"));
l->limitations << KoID("size-fade", i18nc("PaintOp instant preview limitation", "Size -> Fuzzy (sensor)"));
}
if (sensor(FADE, true)) {
l->blockers << KoID("size-fuzzy", i18nc("PaintOp LoD limitation", "Size -> Fade (sensor)"));
l->blockers << KoID("size-fuzzy", i18nc("PaintOp instant preview limitation", "Size -> Fade (sensor)"));
}
}
......@@ -254,7 +254,7 @@ void KisTextureOption::readOptionSetting(const KisPropertiesConfiguration* setti
void KisTextureOption::lodLimitations(KisPaintopLodLimitations *l) const
{
l->limitations << KoID("texture-pattern", i18nc("PaintOp LoD limitation", "Texture -> Pattern (low quality preview)"));
l->limitations << KoID("texture-pattern", i18nc("PaintOp instant preview limitation", "Texture -> Pattern (low quality preview)"));
}
......
......@@ -129,5 +129,5 @@ void KisParticleOpOption::readOptionSetting(const KisPropertiesConfiguration* se
void KisParticleOpOption::lodLimitations(KisPaintopLodLimitations *l) const
{
l->blockers << KoID("particle-brush", i18nc("PaintOp LoD limitation", "Particle Brush (not supported)"));
l->blockers << KoID("particle-brush", i18nc("PaintOp instant preview limitation", "Particle Brush (not supported)"));
}
......@@ -104,5 +104,5 @@ void KisSketchOpOption::readOptionSetting(const KisPropertiesConfiguration* sett
void KisSketchOpOption::lodLimitations(KisPaintopLodLimitations *l) const
{
l->limitations << KoID("sketch-brush", i18nc("PaintOp LoD limitation", "Sketch brush (differences in connecting lines are possible)"));
l->limitations << KoID("sketch-brush", i18nc("PaintOp instant preview limitation", "Sketch brush (differences in connecting lines are possible)"));
}
......@@ -254,7 +254,7 @@ void KisCanvasController::slotToggleLevelOfDetailMode(bool value)
int result = levelOfDetailMode();
m_d->view->viewManager()->showFloatingMessage(
i18n("Fast Preview Mode (LOD): %1", result ?
i18n("Instant Preview Mode: %1", result ?
i18n("ON") : i18n("OFF")),
QIcon(), 500, KisFloatingMessage::Low);
}
......
......@@ -90,24 +90,24 @@ void KisLodAvailabilityWidget::setLimitations(const KisPaintopLodLimitations &l)
bool isBlocked = !l.blockers.isEmpty();
bool isLimited = !l.limitations.isEmpty();
QString text = !isBlocked && isLimited ? i18n("(LOD)*") : i18n("LOD");
QString text = !isBlocked && isLimited ? i18n("(Instant Preview)*") : i18n("Instant Preview");
QString toolTip;
if (isBlocked) {
toolTip.append(i18nc("@info:tooltip",
"<para>Fast Preview Mode (LOD) is "
"<para>Instant Preview Mode is "
"disabled by the following options:"
"<list>%1</list></para>", blockersText));
} else if (isLimited) {
toolTip.append(i18nc("@info:tooltip",
"<para>Fast Preview (LOD) may look different "
"<para>Instant Preview may look different "
"from the final result. In case of troubles "
"try disabling the following options:"
"<list>%1</list></para>", limitationsText));
} else {
toolTip = i18nc("@info:tooltip", "<para>Fast Preview Mode (LOD) is available</para>");
toolTip = i18nc("@info:tooltip", "<para>Instant Preview Mode is available</para>");
}
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment