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

[FEATURE] copy HC to clipboard #106

Open
styner opened this issue Mar 18, 2024 · 6 comments
Open

[FEATURE] copy HC to clipboard #106

styner opened this issue Mar 18, 2024 · 6 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@styner
Copy link
Member

styner commented Mar 18, 2024

It would be great to have a button/option to copy the computed head circumference to the clipboard, so that one can paste it to a spreadsheet easily (and reduce potential typing/copying errors)

@styner styner added the enhancement New feature or request label Mar 18, 2024
@styner
Copy link
Member Author

styner commented Mar 18, 2024

Making the head circulumference text selectable might be an easy half-way measure

@eric-unc eric-unc added the good first issue Good for newcomers label Mar 18, 2024
@mlouielu
Copy link
Contributor

Some way to tackle this by:

  • Double click to copy, or
  • Auto copy after measurement option

For testing, different OS has different clipboard system, I am not sure if Qt has unify this.

We also need to define:

  • What kind of format you want? (e.g. "423.75", "423.75, mm", "423.75 mm")
  • Do you need multiple measurement data at once? (e.g. "423.75, 433.20, 400.00", "423.75\n433.20\n400.00"

Extend from this, potentially we can add a UI for history measurement result and recall image when double click on it.

@eric-unc
Copy link
Collaborator

Probably have a button or something. I'm sure that there's a Python library out there to multiplex clipboard systems, even if Qt does not.

I'm guessing without units? I assume the results are put into a spreadsheet or CSV or something for further processing.

@styner
Copy link
Member Author

styner commented Mar 18, 2024

I think Qt has functionality for cross-platform clipboard access (https://doc.qt.io/qt-6/qclipboard.html). The simplest way would be to support without units, and a single measurement at a time. Double clicking & pressing the short cut for copy (ctl-C, Apple-C etc) on the text in the window should do the trick (currently not possible).

Correct, re use: results are inserted into spreadsheet

@mlouielu
Copy link
Contributor

Correct, re use: results are inserted into spreadsheet

Just wondering the actual workflow, do you also need the filename in the copy?

Or how do you distinguish them in your spreadsheet, is it just a single column and row index, or two column with filename and measurement result?

@styner
Copy link
Member Author

styner commented Mar 18, 2024

We probably want to keep the potential workflow as open as possible. So, the user can select and copy any text and we should make sure that text is available. Thus, changing the text above the image, e.g. have just the name of the file (without extension) + the head circumference + unit: myimage: 122.34 mm. Then a user can select either the whole line (triple click), or just the number (double click)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants