pjrinaldi / wombatforensics

linux c++, fox-toolkit, multi-threaded forensic gui tool
GNU General Public License v2.0
46 stars 12 forks source link

Image Verification Activity/Progress #407

Closed pjrinaldi closed 1 year ago

pjrinaldi commented 2 years ago

Need to implement some sort of activity progress fro the forensic image verificaiton.

i think the best option is maybe a label to left of the listview in the dialog and make the dialog not modal.

pjrinaldi commented 2 years ago

maybe make verify dialog non-modal, and then add a progressbar and not close the dialog when kick off a verification and then update progressbar with the status as it goes

pjrinaldi commented 2 years ago

Also need to look at image creation and how it let's the user know something is happening.

pjrinaldi commented 2 years ago

Currently deciding whether i want to add the verification progress to the verify window, or maybe have a progressdialog created for each image chosen to verify.

also need to add the ability to cancel the verification to at least closing if not somewhere else such as the progress dialog.

pjrinaldi commented 2 years ago

might be able to tie the futurewatcher to the progressbar..

pjrinaldi commented 2 years ago

futurewatcher is a bust, need to come up with someone to get the verify bytes as they go and then do what i need... but maybe i don't need to do anything special except for call an emit function from imagefunctions....

pjrinaldi commented 2 years ago

switched to qlabel. need to impelement the cancel button for the verification, so i will need to add a horizontal layout to the vertical layout for each one... and link the button to call the futurewatcher->stop() or whatever it is.

pjrinaldi commented 2 years ago

making progress on verification status and a cancel button framework, but cancel cancels after the current is done running, which i forgot about and won't work for a long imaging process... so i will need to kill it another way, or i will need to create a custom threading call (not QtConcurrent) which will allow me to kill a running process... maybe qthread or there is an abort() or something.

pjrinaldi commented 2 years ago

when call cancel from qtconcurrent, i need to then have a switch with the verification while loop which will break the loop and stop the processing...

pjrinaldi commented 2 years ago

i successfully break out of the loop in testing. just need to clean it up some and update the messaging and display of the cancel button since it cancels all the initiated verifications and not just an individual one.