|
Module UI/ProgressThis module is undocumented. This is a list of its definitions. beginTask :: ProgressMonitor -> String -> Integer -> <Proc> () Declares that the operation has started, with the name shown to the user and
the total amount of work that will be reported through beginTaskSM :: SubMonitor -> String -> Integer -> <Proc> ()
checkCanceled :: IProgressMonitor a => a -> <Proc> () Throws an checkCanceledMsg :: IProgressMonitor a => a -> String -> <Proc> () Like convertMonitor :: ProgressMonitor -> Integer -> <Proc> SubMonitor Turns the given monitor into a sub-monitor with the given number of work
units to distribute among nested operations. The returned sub-monitor does
not have to be finished, but the caller is still responsible for calling
createNullProgressMonitor :: () -> <Proc> ProgressMonitor Creates a progress monitor that discards everything reported to it. Use it
when an operation requires a monitor but its progress is not shown anywhere.
It does remember cancellation, so done :: ProgressMonitor -> <Proc> () Declares that the operation has finished and releases the progress indication. Call this exactly once, also when the operation failed or was canceled. This is the form of doneSM :: SubMonitor -> <Proc> () Finishes the sub-monitor, consuming whatever work units it has left. A
sub-monitor obtained from done_ :: ProgressMonitor -> <Proc> () Declares that the operation has finished and releases the progress indication. Call this exactly once, also when the operation failed or was canceled. Prefer isCanceled :: ProgressMonitor -> <Proc> Boolean Returns isCanceledSM :: SubMonitor -> <Proc> Boolean Returns mBeginTask :: IProgressMonitor a => a -> String -> Integer -> <Proc> () Declares that the operation has started, with a name and a total amount of work. See mDone :: IProgressMonitor a => a -> <Proc> () Declares that the operation has finished. See mIsCanceled :: IProgressMonitor a => a -> <Proc> Boolean Returns mSetCanceled :: IProgressMonitor a => a -> Boolean -> <Proc> () Requests cancellation, or withdraws the request when given mSetTaskName :: IProgressMonitor a => a -> String -> <Proc> () Sets the name of the main task shown to the user. See mSubTask :: IProgressMonitor a => a -> String -> <Proc> () Sets the name of the subtask that is currently being performed. See mWorked :: IProgressMonitor a => a -> Integer -> <Proc> () Reports that the given number of work units have been completed. See newChild :: SubMonitor -> Integer -> <Proc> ProgressMonitor Creates a monitor for a nested operation, consuming the given number of the parent's remaining work units. The child does not have to be finished explicitly. sclProgressMonitor :: (String -> Float -> <Proc> ()) -> (() -> <Proc> ()) -> (() -> <Proc> Boolean) -> (Boolean -> <Proc> ()) -> (String -> <Proc> ()) -> (String -> <Proc> ()) -> (Float -> <Proc> ()) -> <Proc> ProgressMonitor Creates a progress monitor from the functions implementing it, given in the
order sclProgressMonitorSubTask :: SCLProgressMonitor -> <Proc> String The name given in the latest sclProgressMonitorWork :: SCLProgressMonitor -> <Proc> Float The sum of the work units reported to the monitor through setCanceled :: ProgressMonitor -> Boolean -> <Proc> () Requests cancellation of the operation, or withdraws the request when given setCanceledSM :: SubMonitor -> Boolean -> <Proc> () Requests cancellation, or withdraws the request when given setTaskName :: ProgressMonitor -> String -> <Proc> () Sets the name of the main task shown to the user, replacing the one given to setTaskNameSM :: SubMonitor -> String -> <Proc> () Sets the name of the main task shown to the user. setWorkRemaining :: SubMonitor -> Integer -> <Proc> SubMonitor Sets how many work units the sub-monitor still has to hand out, without consuming any of them, and returns the sub-monitor itself. Use it to redistribute the remaining budget once the amount of work left is known. split :: SubMonitor -> Integer -> <Proc> ProgressMonitor Like subTask :: ProgressMonitor -> String -> <Proc> () Sets the name of the subtask that is currently being performed. subTaskSM :: SubMonitor -> String -> <Proc> () Sets the name of the subtask that is currently being performed. worked :: ProgressMonitor -> Integer -> <Proc> () Reports that the given number of work units have been completed. The reported
amounts accumulate and are meant to add up to the total given to workedSM :: SubMonitor -> Integer -> <Proc> () Reports that the given number of the sub-monitor's work units have been completed. |