-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add an option for disable shift + clear #368
base: upsilon-dev
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is some things to change and I didn't built, but it looks OK.
apps/settings/base.en.i18n
Outdated
@@ -81,3 +81,4 @@ ExtAppWriteExplanation1 = "By default, external applications" | |||
ExtAppWriteExplanation2 = "cannot write to memory" | |||
ExtAppWriteExplanation3 = "flash (persistent) of your calculator." | |||
ExtAppEnabled = "Pin up" | |||
Clearshiftlock = "shortcut shift + clear" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to capitalize first letter ? (in others languages too)
apps/global_preferences.h
Outdated
@@ -36,6 +36,8 @@ class GlobalPreferences { | |||
void setAutocomplete(bool autocomple) { m_autoComplete = autocomple; } | |||
bool syntaxhighlighting() const { return m_syntaxhighlighting; } | |||
void setSyntaxhighlighting(bool syntaxhighlight) { m_syntaxhighlighting = syntaxhighlight; } | |||
bool clearalphalockshift() const { return m_clearalphalockshift; } | |||
void setclearalphalockshift(bool clearalphalockshift) { m_clearalphalockshift = clearalphalockshift; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why alphalock ? Isn't this about Shift + Clear ?
Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com>
|
|
i hope i havent break all |
cool is ok |
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, why is it named "clearalphalockshift" ?
Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com>
Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com>
ok is beacaus i have change function name and e not variable name |
|
1 similar comment
|
|
thank you for your patience I think everything is ok now |
|
why the test dosent complet ? |
bool clearshift() const { return m_clearkshift; } | ||
void setclearshift(bool clearalphashift) { m_clearkshift = clearalphashift; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to use camelCase here for consistency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still not fixed (should be setClearShift
and clearShift
)
@@ -81,3 +81,4 @@ ExtAppWriteExplanation1 = "Standardmäßig externe Anwendungen" | |||
ExtAppWriteExplanation2 = "kann nicht in den Speicher schreiben" | |||
ExtAppWriteExplanation3 = "Flash (dauerhaft) Ihres Rechners." | |||
ExtAppEnabled = "Aufstecken" | |||
Clearshift = "Tastenkombination Umschalt + Löschen" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same (PascalCase for all i18n files)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still not fixed (should be ClearShift
instead of Clearshift
)
@@ -48,8 +53,10 @@ HighlightCell * CodeOptionsController::reusableCell(int index, int type) { | |||
} | |||
else if (index == 1) { | |||
return &m_switchCellAutoCompletion; | |||
}else if (index == 2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}else if (index == 2) { | |
} else if (index == 2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still not fixed
Co-authored-by: Quentin <github@arra.red>
thx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please apply given suggestions before marking reviews as resolved and requesting a new review
bool clearshift() const { return m_clearkshift; } | ||
void setclearshift(bool clearalphashift) { m_clearkshift = clearalphashift; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain what the k
in m_clearkshift
means? Also, avoid doubles spaces
bool clearshift() const { return m_clearkshift; } | |
void setclearshift(bool clearalphashift) { m_clearkshift = clearalphashift; } | |
bool clearshift() const { return m_clearkshift; } | |
void setclearshift(bool clearalphashift) { m_clearkshift = clearalphashift; } |
@@ -80,6 +83,7 @@ class GlobalPreferences { | |||
bool m_dfuUnlocked; | |||
bool m_autoComplete; | |||
bool m_syntaxhighlighting; | |||
bool m_clearkshift; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bool m_clearkshift; | |
bool m_clearkshift; |
@@ -81,3 +81,4 @@ ExtAppWriteExplanation1 = "Standardmäßig externe Anwendungen" | |||
ExtAppWriteExplanation2 = "kann nicht in den Speicher schreiben" | |||
ExtAppWriteExplanation3 = "Flash (dauerhaft) Ihres Rechners." | |||
ExtAppEnabled = "Aufstecken" | |||
Clearshift = "Tastenkombination Umschalt + Löschen" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still not fixed (should be ClearShift
instead of Clearshift
)
@@ -48,8 +53,10 @@ HighlightCell * CodeOptionsController::reusableCell(int index, int type) { | |||
} | |||
else if (index == 1) { | |||
return &m_switchCellAutoCompletion; | |||
}else if (index == 2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still not fixed
bool clearshift() const { return m_clearkshift; } | ||
void setclearshift(bool clearalphashift) { m_clearkshift = clearalphashift; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still not fixed (should be setClearShift
and clearShift
)
i have code this issue #285