Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/kis_config.cc
Show First 20 Lines • Show All 1706 Lines • ▼ Show 20 Line(s) | 1706 | { | |||
---|---|---|---|---|---|
1707 | return (defaultValue ? true : m_cfg.readEntry("ToolOptionsInDocker", true)); | 1707 | return (defaultValue ? true : m_cfg.readEntry("ToolOptionsInDocker", true)); | ||
1708 | } | 1708 | } | ||
1709 | 1709 | | |||
1710 | void KisConfig::setToolOptionsInDocker(bool inDocker) | 1710 | void KisConfig::setToolOptionsInDocker(bool inDocker) | ||
1711 | { | 1711 | { | ||
1712 | m_cfg.writeEntry("ToolOptionsInDocker", inDocker); | 1712 | m_cfg.writeEntry("ToolOptionsInDocker", inDocker); | ||
1713 | } | 1713 | } | ||
1714 | 1714 | | |||
1715 | int KisConfig::kineticScrollingGesture(bool defaultValue) const | ||||
1716 | { | ||||
1717 | return (defaultValue ? 0 : m_cfg.readEntry("KineticScrollingGesture", 0)); | ||||
1718 | } | ||||
1719 | | ||||
1720 | void KisConfig::setKineticScrollingGesture(int gesture) | ||||
1721 | { | ||||
1722 | m_cfg.writeEntry("KineticScrollingGesture", gesture); | ||||
1723 | } | ||||
1724 | | ||||
1725 | int KisConfig::kineticScrollingSensitivity(bool defaultValue) const | ||||
1726 | { | ||||
1727 | return (defaultValue ? 75 : m_cfg.readEntry("KineticScrollingSensitivity", 75)); | ||||
1728 | } | ||||
1729 | | ||||
1730 | void KisConfig::setKineticScrollingSensitivity(int sensitivity) | ||||
1731 | { | ||||
1732 | m_cfg.writeEntry("KineticScrollingSensitivity", sensitivity); | ||||
1733 | } | ||||
1734 | | ||||
1735 | bool KisConfig::kineticScrollingScrollbar(bool defaultValue) const | ||||
1736 | { | ||||
1737 | return (defaultValue ? true : m_cfg.readEntry("KineticScrollingScrollbar", true)); | ||||
1738 | } | ||||
1739 | | ||||
1740 | void KisConfig::setKineticScrollingScrollbar(bool scrollbar) | ||||
1741 | { | ||||
1742 | m_cfg.writeEntry("KineticScrollingScrollbar", scrollbar); | ||||
1743 | } | ||||
1744 | | ||||
1715 | const KoColorSpace* KisConfig::customColorSelectorColorSpace(bool defaultValue) const | 1745 | const KoColorSpace* KisConfig::customColorSelectorColorSpace(bool defaultValue) const | ||
1716 | { | 1746 | { | ||
1717 | const KoColorSpace *cs = 0; | 1747 | const KoColorSpace *cs = 0; | ||
1718 | 1748 | | |||
1719 | KConfigGroup cfg = KSharedConfig::openConfig()->group("advancedColorSelector"); | 1749 | KConfigGroup cfg = KSharedConfig::openConfig()->group("advancedColorSelector"); | ||
1720 | if (defaultValue || cfg.readEntry("useCustomColorSpace", true)) { | 1750 | if (defaultValue || cfg.readEntry("useCustomColorSpace", true)) { | ||
1721 | KoColorSpaceRegistry* csr = KoColorSpaceRegistry::instance(); | 1751 | KoColorSpaceRegistry* csr = KoColorSpaceRegistry::instance(); | ||
1722 | QString modelID = cfg.readEntry("customColorSpaceModel", "RGBA"); | 1752 | QString modelID = cfg.readEntry("customColorSpaceModel", "RGBA"); | ||
▲ Show 20 Lines • Show All 221 Lines • Show Last 20 Lines |