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

Dev #117

Merged
merged 11 commits into from
Jan 23, 2025
Merged

Dev #117

merged 11 commits into from
Jan 23, 2025

Conversation

Jordan-Pierce
Copy link
Owner

No description provided.

Jordan-Pierce and others added 11 commits January 21, 2025 09:46
Add a search/filter feature to the label window.

* Add a `QLineEdit` for the search bar to the `LabelWindow` class.
* Connect the `textChanged` signal of the search bar to a new method `filter_labels`.
* Implement the `filter_labels` method to filter and update the displayed labels based on the search input.
* Update the `LabelWindow` layout to include the search bar in the top bar.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Jordan-Pierce/CoralNet-Toolbox?shareId=XXXX-XXXX-XXXX-XXXX).
Add label search feature to LabelWindow
Add functionality to export TagLab labels to a JSON file and integrate it into the main window.

* **`coralnet_toolbox/IO/QtExportTagLabLabels.py`**:
  - Import necessary modules and classes.
  - Define the `ExportTagLabLabels` class with an `__init__` method.
  - Implement the `export_taglab_labels` method to handle exporting labels to a JSON file.
  - Use `QFileDialog` to get the save file path and `json.dump` to write the labels to the file.

* **`coralnet_toolbox/QtMainWindow.py`**:
  - Import `ExportTagLabLabels` at the top of the file.
  - Add an action for exporting TagLab labels to the `export_labels_menu` in the `__init__` method.
  - Connect the action to the `export_taglab_labels` method in `ExportTagLabLabels`.
@Jordan-Pierce Jordan-Pierce merged commit 0a5097b into main Jan 23, 2025
5 checks passed
@Jordan-Pierce Jordan-Pierce mentioned this pull request Jan 23, 2025
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.

1 participant