Changeset View
Changeset View
Standalone View
Standalone View
options.cpp
Show First 20 Lines • Show All 752 Lines • ▼ Show 20 Line(s) | 752 | { | |||
---|---|---|---|---|---|
753 | m_settings->load(); | 753 | m_settings->load(); | ||
754 | 754 | | |||
755 | syncFromKcfgc(); | 755 | syncFromKcfgc(); | ||
756 | 756 | | |||
757 | // Electric borders | 757 | // Electric borders | ||
758 | KConfigGroup config(m_settings->config(), "Windows"); | 758 | KConfigGroup config(m_settings->config(), "Windows"); | ||
759 | OpTitlebarDblClick = windowOperation(config.readEntry("TitlebarDoubleClickCommand", "Maximize"), true); | 759 | OpTitlebarDblClick = windowOperation(config.readEntry("TitlebarDoubleClickCommand", "Maximize"), true); | ||
760 | setOperationMaxButtonLeftClick(windowOperation(config.readEntry("MaximizeButtonLeftClickCommand", "Maximize"), true)); | 760 | setOperationMaxButtonLeftClick(windowOperation(config.readEntry("MaximizeButtonLeftClickCommand", "Maximize"), true)); | ||
761 | setOperationMaxButtonMiddleClick(windowOperation(config.readEntry("MaximizeButtonMiddleClickCommand", "Vertically Maximize"), true)); | 761 | setOperationMaxButtonMiddleClick(windowOperation(config.readEntry("MaximizeButtonMiddleClickCommand", "Maximize (vertical only)"), true)); | ||
762 | setOperationMaxButtonRightClick(windowOperation(config.readEntry("MaximizeButtonRightClickCommand", "Maximize (horizontal only)"), true)); | 762 | setOperationMaxButtonRightClick(windowOperation(config.readEntry("MaximizeButtonRightClickCommand", "Maximize (horizontal only)"), true)); | ||
763 | 763 | | |||
764 | // Mouse bindings | 764 | // Mouse bindings | ||
765 | config = KConfigGroup(m_settings->config(), "MouseBindings"); | 765 | config = KConfigGroup(m_settings->config(), "MouseBindings"); | ||
766 | // TODO: add properties for missing options | 766 | // TODO: add properties for missing options | ||
767 | CmdTitlebarWheel = mouseWheelCommand(config.readEntry("CommandTitlebarWheel", "Nothing")); | 767 | CmdTitlebarWheel = mouseWheelCommand(config.readEntry("CommandTitlebarWheel", "Nothing")); | ||
768 | CmdAllModKey = (config.readEntry("CommandAllKey", "Alt") == QStringLiteral("Meta")) ? Qt::Key_Meta : Qt::Key_Alt; | 768 | CmdAllModKey = (config.readEntry("CommandAllKey", "Alt") == QStringLiteral("Meta")) ? Qt::Key_Meta : Qt::Key_Alt; | ||
769 | CmdAllWheel = mouseWheelCommand(config.readEntry("CommandAllWheel", "Nothing")); | 769 | CmdAllWheel = mouseWheelCommand(config.readEntry("CommandAllWheel", "Nothing")); | ||
▲ Show 20 Lines • Show All 207 Lines • ▼ Show 20 Line(s) | 968 | { | |||
977 | else if (name == QStringLiteral("Close")) | 977 | else if (name == QStringLiteral("Close")) | ||
978 | return CloseOp; | 978 | return CloseOp; | ||
979 | else if (name == QStringLiteral("OnAllDesktops")) | 979 | else if (name == QStringLiteral("OnAllDesktops")) | ||
980 | return OnAllDesktopsOp; | 980 | return OnAllDesktopsOp; | ||
981 | else if (name == QStringLiteral("Shade")) | 981 | else if (name == QStringLiteral("Shade")) | ||
982 | return ShadeOp; | 982 | return ShadeOp; | ||
983 | else if (name == QStringLiteral("Operations")) | 983 | else if (name == QStringLiteral("Operations")) | ||
984 | return OperationsOp; | 984 | return OperationsOp; | ||
985 | else if (name == QStringLiteral("Vertically maximize")) | 985 | else if (name == QStringLiteral("Maximize (vertical only)")) | ||
986 | return VMaximizeOp; | 986 | return VMaximizeOp; | ||
987 | else if (name == QStringLiteral("Horizontally maximize")) | 987 | else if (name == QStringLiteral("Maximize (horizontal only)")) | ||
988 | return HMaximizeOp; | 988 | return HMaximizeOp; | ||
989 | else if (name == QStringLiteral("Lower")) | 989 | else if (name == QStringLiteral("Lower")) | ||
990 | return LowerOp; | 990 | return LowerOp; | ||
991 | return NoOp; | 991 | return NoOp; | ||
992 | } | 992 | } | ||
993 | 993 | | |||
994 | Options::MouseCommand Options::mouseCommand(const QString &name, bool restricted) | 994 | Options::MouseCommand Options::mouseCommand(const QString &name, bool restricted) | ||
995 | { | 995 | { | ||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |