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
refactor: rewrite settings to support object #955
base: v7.0
Are you sure you want to change the base?
Conversation
…#947) * Change the command-line option --no-hot-exit to --no-restore-session. * Change the command-line option --no-hot-exit to --no-restore-session. * update * style: format codes * style: format codes Co-authored-by: Yufan You <ouuansteve@gmail.com> Co-authored-by: ChungZH <ChungZH@users.noreply.github.com>
Remove dependence to python3. Update build workflow for installing library. Update release workflow[win] to bundle yaml-cpp.dll. Update DEB/control. Update aur/*/PKGBUILD. Update snap/snapcraft.yaml.
Change genSettings.py to genSettings.cpp. Add new target for generated code. Update sources list.
Remove genSettings.py. Remove settings.json. Add settings.yaml.
Move data to SettingManager. Use SettingsHelper to access. Remove from/to variantlist as we no longer directly load or save.
Declare store type(QStringList) for yaml parser.
Adjust minimum width because the dialog frame has changed.
Fix button to language settings. Combine three buttons into one.
Use the rewrote wrapper. Add registerWidgets to support focusing to SettingBase.
Plz refer to old PR #858 for details.
Use the new template. Use the generated code for page creation. Reload settings for PreferencePage when the dialog get focused.
Add SettingIter for setting tracking with keys for object. Move some functions' implement to SettingsInfo.cpp Add calling method support. Add string formatting(replace @ to keys) support. Reconstruct SettingInfo. Add methods and replace onApply. Remove `old` support.
Introduce and changed to yaml format. Add YAML binding to some qt types. Remove old warnings. Add `load` for YAML and move `load` to `load_INI`. Same to `save`. Remove supporting to the old type `QMap:xxx`. Changed the logic for default value. Now we load the setting and fill up with default value. Remove support for getting the default value. Now we can get that from SettingsInfo directly. Use the rewrote SettingUpdater for different type.
Add backward compability for INI. Transfer `Formatter`. Transfer `Language`. Transfer `Parentheses`. Transfer `Snippets`. Transfer `LSP`. Transfer `Default Path`. Transfer `Actions`. Remove old backward compability. Remove theme rename. Remove editor status parse.
Fix config location after changing app name. This may be fixed by others already.
Add support to tristate.
Use SettingsHelper to rewrite logic using SettingsManager.
Use Application in application.hpp
This commit is just an exception.
After all, we still don't know how to solve that AUR build test failed🤔 |
add_library( | ||
target_generated | ||
OBJECT | ||
src/Settings/SettingsInfo.hpp | ||
${CMAKE_BINARY_DIR}/generated/SettingsInfo.cpp | ||
) |
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.
I guess this caused the CI to fail. Why separate them as a library?
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.
check this
So I move the generated sources into another target to apply different clang-tidy setting.
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.
@neko-para is this resolved?
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
After all, what happended to this pr 🤔 |
699b182
to
061f146
Compare
This PR is to replace the old PR #858 and helps reviewers to know what has changed.