This document outlines the necessary updates to the wireviz-gui project to make it compatible with the latest version of wireviz and to improve its functionality.
- Update
README.md:- Change the
wirevizinstallation instructions from manual git clone topip install wireviz. - Update the URL for the
wirevizrepository tohttps://github.com/wireviz/WireViz. - Review and update any other outdated information.
- Change the
-
Update
requirements.txt:- Add
wirevizto the requirements file, specifying a recent version. - Ensure all other dependencies are up to date.
- Add
-
Update
wirevizIntegration:- Imports: Update the
importstatements inwireviz_gui/app.pyand other files to match the newwirevizpackage structure. -
parsefunction: Update the call to theparsefunction to match the new API, including any changes to its arguments and return value. -
Harnessobject:- Update the code to use the new method for generating output files instead of the old
Harness.output()method. - Find the new way to get the rendered PNG image data for display in the GUI, replacing the access to the
Harness.pngattribute.
- Update the code to use the new method for generating output files instead of the old
- Error Handling: Update the error handling to catch the new exceptions that may be raised by the latest
wirevizlibrary.
- Imports: Update the
-
GUI Functionality:
- YAML Generation: Review and update the dialogs for adding connectors, cables, and connections to generate YAML that is compatible with the latest
wirevizsyntax. - Enable Dialogs: Re-enable the GUI buttons for adding connectors, cables, and connections after the underlying functionality is fixed.
- YAML Generation: Review and update the dialogs for adding connectors, cables, and connections to generate YAML that is compatible with the latest
-
Expose New
wirevizFeatures:- Add GUI elements to allow users to take advantage of new
wirevizfeatures, such as:- Connector mating
- Improved technical drawings
- Harness metadata
- Part numbers and supplier information
- Custom color schemes
- Add GUI elements to allow users to take advantage of new
-
Improve User Experience:
- Provide better error messages and feedback to the user.
- Add a settings dialog to configure
wirevizrendering options. - Improve the layout and design of the GUI.