]> git.cworth.org Git - vogl/commit
UI: Add ability to trim files directly from vogleditor
authorPeterLValve <peterl@valvesoftware.com>
Fri, 21 Mar 2014 23:24:59 +0000 (16:24 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 1 Apr 2014 19:37:31 +0000 (12:37 -0700)
commitda9408c5d28098035931c0261c1b64d60fbcf414
treeca5ba3824b3354347da77946cd13bdfcc0bda648
parentb0a90365e384c01587189bd8d979861a60415a17
UI: Add ability to trim files directly from vogleditor
* When loading a trace that contains over 200 frames, the user will be prompted whether they'd like to trim the file. The trimmed file can then optionally be loaded instead of the originally selected trace.
* The new vogleditor_QTrimDialog allows the user to specify the frame index to start the trim at, the number of frames to trim, and the output file name.
  * Invalid frame index or lengths will make the textbox turn red to indicate the error. Entries are also validated against the number of frames in the trace file, and the trim lengths are currently limited to 200 frames (so that they can be loaded back into the editor without the trim prompt being shown).
  * voglreplay32/64 is launched in a separate process to generate the trim file. Failed replays display an error; successful replays are saved and can be reloaded into the editor.
* Enabled the Trim Trace button to allow trimming of an already open trace.
* Completely removed the Stop and Pause buttons
src/vogleditor/CMakeLists.txt
src/vogleditor/vogleditor.cpp
src/vogleditor/vogleditor.h
src/vogleditor/vogleditor_qtrimdialog.cpp [new file with mode: 0644]
src/vogleditor/vogleditor_qtrimdialog.h [new file with mode: 0644]
src/vogleditor/vogleditor_qtrimdialog.ui [new file with mode: 0644]