Add fast-back and fast-forward glyphs

This commit is contained in:
serso 2016-05-16 00:49:41 +02:00
parent af1c1ae248
commit 947516e905
5 changed files with 7 additions and 5 deletions

View File

@ -36,9 +36,9 @@ public enum CppSpecialButton {
history_undo("", '\ue007'), history_undo("", '\ue007'),
history_redo("", '\ue008'), history_redo("", '\ue008'),
cursor_right("", '\ue003'), cursor_right("", '\ue003'),
cursor_to_end(">>"), cursor_to_end(">>", '\ue00b'),
cursor_left("", '\ue002'), cursor_left("", '\ue002'),
cursor_to_start("<<"), cursor_to_start("<<", '\ue00a'),
settings("settings"), settings("settings"),
settings_widget("settings_widget"), settings_widget("settings_widget"),
like("like", '\ue006'), like("like", '\ue006'),
@ -116,7 +116,7 @@ public enum CppSpecialButton {
return; return;
} }
for (CppSpecialButton button : values()) { for (CppSpecialButton button : values()) {
if(button.glyph == 0) { if (button.glyph == 0) {
continue; continue;
} }
final int position = glyphToPosition(button.glyph); final int position = glyphToPosition(button.glyph);

View File

@ -28,6 +28,6 @@
xmlns:c="http://schemas.android.com/apk/res-auto" xmlns:c="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
a:text="@string/cpp_glyph_left" a:text="@string/cpp_glyph_left"
c:directionTextUp="&lt;&lt;" c:directionTextUp="@string/cpp_glyph_fast_back"
c:directionTextDown="@string/cpp_glyph_copy" c:directionTextDown="@string/cpp_glyph_copy"
tools:ignore="HardcodedText" /> tools:ignore="HardcodedText" />

View File

@ -28,6 +28,6 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:text="@string/cpp_glyph_right" android:text="@string/cpp_glyph_right"
app:directionTextUp="&gt;&gt;" app:directionTextUp="@string/cpp_glyph_fast_forward"
app:directionTextDown="@string/cpp_glyph_paste" app:directionTextDown="@string/cpp_glyph_paste"
tools:ignore="HardcodedText" /> tools:ignore="HardcodedText" />

View File

@ -10,4 +10,6 @@
<string name="cpp_glyph_undo" translatable="false">"\ue007"</string> <string name="cpp_glyph_undo" translatable="false">"\ue007"</string>
<string name="cpp_glyph_redo" translatable="false">"\ue008"</string> <string name="cpp_glyph_redo" translatable="false">"\ue008"</string>
<string name="cpp_glyph_graph" translatable="false">"\ue009"</string> <string name="cpp_glyph_graph" translatable="false">"\ue009"</string>
<string name="cpp_glyph_fast_back" translatable="false">"\ue00a"</string>
<string name="cpp_glyph_fast_forward" translatable="false">"\ue00b"</string>
</resources> </resources>