add a basic GetOptimalSize to progress bar

Change-Id: I34b98d4c98b3f9af062473f254ffeadb05130471
convert print progress dialog to .ui

use an actual ProgressBar rather than direct drawing
into the dialog window

Change-Id: I13a17970055980e0e248f60058cd4d5ef91f1d7d