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 enum kbdDisableBitmask to manage keyboard imput (#72) #73
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.
Thanks for the PR!
The formatting looks funky at places but otherwise it does the job. I left some comments, I let you review them.
Once you are finished with the changes, before force pushing the branch, can you run ./scripts/format.sh --fix
please?
Hello,
Currently (in this PR), all filters are disabled. should I port this filter as default value for swkbd ? |
@WerWolv do you know why you disabled all "special" chars in swkbd by default? should we keep it that way or enable everything back? |
This is fine otherwise ! Let's wait for the answer from Wer and I'll try it once it's finished (and formatted 👀 ). |
Hi @natinusala, class Swkbd
{
public:
static bool openForText(std::function<void(std::string)> f, std::string headerText = "", std::string subText = "", int maxStringLength = 32, std::string initialText = "");
static bool openForNumber(std::function<void(int)> f, std::string headerText = "", std::string subText = "", int maxStringLength = 32, std::string initialText = "", std::string leftButton = "", std::string rightButton = "");
static bool openForText(std::function<void(std::string)> f, std::string headerText = "",
std::string subText = "", int maxStringLength = 32, std::string initialText = "",
int kbdDisableBitmask = KeyboardKeyDisableBitmask::KEYBOARD_DISABLE_NONE);
static bool openForNumber(std::function<void(int)> f, std::string headerText = "",
std::string subText = "", int maxStringLength = 32, std::string initialText = "",
std::string leftButton = "", std::string rightButton = "",
int kbdDisableBitmask = KeyboardKeyDisableBitmask::KEYBOARD_DISABLE_NONE);
}; I ran |
@natinusala I think I just copied that function from my EdiZon codebase where I don't want these characters anywhere. You can absolutely change that behaviour |
Okay then @H0neyBadger I'd like everything to be available by default (so nothing disabled) As for the formatting, we use clang-format, there is a script available : |
yes, I already ran the fix |
I just tested with ubundu's clang-format-8 and there is nothing to fix anymore (the current proposed patches are not related to this PR). |
So you're telling me that it's clang-format that splits the ListItem constructors in two lines? Same for openForNumber and friends |
Hi, I did the split first but clang-format does not complain about it. |
hi, all function declaration are back in one line (manually reverted). |
Hello @natinusala, I would like to improve our "chiaki" project & user inputs. |
Hi, I am so sorry, I missed the latest changes you made, I always get an email and check as soon as I can but I never got the emails for that... The code looks fine! Can I request one last thing (sorry), to add some example ListItems to the example app to showcase the different swkbd modes? Thanks! |
Hello, thank you a lot for your reply, btw some sxos users tend to report errors on |
Hi, I just added an example. |
Nice catch. I've made the change requested |
Hey @H0neyBadger how are you? I am currently in the process of changing the license of borealis from GPLv3 to Apache 2.0, and I need explicit permission from all contributors before continuing. Do you allow me to change the license? Thanks! |
Hi, I m fine and you ? ;-)
Yes, you have my explicit permission to change the license from GPLv3 to
Apache 2.0.
Is there any particular reason to change the license ? Does it has any
consequences for gpl3 projects that use borealis as gui ?
…On Thu, 18 Feb 2021, 21:48 Nathan S., ***@***.***> wrote:
Hey @H0neyBadger <https://github.com/H0neyBadger> how are you?
I am currently in the process of changing the license of borealis from
GPLv3 to Apache 2.0, and I need explicit permission from all contributors
before continuing.
Do you allow me to change the license?
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#73 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3ZUM7DDTMINFRPBRWALCTS7V4JBANCNFSM4TH7ALKA>
.
|
I'm great thank you😄 The reason is that GPLv3 is objectively a bad choice for a library, it's too limiting. And people told me that when I released it. With yoga I made the library portable by abstracting away everything platform specific, but I realized that it's useless if the code stays GPL because nobody would be able to port it to their own platform. I would like the library to grow and for that I need to allow usage for everyone, even commercial projects. As for your question, it should not change anything for projects using borealis as long as the license is compatible with Apache 2.0. If it's not then you are stuck with the latest GPL version. The change is only for yoga anyway, so I think that you're safe for now with chiaki. |
Ok thank you a lot for this explanation.
I have to save some time to try the latest yoga version :) . Hope your
project will find the success it deserves.
I remember when I tried borealis for the first time, the multiplatform was
a huge point in favour of borealis.
…On Fri, 19 Feb 2021, 08:40 Nathan S., ***@***.***> wrote:
I'm great thank you😄
The reason is that GPLv3 is objectively a bad choice for a library, it's
too limiting. And people told me that when I released it.
With yoga I made the library portable by abstracting away everything
platform specific, but I realized that it's useless if the code stays GPL
because nobody would be able to port it to their own platform.
I would like the library to grow and for that I need to allow usage for
everyone, even commercial projects.
As for your question, it should not change anything for projects using
borealis as long as the license is compatible with Apache 2.0. If it's not
then you are stuck with the latest GPL version.
The change is only for yoga anyway, so I think that you're safe for now
with chiaki.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#73 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3ZUM3X7AQBM2IBOL5VVW3S7YIWXANCNFSM4TH7ALKA>
.
|
I'm keeping the PR in draft state to test the code correctly.
let me know if I have to change anything.
Thank you a lot