* Modified the default label text box into a drop down
* Unchecked the box at startup
* Removed commented code
* Removed unnecessary update method for the combobox
* Changed naming style for class
Steps to reproduce this particular issue:
1. draw a box
2. select the box
3. hover over one of the corners as if you want to resize the box (no click needed)
4. press DEL to delete the box
5. left click on the canvas
Note there are two more destructive operations on the canvas' `shape` in
`undo_last_line` and `reset_all_lines`, but former is dead code and latter
I don't know how to trigger. Thus I can't be sure un-highlighting will not
lead to visual glitches.
There are other potential fixes, e.g. checking in `selected_vertex`. I can
rework the patch, but then again, the fix is so straight forward that telling
me is probably more effort than just rewriting it.
See #750
See #605
* Fix incorrect save dir path handling for ML format.
Save dir path was split by incorrect os.dependent separator '/'
which was the cause of labels being saved to parent folder.
* Implement path normalization for command arguments.
Renamed 'predefined_classes_file' parameter to 'class_file'.
* rename local variables in main file
* additional renaming of functions and variables
* Rename main file functions
* Rename functions and variables in canvas.py
* Rename functions and locals for remaining files
* Rename non-Qt derived class' members
* Rename members of Qt-derived classes
* Fix paint label issue
* adds createMl reader & writer class
* adds getFormatMeta function to support more than two save_format
* adds CreateML read & write support
* adds format CreateML icon
* fixes negative height/width
* removes type hints
* fixes coordinate calculation
* adds unit test
* removes typehint
* Add item single click slot in labelDialog.py
In the original code, double clicking a list item will set the text property and automatically validate afterwards, with the label dialog window disappearing.
In this revised version, double click behavior is unchanged, while single click is added. When single clicking a list item, it will only set text in the QLineEdit. Users can change the text by clicking other items before validating themselves by clicking yes.