Changeset View
Changeset View
Standalone View
Standalone View
src/Profile.cpp
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | 55 | const Profile::PropertyInfo Profile::DefaultPropertyNames[] = { | |||
---|---|---|---|---|---|
116 | , { AutoCopySelectedText , "AutoCopySelectedText" , INTERACTION_GROUP , QVariant::Bool } | 116 | , { AutoCopySelectedText , "AutoCopySelectedText" , INTERACTION_GROUP , QVariant::Bool } | ||
117 | , { CopyTextAsHTML , "CopyTextAsHTML" , INTERACTION_GROUP , QVariant::Bool } | 117 | , { CopyTextAsHTML , "CopyTextAsHTML" , INTERACTION_GROUP , QVariant::Bool } | ||
118 | , { TrimLeadingSpacesInSelectedText , "TrimLeadingSpacesInSelectedText" , INTERACTION_GROUP , QVariant::Bool } | 118 | , { TrimLeadingSpacesInSelectedText , "TrimLeadingSpacesInSelectedText" , INTERACTION_GROUP , QVariant::Bool } | ||
119 | , { TrimTrailingSpacesInSelectedText , "TrimTrailingSpacesInSelectedText" , INTERACTION_GROUP , QVariant::Bool } | 119 | , { TrimTrailingSpacesInSelectedText , "TrimTrailingSpacesInSelectedText" , INTERACTION_GROUP , QVariant::Bool } | ||
120 | , { PasteFromSelectionEnabled , "PasteFromSelectionEnabled" , INTERACTION_GROUP , QVariant::Bool } | 120 | , { PasteFromSelectionEnabled , "PasteFromSelectionEnabled" , INTERACTION_GROUP , QVariant::Bool } | ||
121 | , { PasteFromClipboardEnabled , "PasteFromClipboardEnabled" , INTERACTION_GROUP , QVariant::Bool } | 121 | , { PasteFromClipboardEnabled , "PasteFromClipboardEnabled" , INTERACTION_GROUP , QVariant::Bool } | ||
122 | , { MiddleClickPasteMode, "MiddleClickPasteMode" , INTERACTION_GROUP , QVariant::Int } | 122 | , { MiddleClickPasteMode, "MiddleClickPasteMode" , INTERACTION_GROUP , QVariant::Int } | ||
123 | , { MouseWheelZoomEnabled, "MouseWheelZoomEnabled", INTERACTION_GROUP, QVariant::Bool } | 123 | , { MouseWheelZoomEnabled, "MouseWheelZoomEnabled", INTERACTION_GROUP, QVariant::Bool } | ||
124 | , { AlternateScrolling, "AlternateScrolling", INTERACTION_GROUP, QVariant::Bool } | ||||
124 | 125 | | |||
125 | // Encoding | 126 | // Encoding | ||
126 | , { DefaultEncoding , "DefaultEncoding" , ENCODING_GROUP , QVariant::String } | 127 | , { DefaultEncoding , "DefaultEncoding" , ENCODING_GROUP , QVariant::String } | ||
127 | 128 | | |||
128 | , { static_cast<Profile::Property>(0) , nullptr , nullptr, QVariant::Invalid } | 129 | , { static_cast<Profile::Property>(0) , nullptr , nullptr, QVariant::Invalid } | ||
129 | }; | 130 | }; | ||
130 | 131 | | |||
131 | QHash<QString, Profile::PropertyInfo> Profile::PropertyInfoByName; | 132 | QHash<QString, Profile::PropertyInfo> Profile::PropertyInfoByName; | ||
Show All 35 Lines | 153 | { | |||
167 | setProperty(StartInCurrentSessionDir, true); | 168 | setProperty(StartInCurrentSessionDir, true); | ||
168 | setProperty(MenuIndex, QStringLiteral("0")); | 169 | setProperty(MenuIndex, QStringLiteral("0")); | ||
169 | setProperty(SilenceSeconds, 10); | 170 | setProperty(SilenceSeconds, 10); | ||
170 | setProperty(TerminalColumns, 80); | 171 | setProperty(TerminalColumns, 80); | ||
171 | setProperty(TerminalRows, 24); | 172 | setProperty(TerminalRows, 24); | ||
172 | setProperty(TerminalMargin, 1); | 173 | setProperty(TerminalMargin, 1); | ||
173 | setProperty(TerminalCenter, false); | 174 | setProperty(TerminalCenter, false); | ||
174 | setProperty(MouseWheelZoomEnabled, true); | 175 | setProperty(MouseWheelZoomEnabled, true); | ||
176 | setProperty(AlternateScrolling, true); | ||||
175 | 177 | | |||
176 | setProperty(KeyBindings, QStringLiteral("default")); | 178 | setProperty(KeyBindings, QStringLiteral("default")); | ||
177 | setProperty(ColorScheme, QStringLiteral("Linux")); //use DarkPastels when is start support blue ncurses UI properly | 179 | setProperty(ColorScheme, QStringLiteral("Linux")); //use DarkPastels when is start support blue ncurses UI properly | ||
178 | setProperty(Font, QFontDatabase::systemFont(QFontDatabase::FixedFont)); | 180 | setProperty(Font, QFontDatabase::systemFont(QFontDatabase::FixedFont)); | ||
179 | 181 | | |||
180 | setProperty(HistoryMode, Enum::FixedSizeHistory); | 182 | setProperty(HistoryMode, Enum::FixedSizeHistory); | ||
181 | setProperty(HistorySize, 1000); | 183 | setProperty(HistorySize, 1000); | ||
182 | setProperty(ScrollBarPosition, Enum::ScrollBarRight); | 184 | setProperty(ScrollBarPosition, Enum::ScrollBarRight); | ||
▲ Show 20 Lines • Show All 207 Lines • Show Last 20 Lines |