Ethereal-dev: [Ethereal-dev] Patch for an enhanced progress bar dialog box

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Wed, 28 Aug 2002 01:24:57 +0200
Hi List!

Attached is a medium sized patch, which will extend the existing progress dialog box.

This extended progress dialog box is especially useful,
when processing large capture files (>1MB),
where a simple progress bar is often not very informational.

This dialog box will look like:

     Loading: capture.cap
      Status: 450KB of 1500KB
Elapsed Time: 00:02
   Time Left: 00:32
    Progress: XX--- 20%

I have "borrowed" the design from the download progress box of Mozilla.

The dialog box is looking fine on my windows machine, but I'm really not the GTK guru.

The "Time Left" is only a rough estimation from the running time so far and 
the current percentage (which is OK for me).
A more sophisticated approach to calculate this value would use the change since the
last call of update -> maybe something to implement after the next release ;-)

The patch will change ALL existing callers of the current dialog box, including:

-read_cap_file
-rescan_packets (Filtering, Colorizing, Reprocessing)
-print_packets
-change_time_formats
-find_packet
-ph_stats_new (Computing protocol hierarchy statistics)

Please send comments, if somethings not OK for you.

Regards ULFL

______________________________________________________________________________
Wieviele E-Mail-Adressen haben Sie? Eine, funf oder gar zehn? Verwalten
Sie doch einfach alle unter: http://freemail.web.de/?mc=021120

Attachment: progress_dlg.zip
Description: Zip compressed data