-
Notifications
You must be signed in to change notification settings - Fork 225
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
Adding global messagebox and commandline parameter parsing classes. #2538
Comments
Great! Thanks for opening an issue. I think it is possible to have a PR with only the class and some mi or code changes? |
As a matter of fact this can be implemented with only changes in global.h and main.cpp. The no longer needed (nor wanted) commandine parameter passing mainly affects CSound so I will make these changes automatically in following PR's. |
I think everything in the scope of this issue can be put into one PR. |
I'm working on that. |
I already have it in my own jamulus repo and I would like to push it but, again, I don't know how to open a PR for this issue and push it to jamulus master. @ann0see (Hate to say it, but I'm getting really tired of all those github related issues.) EDIT: I figured it out again I think. Is this the right way ? (Still says PR not found ?) |
@pgScorpio let‘s have a Video call this evening. When would you be available? |
@ann0see |
Ah ok. Would tomorrow evening be ok? Probably we should limit it to ~ 1h. I‘d prefer to not start before 20:00 |
What is the current behaviour and why should it be changed?
Currently messageboxes for errors, warnings and info are created all over the code. Disadvantage is that they don't have a parent dialog and are inconsistent in message title.
Also commandline parameters are now parsed by several functions in main and passed via-via through several constructor parameters. A class accessible anywhere in the code would be more efficient and more versatile.
Describe possible approaches
All this is in preparation of the "sound-redesign"
A static messagebox class will provide messageboxes that can be opened anywhere in the code, but are always child of CClientdlg and will have a consistant title (including any clientname).
The commandline parsing functions in main will be moved to a (static) class that is accessible anywhere in the code so commandline parameters can be retrieved anywhere in the code, no need to pass then via-via through constructors.
Also we will be able to use "special" commandline parameters (normally rejected) for debugging and testing purposes.
Has this feature been discussed and generally agreed?
The commandline parsing class was already suggested in the comments in the code.
The text was updated successfully, but these errors were encountered: