1// 2// PRProgressAction.m 3// PRICE 4// 5// Created by Riccardo Mottola on Tue Jun 22 2004. 6// Copyright (c) 2004 Carduus. All rights reserved. 7// 8// This application is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 9// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 10 11#import "PRProgressAction.h" 12 13 14@implementation PRProgressAction 15 16- (void) setActivity :(NSString *)description; 17{ 18 [progPanel setActivity:description]; 19} 20 21- (void) advanceProgress 22{ 23 [progPanel setProgress:(double)progressSteps++/(double)totalProgressSteps]; 24} 25 26- (void) showProgress 27{ 28 [progPanel setProgress:(double)progressSteps/(double)totalProgressSteps]; 29} 30 31@end 32