Skip to content
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 script dialog for pregression #13

Merged
merged 4 commits into from
Jun 24, 2024

Conversation

narnaud
Copy link
Member

@narnaud narnaud commented Jun 17, 2024

  • Refactor the ScriptDialogItem progression API, to ahve something simpler to use
  • Add 2 examples to show how to do that in scripts
  • Remove the uiFilePath property from ScriptDialog

@narnaud narnaud enabled auto-merge June 17, 2024 12:17
@narnaud narnaud disabled auto-merge June 17, 2024 12:17
@narnaud narnaud enabled auto-merge (squash) June 17, 2024 12:17
@narnaud narnaud disabled auto-merge June 17, 2024 12:17
@narnaud narnaud enabled auto-merge (rebase) June 17, 2024 12:17
Copy link
Member Author

@narnaud narnaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a patch to fix mfc-utils too. I will add to this review if we agree on the API, for now the test won't pass.

@narnaud narnaud requested a review from LeonMatthesKDAB June 19, 2024 08:01
narnaud added 4 commits June 22, 2024 08:12
- Simplify the progress dailog
- Make it non-modal in interactive mode
- Refactor the script API of ScriptDialog for handling progress: `setStepCount`,
`firstStep` and `nextStep` (you can also use the `stepCount property`
- Do some small cleanup and renaming in the code (remove `conversion`, as a
script is not necessary a conversion script)
- Add 2 examples to show an interactive script or a script with progressbar

Change-Id: Iac6fad86df10aab5880618c827b1d7a723501e34
As this dialog is really used in a script, and not only for conversion.

Change-Id: I34846acbcfb100c689ac0a68998d8569ec88ba05
Now that we have integration testing working, it's not needed anymore.
This fix the default size for dialog script, which is now the size in designer.

Change-Id: I0ac3d3660252854d20b7b3c9158ed9762f9ca74b
It's a good way to show how to handle script unit tests.
@narnaud narnaud force-pushed the refactor-script-dialog branch from 1001b59 to a32e266 Compare June 22, 2024 06:34
@narnaud narnaud merged commit b07fe81 into KDAB:main Jun 24, 2024
5 checks passed
@narnaud narnaud deleted the refactor-script-dialog branch June 24, 2024 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants