Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/kis_config.cc
Context not available. | |||||
809 | m_cfg.writeEntry("pixelGridEnabled", v); | 809 | m_cfg.writeEntry("pixelGridEnabled", v); | ||
---|---|---|---|---|---|
810 | } | 810 | } | ||
811 | 811 | | |||
812 | void KisConfig::enableWraparoundModeHorizontal(bool v) const | ||||
813 | { | ||||
814 | m_cfg.writeEntry("wraparoundModeHorizontal", v); | ||||
815 | } | ||||
816 | | ||||
817 | bool KisConfig::wraparoundModeHorizontalEnabled(bool defaultValue) const | ||||
818 | { | ||||
819 | bool enabled = true; | ||||
820 | return (defaultValue ? enabled : m_cfg.readEntry("wraparoundModeHorizontal", enabled)); | ||||
821 | } | ||||
822 | | ||||
823 | void KisConfig::enableWraparoundModeVertical(bool v) const | ||||
824 | { | ||||
825 | m_cfg.writeEntry("wraparoundModeVertical", v); | ||||
826 | } | ||||
827 | | ||||
828 | bool KisConfig::wraparoundModeVerticalEnabled(bool defaultValue) const | ||||
829 | { | ||||
830 | bool enabled = true; | ||||
831 | return (defaultValue ? enabled : m_cfg.readEntry("wraparoundModeVertical", enabled)); | ||||
832 | } | ||||
833 | | ||||
812 | quint32 KisConfig::guidesLineStyle(bool defaultValue) const | 834 | quint32 KisConfig::guidesLineStyle(bool defaultValue) const | ||
813 | { | 835 | { | ||
814 | int v = m_cfg.readEntry("guidesLineStyle", 0); | 836 | int v = m_cfg.readEntry("guidesLineStyle", 0); | ||
Context not available. |