OmixVisualization / qtjambi

QtJambi is a wrapper for using Qt in Java.
http://www.qtjambi.io
Other
365 stars 43 forks source link

[uic] Add an option to *not* generate the "MyForm" container class #147

Closed azurvii closed 1 year ago

azurvii commented 1 year ago

qtjambi-uic generates 2 files for a .ui form. e.g. if my UI widget's name is MyForm, uic would generate MyForm and UI_MyForm.

Could you add an option to not generate the MyForm? I put generated files in "generated sources", and not part of version control. UI_MyForm is a mapping from the .ui file, and I would not want this file in version control, or my src/main/. However, MyForm is how to use the .ui file, and contains application logic. This is a file that needs to be in version control and src/main/.

MyForm is also not a file that should be regenerated / overwritten whenever the .ui file changes. I think it makes sense to not generate MyForm, and let the us implement it.

What do you say?

omix commented 1 year ago

MyForm is only generated once in case it is not available. If you have custom implementation it will not be overwritten. I'll consider your suggestion to add a command line flag.

omix commented 1 year ago

A command line flag -s / --skip-shell will be available in QtJambi 6.5.1.