batmon-0.7/000755 001751 000024 00000000000 12123140764 013321 5ustar00multixstaff000000 000000 batmon-0.7/Resources/000755 001751 000024 00000000000 11742131622 015272 5ustar00multixstaff000000 000000 batmon-0.7/AppController.h000644 001751 000024 00000004457 11377233722 016277 0ustar00multixstaff000000 000000 /* Project: batmon Copyright (C) 2005-2010 GNUstep Application Project Author: Riccardo Mottola Created: 2005-06-25 21:06:19 +0200 by multix Application Controller 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. This application 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 Library General Public License for more details. You should have received a copy of the GNU General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #import #import "BatteryModel.h" @interface AppController : NSObject { IBOutlet NSTextField *voltage; IBOutlet NSTextField *amperage; IBOutlet NSTextField *presentCap; IBOutlet NSTextField *rate; IBOutlet NSTextField *percent; IBOutlet NSTextField *timeLeft; IBOutlet NSTextField *chState; IBOutlet NSProgressIndicator *level; IBOutlet NSWindow *monitorWin; IBOutlet NSWindow *infoWin; IBOutlet NSProgressIndicator *lifeGauge; IBOutlet NSTextField *lifeGaugePercent; IBOutlet NSTextField *designCap; IBOutlet NSTextField *battType; IBOutlet NSTextField *manufacturer; IBOutlet NSTextField *lastFullCharge; NSDictionary *stateStrAttributes; NSImage *iconBattery; NSImage *iconPlug; BatteryModel *batModel; @private int hours; @private int mins; } - (void)awakeFromNib; - (void)applicationDidFinishLaunching:(NSNotification *)aNotif; - (BOOL)applicationShouldTerminate:(id)sender; - (void)applicationWillTerminate:(NSNotification *)aNotif; - (BOOL)application:(NSApplication *)application openFile:(NSString *)fileName; - (void)getInfo; - (IBAction)showMonitor:(id)sender; - (IBAction)showPrefPanel:(id)sender; - (IBAction)updateInfo:(id)sender; - (IBAction)showBattInfo:(id)sender; @end batmon-0.7/AppController.m000644 001751 000024 00000015714 11607771601 016301 0ustar00multixstaff000000 000000 /* Project: batmon Copyright (C) 2005-2010 GNUstep Application Project Author: Riccardo Mottola FreeBSD support by Chris B. Vetter Created: 2005-06-25 21:06:19 +0200 by multix Application Controller 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. This application 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 Library General Public License for more details. You should have received a copy of the GNU General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include #import "AppController.h" @implementation AppController + (void)initialize { NSMutableDictionary *defaults = [NSMutableDictionary dictionary]; /* * Register your app's defaults here by adding objects to the * dictionary, eg * * [defaults setObject:anObject forKey:keyForThatObject]; * */ [[NSUserDefaults standardUserDefaults] registerDefaults:defaults]; [[NSUserDefaults standardUserDefaults] synchronize]; } - (id)init { if ((self = [super init])) { NSMutableParagraphStyle *style; NSFont *font; batModel = [[BatteryModel alloc] init]; style = [[NSMutableParagraphStyle alloc] init]; [style setParagraphStyle:[NSParagraphStyle defaultParagraphStyle]]; font = [NSFont systemFontOfSize:9.0]; stateStrAttributes = [[NSDictionary dictionaryWithObjectsAndKeys: font, NSFontAttributeName, [NSColor blueColor], NSForegroundColorAttributeName, style, NSParagraphStyleAttributeName, nil] retain]; iconPlug = [[NSImage imageNamed:@"small_plug.tif"] retain]; iconBattery = [[NSImage imageNamed:@"small_battery.tif"] retain]; } return self; } - (void)dealloc { [stateStrAttributes release]; [super dealloc]; } - (void)awakeFromNib { NSTimer *timer; [[NSApp mainMenu] setTitle:@"batmon"]; [self updateInfo:nil]; if (YES) { NSLog(@"app initialized, setting timer"); timer = [NSTimer scheduledTimerWithTimeInterval:5 target:self selector:@selector(updateInfo:) userInfo:nil repeats:YES]; [timer fire]; } } - (void)applicationDidFinishLaunching:(NSNotification *)aNotif { } - (BOOL)applicationShouldTerminate:(id)sender { return YES; } - (void)applicationWillTerminate:(NSNotification *)aNotif { } - (BOOL)application:(NSApplication *)application openFile:(NSString *)fileName { return NO; } - (IBAction)showMonitor:(id)sender { [monitorWin makeKeyAndOrderFront:nil]; } - (void)showPrefPanel:(id)sender { } - (void)getInfo { } #define HEIGHT 42 #define WIDTH 20 - (void)drawImageRep { NSString *str; float chargePercentToDraw; /* we need this beause chargePercent can go beyond 100% */ NSImage *chargeStatusIcon; if ([batModel isCharging]) chargeStatusIcon = iconPlug; else chargeStatusIcon = iconBattery; [chargeStatusIcon compositeToPoint: NSMakePoint(WIDTH+6, HEIGHT-15) operation:NSCompositeSourceOver]; chargePercentToDraw = [batModel chargePercent]; if (chargePercentToDraw > 100) chargePercentToDraw = 100; [[NSColor darkGrayColor] set]; /* main body */ [NSBezierPath strokeRect: NSMakeRect(0, 1, WIDTH, HEIGHT)]; /* top nib */ [NSBezierPath strokeRect: NSMakeRect((WIDTH/2)-3, HEIGHT+1, 6, 4)]; [[NSColor grayColor] set]; /* right light shadow */ [NSBezierPath strokeLineFromPoint:NSMakePoint(WIDTH+1, 0) toPoint:NSMakePoint(WIDTH+1, HEIGHT-1)]; /* nib filler */ [NSBezierPath fillRect: NSMakeRect((WIDTH/2)-2, HEIGHT+1+1, 4, 2)]; /* draw the charge status */ if ([batModel isCritical] == YES) [[NSColor redColor] set]; else [[NSColor greenColor] set]; [NSBezierPath fillRect: NSMakeRect(0+1, 1, WIDTH-1, (chargePercentToDraw/100) * HEIGHT -2)]; str = [NSString stringWithFormat:@"%2.0f%%", [batModel chargePercent]]; [str drawAtPoint: NSMakePoint(WIDTH + 5 , 1) withAttributes:stateStrAttributes]; } - (void)drawIcon { NSImageRep *rep; NSImage *icon; icon = [[NSImage alloc] initWithSize: NSMakeSize(48, 48)]; rep = [[NSCustomImageRep alloc] initWithDrawSelector: @selector(drawImageRep) delegate:self]; [rep setSize: NSMakeSize(48, 48)]; [icon addRepresentation: rep]; [NSApp setApplicationIconImage:icon]; [rep release]; [icon release]; /* setApplicationIconImage does a retain */ } - (IBAction)updateInfo:(id)sender { float lifeVal; float timeRem; float chargePercentToDraw; /* we need this beause chargePercent can go beyond 100% */ [batModel update]; chargePercentToDraw = [batModel chargePercent]; if (chargePercentToDraw > 100) chargePercentToDraw = 100; /* main window */ timeRem = [batModel timeRemaining]; hours = timeRem; mins = (int)((timeRem - (float)hours) * 60); [voltage setStringValue:[NSString stringWithFormat:@"%3.2f V", [batModel volts]]]; [level setDoubleValue:chargePercentToDraw]; [percent setStringValue:[NSString stringWithFormat:@"%3.1f%%", [batModel chargePercent]]]; [amperage setStringValue:[NSString stringWithFormat:@"%3.2f A", [batModel amps]]]; [rate setStringValue:[NSString stringWithFormat:@"%3.2f W", [batModel watts]]]; if (timeRem >= 0) [timeLeft setStringValue:[NSString stringWithFormat:@"%dh %d\'", hours, mins]]; else [timeLeft setStringValue:@"unknown"]; [chState setStringValue:[batModel state]]; if ([batModel isUsingWattHours]) [presentCap setStringValue:[NSString stringWithFormat:@"%3.2f Wh", [batModel remainingCapacity]]]; else [presentCap setStringValue:[NSString stringWithFormat:@"%3.2f Ah", [batModel remainingCapacity]]]; /* info window */ lifeVal = [batModel lastCapacity]/[batModel designCapacity]; [lifeGauge setDoubleValue:lifeVal*100]; [lifeGaugePercent setStringValue:[NSString stringWithFormat:@"%3.1f%", lifeVal*100]]; [battType setStringValue:[batModel batteryType]]; [manufacturer setStringValue:[batModel manufacturer]]; if ([batModel isUsingWattHours]) { [designCap setStringValue:[NSString stringWithFormat:@"%3.2f Wh", [batModel designCapacity]]]; [lastFullCharge setStringValue:[NSString stringWithFormat:@"%3.2f Wh", [batModel lastCapacity]]]; } else { [designCap setStringValue:[NSString stringWithFormat:@"%3.2f Ah", [batModel designCapacity]]]; [lastFullCharge setStringValue:[NSString stringWithFormat:@"%3.2f Ah", [batModel lastCapacity]]]; } [self drawIcon]; } - (IBAction)showBattInfo:(id)sender { [infoWin makeKeyAndOrderFront:self]; } @end batmon-0.7/BatteryModel.h000644 001751 000024 00000005230 12114240424 016057 0ustar00multixstaff000000 000000 /* Project: batmon Copyright (C) 2006-2013 GNUstep Application Project Author: Riccardo Mottola Created: 2006-01-14 23:58:48 +0100 by Riccardo 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. This application 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 Library General Public License for more details. You should have received a copy of the GNU General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ typedef enum { BMBStateUnknown = 0, BMBStateCharging, BMBStateDischarging, BMBStateHigh, BMBStateLow, BMBStateCritical, BMBStateFull, BMBStateMissing } BMBatteryStates; @class NSString; @interface BatteryModel : NSObject { #if defined (linux) @private char batteryStatePath0[1024]; @private char batteryInfoPath0[1024]; @private char apmPath[1024]; @private NSString *batterySysAcpiString; /* ACPI on Linux, using files in /sys : modern kernels and laptops*/ @private BOOL useACPIsys; /* ACPI on Linux, using files in /proc, now as fallback */ @private BOOL useACPIproc; /* APM on linux, for old kernels, older laptops, non-x86 machines, netbooks, embedded devices */ @private BOOL useAPM; /* PMU: Power management Unit, specific for powermac, ibooks Apple laptops*/ @private BOOL usePMU; #endif @private BOOL useWattHours; @private float volts; @private float amps; @private float watts; @private float desCap; @private float lastCap; @private float currCap; @private float critCap; @private float warnCap; @private float chargePercent; @private float timeRemaining; @private BOOL isCharging; @private BOOL isCritical; @private BMBatteryStates batteryState; @private NSString *batteryType; @private NSString *batteryManufacturer; } - (void)update; - (float)volts; - (float)amps; - (float)watts; - (float)timeRemaining; - (float)remainingCapacity; - (float)warningCapacity; - (float)lastCapacity; - (float)designCapacity; - (float)chargePercent; - (BOOL)isCritical; - (BOOL)isCharging; - (BOOL)isUsingWattHours; - (NSString *)state; - (NSString *)batteryType; - (NSString *)manufacturer; @end batmon-0.7/BatteryModel.m000644 001751 000024 00000064660 12121544072 016104 0ustar00multixstaff000000 000000 /* Project: batmon Copyright (C) 2006-2013 GNUstep Application Project Author: Riccardo Mottola Created: 2006-01-14 23:58:48 Riccardo Mottola 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. This application 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 Library General Public License for more details. You should have received a copy of the GNU General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ #if defined(freebsd) || defined( __FreeBSD__ ) # include # include # include # include # include # define ACPIDEV "/dev/acpi" #endif #if defined (linux) #define DEV_SYS_POWERSUPPLY @"/sys/class/power_supply" #define DEV_PROC_PMU @"/proc/pmu" #endif #if defined(__APPLE__) # include #endif #if defined(netbsd) || defined(__NetBSD__) #include /* path for the system devices */ #include /* open */ #include #include #include /* psd property dictionaries */ #endif #if defined(openbsd) || defined(__OpenBSD__) #include #include /* open */ #include #include #define APMDEV "/dev/apm" #endif #import #import #import #import #import #import #import "BatteryModel.h" @implementation BatteryModel - (void)_readLine :(FILE *)f :(char *)l { int ch; ch = fgetc(f); while (ch != EOF && ch != '\n') { *l = ch; l++; ch = fgetc(f); } *l = '\0'; } - (id)init { #if defined(linux) NSFileManager *fm; NSArray *dirNames; NSEnumerator *en; NSString *dirName; BOOL done; FILE *stateFile; char presentStr[16]; char line[128]; #endif /* linux */ if ((self = [super init])) { useWattHours= YES; isCharging = NO; batteryManufacturer = nil; #if defined(linux) useACPIproc = NO; useACPIsys = NO; useAPM = NO; usePMU = NO; /* look for a battery */ NSLog(@"looking for ACPI..."); fm = [NSFileManager defaultManager]; dirNames = [fm directoryContentsAtPath:DEV_SYS_POWERSUPPLY]; if (dirNames != nil) { done = NO; en = [dirNames objectEnumerator]; while (done == NO) { dirName = [en nextObject]; if (dirName != nil) { NSString *presentFileName; FILE *presentFile; /* scan for the first present battery */ presentFileName = [dirName stringByAppendingPathComponent:@"present"]; [[DEV_SYS_POWERSUPPLY stringByAppendingPathComponent:presentFileName] getCString:batteryStatePath0]; NSLog(@"/sys checking: %s", batteryStatePath0); presentFile = fopen(batteryStatePath0, "r"); if (presentFile != NULL) { [self _readLine :presentFile :line]; if (!strcmp(line, "1")) { done = YES; NSLog(@"/sys: found it!: %@", [DEV_SYS_POWERSUPPLY stringByAppendingPathComponent:dirName]); batterySysAcpiString = [[DEV_SYS_POWERSUPPLY stringByAppendingPathComponent:dirName] retain]; } fclose(presentFile); useACPIsys = YES; } } else { done = YES; } } } else { dirNames = [fm directoryContentsAtPath:@"/proc/acpi/battery"]; if (dirNames != nil) { done = NO; en = [dirNames objectEnumerator]; while (done == NO) { dirName = [en nextObject]; if (dirName != nil) { /* scan for the first present battery */ dirName = [[NSString stringWithString:@"/proc/acpi/battery"] stringByAppendingPathComponent:dirName]; [dirName getCString:batteryStatePath0]; strcat(batteryStatePath0, "/state"); NSLog(@"checking: %s", batteryStatePath0); stateFile = fopen(batteryStatePath0, "r"); if (stateFile != NULL) { [self _readLine :stateFile :line]; sscanf(line, "present: %s", presentStr); if (!strcmp(presentStr, "yes")) { done = YES; NSLog(@"/proc found it!: %@", dirName); [dirName getCString:batteryInfoPath0]; strcat(batteryInfoPath0, "/info"); } fclose(stateFile); useACPIproc = YES; } } else { done = YES; } } } else { /* no acpi, but maybe apm */ if([fm fileExistsAtPath:@"/proc/apm"] == YES) { NSLog(@"found apm"); useAPM = YES; strcpy(apmPath, "/proc/apm"); } else { dirNames = [fm directoryContentsAtPath:DEV_PROC_PMU]; if (dirNames != nil) { NSLog(@"Found PMU"); usePMU = YES; useWattHours = NO; } } } } #endif /* linux */ } return self; } - (void)dealloc { if (batteryType != nil) [batteryType release]; [super dealloc]; } - (void) update { #if defined(freebsd) || defined( __FreeBSD__ ) union acpi_battery_ioctl_arg battio; int acpifd; battio.unit = 0; acpifd = open(ACPIDEV, O_RDWR); if (acpifd == -1) acpifd = open(ACPIDEV, O_RDONLY); if (acpifd == -1) return; if( -1 == ioctl(acpifd, ACPIIO_CMBAT_GET_BIF, &battio) ) return; desCap = (float)battio.bif.dcap / 1000; // design capacity lastCap = (float)battio.bif.lfcap / 1000; // last full capacity if( -1 == ioctl(acpifd, ACPIIO_CMBAT_GET_BST, &battio) ) return; close(acpifd); currCap = (float)battio.bst.cap / 1000; // remaining capacity volts = (float)battio.bst.volt / 1000; // present voltage watts = (float)battio.bst.rate / 1000; // present rate amps = 0; if (volts) amps = watts / volts; batteryType = @""; if( ACPI_BATT_STAT_NOT_PRESENT != battio.bst.state ) { isCritical = NO; if( battio.bst.state & ACPI_BATT_STAT_CRITICAL ) isCritical = YES; if( battio.bst.state == 0 ) batteryState = BMBStateHigh; else if( battio.bst.state & ACPI_BATT_STAT_CHARGING ) batteryState = BMBStateCharging; else if( battio.bst.state & ACPI_BATT_STAT_DISCHARG ) batteryState = BMBStateDischarging; else if (battio.bst.state & ACPI_BATT_STAT_INVALID ) batteryState = BMBStateUnknown; else batteryState = BMBStateUnknown; batteryType = [NSString stringWithFormat: @"%s", battio.bif.type]; } else { batteryState = BMBStateMissing; batteryType = @"Missing"; } if( batteryState == BMBStateHigh ) { timeRemaining = 0; chargePercent = currCap/lastCap*100; isCharging = YES; } else if( batteryState == BMBStateCharging ) { timeRemaining = (lastCap-currCap) / watts; chargePercent = currCap/lastCap*100; isCharging = YES; } else if( batteryState == BMBStateDischarging ) { timeRemaining = currCap / watts; chargePercent = currCap/lastCap*100; isCharging = NO; } #elif defined(netbsd) || defined (__NetBSD__) int sysmonfd; /* fd of /dev/sysmon */ int rval; prop_dictionary_t bsd_dict; NSString *string; NSDictionary *dict; char *cStr; NSEnumerator *enum1; id obj1; NSDictionary *acpibat0; NSMutableDictionary *batDict; NSDictionary *chargeDict; NSString *valueStr; float chargeRate, dischargeRate; /* Open the device in ro mode */ if ((sysmonfd = open(_PATH_SYSMON, O_RDONLY)) == -1) NSLog(@"Error opening device: %s", _PATH_SYSMON); rval = prop_dictionary_recv_ioctl(sysmonfd, ENVSYS_GETDICTIONARY, &bsd_dict); if (rval) { NSLog(@"Error: %s", strerror(rval)); return; } cStr = prop_dictionary_externalize(bsd_dict); string = [NSString stringWithCString: cStr]; dict = [string propertyList]; if (dict == nil) { NSLog(@"Could not parse dictionary"); return; } acpibat0 = [dict objectForKey: @"acpibat0"]; //NSLog(@"acpibat0: %@", acpibat0); batDict = [NSMutableDictionary dictionaryWithCapacity: 3]; enum1 = [acpibat0 objectEnumerator]; while ((obj1 = [enum1 nextObject])) { // NSLog(@"--->%@", obj1); if ([obj1 isKindOfClass: [NSDictionary class]]) { NSString *descriptionKey; descriptionKey = [obj1 objectForKey:@"description"]; // NSLog(@"key-----> %@", descriptionKey); if (descriptionKey) [batDict setObject: obj1 forKey: descriptionKey]; } else NSLog(@"not a dict"); } //NSLog(@"battery dictionary: %@", batDict); (void)close(sysmonfd); valueStr = [[batDict objectForKey: @"voltage"] objectForKey: @"cur-value"]; if (valueStr) volts = [valueStr floatValue] / 1000000; NSLog(@"voltage: %@ %f", valueStr, volts); valueStr = [[batDict objectForKey: @"design cap"] objectForKey: @"cur-value"]; if (valueStr) { if ([[[batDict objectForKey: @"design cap"] objectForKey: @"type"] isEqualToString: @"Ampere hour"]) { useWattHours = NO; } else if ([[[batDict objectForKey: @"design cap"] objectForKey: @"type"] isEqualToString: @"Watt hour"]) { useWattHours = YES; } desCap = [valueStr floatValue] / 1000000; } NSLog(@"design cap: %@ %f", valueStr, desCap); chargeDict = [batDict objectForKey: @"charge"]; valueStr = [chargeDict objectForKey: @"critical-capacity"]; if (valueStr) { critCap = [valueStr floatValue] / 1000000; } NSLog(@"crit cap: %@ %f", valueStr, critCap); valueStr = [chargeDict objectForKey: @"warning-capacity"]; if (valueStr) { warnCap = [valueStr floatValue] / 1000000; } NSLog(@"warn cap: %@ %f", valueStr, warnCap); valueStr = [[batDict objectForKey: @"last full cap"] objectForKey: @"cur-value"]; if (valueStr) lastCap = [valueStr floatValue] / 1000000; NSLog(@"last full cap: %@, %f", valueStr, lastCap); valueStr = [[batDict objectForKey: @"charge rate"] objectForKey: @"cur-value"]; chargeRate = 0; if (valueStr) chargeRate = [valueStr floatValue] / 1000000; NSLog(@"charge rate: %@ %f", valueStr, chargeRate); valueStr = [[batDict objectForKey: @"discharge rate"] objectForKey: @"cur-value"]; dischargeRate = 0; if (valueStr) dischargeRate = [valueStr floatValue] / 1000000; NSLog(@"discharge rate: %@ %f", valueStr, dischargeRate); valueStr = [[batDict objectForKey: @"charge"] objectForKey: @"cur-value"]; if (valueStr) currCap = [valueStr floatValue] / 1000000; NSLog(@"charge: %@, %f", valueStr, currCap); valueStr = [[batDict objectForKey: @"charging"] objectForKey: @"cur-value"]; NSLog(@"charging: %@", valueStr); NSLog(@"currCap %f, lastCap %f, amps %f", currCap, lastCap,amps); if ([valueStr intValue] == 0) { amps = dischargeRate; isCharging = NO; if (amps > 0) timeRemaining = currCap / amps; else timeRemaining = -1; chargePercent = currCap/lastCap*100; batteryState = BMBStateDischarging; } else { amps = chargeRate; isCharging = YES; if (amps > 0) timeRemaining = (lastCap-currCap) / amps; else timeRemaining = -1; chargePercent = currCap/lastCap*100; batteryState = BMBStateCharging; } watts = amps * volts; /* sanitize */ if (critCap > warnCap) critCap = warnCap; if (critCap == 0) { if (warnCap > 0) critCap = warnCap; else critCap = desCap / 100; } isCritical = NO; if (currCap <= critCap) isCritical = YES; #elif defined(openbsd) || defined(__OpenBSD__) int apmfd; struct apm_power_info apmPwInfo; BOOL validBattery; apmfd = open(APMDEV, O_RDONLY); if (apmfd == -1) return; if( -1 == ioctl(apmfd, APM_IOC_GETPOWER, &apmPwInfo) ) return; isCharging = NO; validBattery = YES; if (APM_BATT_HIGH == apmPwInfo.battery_state) batteryState = BMBStateHigh; else if (APM_BATT_LOW == apmPwInfo.battery_state) { batteryState = BMBStateLow; } else if (APM_BATT_CRITICAL == apmPwInfo.battery_state) { batteryState = BMBStateCritical; isCritical = YES; } else if (APM_BATT_CHARGING == apmPwInfo.battery_state) { batteryState = BMBStateCharging; isCharging = YES; } else if (APM_BATTERY_ABSENT == apmPwInfo.battery_state) { batteryState = BMBStateMissing; validBattery = NO; } else { batteryState = BMBStateUnknown;; validBattery = NO; } if (APM_AC_ON == apmPwInfo.ac_state) isCharging = YES; /* we expect time in hours */ if (validBattery) { timeRemaining = (float)apmPwInfo.minutes_left / 60; chargePercent = (float)(int)apmPwInfo.battery_life; /* sanity checks */ if (isCharging && timeRemaining > 100) timeRemaining = 0; if (chargePercent > 100) chargePercent = 100; else if (chargePercent < 0) chargePercent = 0; if (timeRemaining < 0) timeRemaining = 0; } else { chargePercent = 0; timeRemaining= 0; } close(apmfd); #elif defined(linux) FILE *stateFile; FILE *infoFile; char line[128]; char presentStr[16]; char stateStr[16]; char chStateStr[16]; char rateStr[16]; char capacityStr[16]; char voltageStr[16]; int rateVal; int capacityVal; int voltageVal; NSString *chargeStateStr; char present2Str[16]; char desCapStr[16]; char lastCapStr[16]; char batTypeStr[16]; char warnCapStr[16]; batteryState = 0; if (useACPIsys) { NSString *ueventFileName; NSMutableDictionary *ueventDict; NSString *lineStr; NSRange sepRange; NSString *valueStr; NSString *keyStr; // NSLog(@"reading %@", batterySysAcpiString); ueventFileName = [batterySysAcpiString stringByAppendingPathComponent:@"uevent"]; [ueventFileName getCString:batteryStatePath0]; stateFile = fopen(batteryStatePath0, "r"); if (stateFile == NULL) { batteryState = BMBStateMissing; watts = 0; amps = 0; volts = 0; chargePercent = 0; currCap = 0; timeRemaining = -1; NSLog(@"acpi /sys state file is null"); return; } ueventDict = [[NSMutableDictionary alloc] initWithCapacity: 4]; [self _readLine :stateFile :line]; lineStr = [NSString stringWithCString: line]; while ([lineStr length] > 0) { sepRange = [lineStr rangeOfCharacterFromSet: [NSCharacterSet characterSetWithCharactersInString:@"="]]; if (sepRange.location != NSNotFound) { keyStr = [lineStr substringToIndex: sepRange.location]; valueStr = [lineStr substringFromIndex: sepRange.location+1]; [ueventDict setObject: valueStr forKey: keyStr]; } [self _readLine :stateFile :line]; lineStr = [NSString stringWithCString: line]; } // NSLog(@"%@", ueventDict); amps = [[ueventDict objectForKey:@"POWER_SUPPLY_CURRENT_NOW"] floatValue] / 1000000; if (isnan(amps)) amps = 0; volts = [[ueventDict objectForKey:@"POWER_SUPPLY_VOLTAGE_NOW"] floatValue] / 1000000; if ([ueventDict objectForKey:@"POWER_SUPPLY_POWER_NOW"] == nil) watts = volts*amps; else { watts = [[ueventDict objectForKey:@"POWER_SUPPLY_POWER_NOW"] floatValue] / 1000000; if (isnan(watts)) watts = 0; if (volts > 0) amps = watts / volts; } useWattHours = YES; if ([ueventDict objectForKey:@"POWER_SUPPLY_ENERGY_FULL_DESIGN"] != nil) { desCap = [[ueventDict objectForKey:@"POWER_SUPPLY_ENERGY_FULL_DESIGN"] floatValue] / 1000000; lastCap = [[ueventDict objectForKey:@"POWER_SUPPLY_ENERGY_FULL"] floatValue] / 1000000; currCap = [[ueventDict objectForKey:@"POWER_SUPPLY_ENERGY_NOW"] floatValue] / 1000000; } else { desCap = [[ueventDict objectForKey:@"POWER_SUPPLY_CHARGE_FULL_DESIGN"] floatValue] / 1000000; lastCap = [[ueventDict objectForKey:@"POWER_SUPPLY_CHARGE_FULL"] floatValue] / 1000000; currCap = [[ueventDict objectForKey:@"POWER_SUPPLY_CHARGE_NOW"] floatValue] / 1000000; useWattHours = NO; } warnCap = 0; // FIXME chargeStateStr = (NSString *)[ueventDict objectForKey:@"POWER_SUPPLY_STATUS"]; batteryType = (NSString *)[ueventDict objectForKey:@"POWER_SUPPLY_TECHNOLOGY"]; batteryManufacturer = (NSString *)[ueventDict objectForKey:@"POWER_SUPPLY_MANUFACTURER"]; isCharging = NO; if ([chargeStateStr isEqualToString:@"Charging"]) { if (useWattHours) { if (amps > 0) timeRemaining = (lastCap-currCap) / watts; else timeRemaining = -1; } else { if (watts > 0) timeRemaining = (lastCap-currCap) / amps; else timeRemaining = -1; } chargePercent = currCap/lastCap*100; isCharging = YES; batteryState = BMBStateCharging; } else if ([chargeStateStr isEqualToString:@"Discharging"]) { if (useWattHours) { if (amps > 0) timeRemaining = currCap / watts; else timeRemaining = -1; } else { if (watts > 0) timeRemaining = currCap / amps; else timeRemaining = -1; } chargePercent = currCap/lastCap*100; batteryState = BMBStateDischarging; } else if ([chargeStateStr isEqualToString:@"Charged"] || [chargeStateStr isEqualToString:@"Full"]) { chargePercent = 100; timeRemaining = 0; isCharging = YES; batteryState = BMBStateFull; } else if ([chargeStateStr isEqualToString:@"Unknown"]) { timeRemaining = 0; if (amps == 0) { chargePercent = 100; isCharging = YES; } batteryState = BMBStateUnknown; } } else if (useACPIproc) { stateFile = fopen(batteryStatePath0, "r"); if (stateFile == NULL) { NSLog(@"acpi /proc state file null"); return; } [self _readLine :stateFile :line]; sscanf(line, "present: %s", presentStr); [self _readLine :stateFile :line]; sscanf(line, "capacity state: %s", stateStr); [self _readLine :stateFile :line]; sscanf(line, "charging state: %s", chStateStr); [self _readLine :stateFile :line]; sscanf(line, "present rate: %s mW", rateStr); [self _readLine :stateFile :line]; sscanf(line, "remaining capacity: %s mWh", capacityStr); [self _readLine :stateFile :line]; sscanf(line, "present voltage: %s mV", voltageStr); fclose(stateFile); rateVal = atoi(rateStr); capacityVal = atoi(capacityStr); voltageVal = atoi(voltageStr); infoFile = fopen(batteryInfoPath0, "r"); NSAssert(infoFile != NULL, @"ACPI - /proc: info file shall not be NULL"); [self _readLine :infoFile :line]; sscanf(line, "present: %s", present2Str); [self _readLine :infoFile :line]; sscanf(line, "design capacity: %s", desCapStr); [self _readLine :infoFile :line]; sscanf(line, "last full capacity: %s", lastCapStr); [self _readLine :infoFile :line]; // battery technology [self _readLine :infoFile :line]; // design voltage [self _readLine :infoFile :line]; // design capacity warning sscanf(line, "design capacity warning: %s", warnCapStr); [self _readLine :infoFile :line]; [self _readLine :infoFile :line]; [self _readLine :infoFile :line]; [self _readLine :infoFile :line]; [self _readLine :infoFile :line]; [self _readLine :infoFile :line]; sscanf(line, "battery type: %s", batTypeStr); if (batteryType != nil) [batteryType release]; batteryType = [[NSString stringWithCString:batTypeStr] retain]; fclose(infoFile); watts = (float)rateVal / 1000; // a sanity check, a laptop won't consume 1000W // necessary since sometimes ACPI returns bogus stuff if (isnan(watts)) watts = 0; else if (watts > 1000) watts = 0; volts = (float)voltageVal / 1000; amps = watts / volts; desCap = (float)atoi(desCapStr)/1000; lastCap = (float)atoi(lastCapStr)/1000; currCap = capacityVal / 1000; warnCap = (float)atoi(warnCapStr)/1000; if (!strcmp(chStateStr, "charged")) { chargePercent = 100; timeRemaining = 0; isCharging = YES; batteryState = BMBStateFull; } else if (!strcmp(chStateStr, "charging")) { if (watts > 0) timeRemaining = (lastCap-currCap) / watts; else timeRemaining = -1; chargePercent = currCap/lastCap*100; isCharging = YES; batteryState = BMBStateCharging; } else { if (watts > 0) timeRemaining = currCap / watts; else timeRemaining = -1; chargePercent = currCap/lastCap*100; isCharging = NO; batteryState = BMBStateDischarging; } } else if (useAPM) { char drvVersionStr[16]; char apmBiosVersionStr[16]; char apmBiosFlagsStr[16]; char acLineStatusStr[16]; char battStatusStr[16]; int battStatusInt; char battFlagsStr[16]; char percentStr[16]; char timeRemainingStr[16]; char timeUnitStr[16]; BOOL percentIsInvalid; percentIsInvalid = NO; stateFile = fopen(apmPath, "r"); if (stateFile == NULL) { NSLog(@"apm state file null"); return; } [self _readLine :stateFile :line]; // NSLog(@"line: %s", line); sscanf(line, "%s %s %s %s %s %s %s %s %s", drvVersionStr, apmBiosVersionStr, apmBiosFlagsStr, acLineStatusStr, battStatusStr, battFlagsStr, percentStr, timeRemainingStr, timeUnitStr); if (percentStr != NULL && strlen(percentStr) > 0) { if (percentStr[strlen(percentStr)-1] == '%') percentStr[strlen(percentStr)-1] = '\0'; NSLog(@"%s %s %s", drvVersionStr, apmBiosVersionStr, percentStr); chargePercent = (float)atof(percentStr); if (chargePercent > 100) chargePercent = 100; if (chargePercent < 0) { chargePercent = 0; percentIsInvalid = YES; } // NSLog(@"percent %f", chargePercent); } if (battStatusStr != NULL && strlen(battStatusStr) > 0) { if (battStatusStr[3] == '0') battStatusInt = 0; else if (battStatusStr[3] == '1') battStatusInt = 1; else if (battStatusStr[3] == '2') battStatusInt = 2; else if (battStatusStr[3] == '3') battStatusInt = 3; else if (battStatusStr[3] == '4') battStatusInt = 4; else battStatusInt = -1; isCharging = NO; if (battStatusInt == 0) batteryState = BMBStateHigh; else if (battStatusInt == 1) batteryState = BMBStateLow; else if (battStatusInt == 2) { batteryState = BMBStateDischarging; isCritical = YES; } else if (battStatusInt == 3) { batteryState = BMBStateCharging; isCharging = YES; } else if (battStatusInt == 4) batteryState = BMBStateMissing; else batteryState = BMBStateUnknown; if (percentIsInvalid) { NSLog(@"Battery percent information is invalid."); if (battStatusInt == 0) chargePercent = 75; else if (battStatusInt == 1) chargePercent = 25; else if (battStatusInt == 2) chargePercent = 5; else if (battStatusInt == 3) chargePercent = 100; else if (battStatusInt == 4) chargePercent = 0; else chargePercent = 0; } } fclose(stateFile); } else if (usePMU) { NSString *strPmuInfo; NSString *strPmuBat; NSArray *arrayOfLines; NSArray *lineArray; NSString *strValue; strPmuInfo = [NSString stringWithContentsOfFile: @"/proc/pmu/info"]; arrayOfLines = [strPmuInfo componentsSeparatedByString: @"\n"]; NSLog(@"info %@", arrayOfLines); lineArray = [[arrayOfLines objectAtIndex: 2] componentsSeparatedByString: @":"]; strValue = [lineArray objectAtIndex: 1]; if ([strValue intValue] == 1) { isCharging = YES; batteryState = BMBStateCharging; } else { isCharging = NO; batteryState = BMBStateDischarging; } strPmuBat = [NSString stringWithContentsOfFile: @"/proc/pmu/battery_0"]; arrayOfLines = [strPmuBat componentsSeparatedByString: @"\n"]; NSLog(@"battery0 %@", arrayOfLines); lineArray = [[arrayOfLines objectAtIndex: 2] componentsSeparatedByString: @":"]; strValue = [lineArray objectAtIndex: 1]; currCap = (float)([strValue doubleValue] / 1000); lineArray = [[arrayOfLines objectAtIndex: 3] componentsSeparatedByString: @":"]; strValue = [lineArray objectAtIndex: 1]; lastCap = (float)([strValue doubleValue] / 1000); lineArray = [[arrayOfLines objectAtIndex: 4] componentsSeparatedByString: @":"]; strValue = [lineArray objectAtIndex: 1]; amps = (float)([strValue doubleValue] / 1000); lineArray = [[arrayOfLines objectAtIndex: 5] componentsSeparatedByString: @":"]; strValue = [lineArray objectAtIndex: 1]; volts = (float)([strValue doubleValue] / 1000); lineArray = [[arrayOfLines objectAtIndex: 6] componentsSeparatedByString: @":"]; strValue = [lineArray objectAtIndex: 1]; timeRemaining = (float)[strValue intValue] / 3600; desCap = lastCap; /* we can't do better with PMU */ chargePercent = currCap/lastCap*100; watts = amps * volts; } #endif /* OS */ } - (float)volts { return volts; } - (float)amps { return amps; } - (float)watts { return watts; } - (float)timeRemaining { return timeRemaining; } - (float)remainingCapacity { return currCap; } - (float)warningCapacity { return warnCap; } - (float)lastCapacity { return lastCap; } - (float)designCapacity { return desCap; } - (float)chargePercent { return chargePercent; } - (NSString *)state { NSString *s; switch(batteryState) { case BMBStateUnknown: s = @"Unknown"; break; case BMBStateCharging: s = @"Charging"; break; case BMBStateDischarging: s = @"Discharging"; break; case BMBStateHigh: s = @"High"; break; case BMBStateLow: s = @"Low"; break; case BMBStateCritical: s = @"Critical"; break; case BMBStateFull: s = @"Full"; break; case BMBStateMissing: s = @"Missing"; break; default: NSLog(@"Unrecognized battery state"); s = @"Unrecognized"; break; } return s; } - (NSString *)batteryType { return batteryType; } - (NSString *)manufacturer { return batteryManufacturer; } - (BOOL)isCritical { #if defined(linux) if(useACPIsys || useACPIproc) { return [self remainingCapacity] < [self warningCapacity]; } else if (useAPM) { return isCritical; } else #endif return isCritical; } - (BOOL)isCharging { return isCharging; } - (BOOL)isUsingWattHours { return useWattHours; } @end batmon-0.7/GNUmakefile000644 001751 000024 00000001737 12123140552 015376 0ustar00multixstaff000000 000000 # # GNUmakefile - Generated by ProjectCenter # ifeq ($(GNUSTEP_MAKEFILES),) GNUSTEP_MAKEFILES := $(shell gnustep-config --variable=GNUSTEP_MAKEFILES 2>/dev/null) endif ifeq ($(GNUSTEP_MAKEFILES),) $(error You need to set GNUSTEP_MAKEFILES before compiling!) endif include $(GNUSTEP_MAKEFILES)/common.make # # Application # VERSION = 0.7 PACKAGE_NAME = batmon APP_NAME = batmon batmon_APPLICATION_ICON = BatMon_icon.tif # # Resource files # batmon_RESOURCE_FILES = \ Resources/batmon.gorm \ Resources/BatMon_icon.tif \ Resources/small_battery.tif \ Resources/small_plug.tif \ Resources/LICENSE \ Resources/README # # Header files # batmon_HEADER_FILES = \ AppController.h \ BatteryModel.h # # Class files # batmon_OBJC_FILES = \ AppController.m \ BatteryModel.m # # Other sources # batmon_OBJC_FILES += \ main.m # # Makefiles # -include GNUmakefile.preamble include $(GNUSTEP_MAKEFILES)/aggregate.make include $(GNUSTEP_MAKEFILES)/application.make -include GNUmakefile.postamble batmon-0.7/GNUmakefile.postamble000644 001751 000024 00000001244 10277640111 017360 0ustar00multixstaff000000 000000 # # GNUmakefile.postamble - Generated by ProjectCenter # # Things to do before compiling # before-all:: # Things to do after compiling # after-all:: # Things to do before installing # before-install:: # Things to do after installing # after-install:: # Things to do before uninstalling # before-uninstall:: # Things to do after uninstalling # after-uninstall:: # Things to do before cleaning # before-clean:: # Things to do after cleaning # after-clean:: # Things to do before distcleaning # before-distclean:: # Things to do after distcleaning # after-distclean:: # Things to do before checking # before-check:: # Things to do after checking # after-check:: batmon-0.7/GNUmakefile.preamble000644 001751 000024 00000001207 12114232632 017155 0ustar00multixstaff000000 000000 # # GNUmakefile.preamble - Generated by ProjectCenter # # Additional flags to pass to the preprocessor ADDITIONAL_CPPFLAGS += # Additional flags to pass to Objective C compiler ADDITIONAL_OBJCFLAGS += # Additional flags to pass to C compiler ADDITIONAL_CFLAGS += # Additional flags to pass to the linker ADDITIONAL_LDFLAGS += # Additional include directories the compiler should search ADDITIONAL_INCLUDE_DIRS += # Additional library directories the linker should search ADDITIONAL_LIB_DIRS += # Additional GUI libraries to link ifeq ($(findstring netbsd, $(GNUSTEP_TARGET_OS)), netbsd) ADDITIONAL_GUI_LIBS += -lprop endif batmon-0.7/batmonInfo.plist000644 001751 000024 00000001123 12123140541 016460 0ustar00multixstaff000000 000000 { "!" = "Generated by ProjectCenter, do not edit"; ApplicationDescription = "Battery Monitor"; ApplicationIcon = "BatMon_icon.tif"; ApplicationName = batmon; ApplicationRelease = "0.7"; Authors = ( "Riccardo Mottola (rmottola@users.sf.net)" ); Copyright = "Copyright (C) 2005-2013"; CopyrightDescription = "Released under GPL"; FullVersionID = "0.7"; NSExecutable = batmon; NSIcon = "BatMon_icon.tif"; NSMainNibFile = "batmon.gorm"; NSPrincipalClass = NSApplication; NSRole = Application; URL = "http://gap.nongnu.org/batmon/"; } batmon-0.7/main.m000644 001751 000024 00000001715 10277640111 014426 0ustar00multixstaff000000 000000 /* Project: batmon Copyright (C) 2005 Free Software Foundation Author: Created: 2005-06-25 21:06:19 +0200 by multix 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. This application 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 Library General Public License for more details. You should have received a copy of the GNU General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ #include int main(int argc, const char *argv[]) { return NSApplicationMain (argc, argv); } batmon-0.7/batmon.pcproj/000755 001751 000024 00000000000 12114234460 016072 5ustar00multixstaff000000 000000 batmon-0.7/batmon.pcproj/PC.project000644 001751 000024 00000003357 12114234460 017774 0ustar00multixstaff000000 000000 { APPLICATIONICON = "BatMon_icon.tif"; "APP_DOCUMENT_BASED" = NO; "APP_TYPE" = GORM; "BUILDER_TARGETS" = ( all, install, uninstall, clean, distclean, dist ); "CLASS_FILES" = ( "AppController.m", "BatteryModel.m" ); COMPILEROPTIONS = ""; CPPOPTIONS = ""; "CREATION_DATE" = "2005-06-25 21:06:19 +0200"; "DOCU_FILES" = ( LICENSE, README ); FRAMEWORKS = ( ); "HEADER_FILES" = ( "AppController.h", "BatteryModel.h" ); IMAGES = ( "BatMon_icon.tif", "small_battery.tif", "small_plug.tif" ); INSTALLDIR = "$(HOME)/GNUstep"; INTERFACES = ( "batmon.gorm" ); LANGUAGE = English; LIBRARIES = ( "gnustep-base", "gnustep-gui" ); LINKEROPTIONS = ""; "LOCALIZED_RESOURCES" = ( ); MAININTERFACE = "batmon.gorm"; MAKEFILEDIR = "$(GNUSTEP_MAKEFILES)"; "OBJC_COMPILEROPTIONS" = ""; "OTHER_RESOURCES" = ( ); "OTHER_SOURCES" = ( "main.m" ); "PRINCIPAL_CLASS" = NSApplication; "PROJECT_AUTHORS" = ( "Riccardo Mottola (rmottola@users.sf.net)" ); "PROJECT_COPYRIGHT" = "Copyright (C) 2005-2013"; "PROJECT_COPYRIGHT_DESC" = "Released under GPL"; "PROJECT_CREATOR" = ""; "PROJECT_DESCRIPTION" = "Battery Monitor"; "PROJECT_DOCUMENTTYPES" = ( ); "PROJECT_GROUP" = "No group avaliable!"; "PROJECT_MAINTAINER" = ""; "PROJECT_NAME" = batmon; "PROJECT_RELEASE" = "0.6"; "PROJECT_SUMMARY" = "No summary avaliable!"; "PROJECT_TYPE" = Application; "PROJECT_URL" = "http://gap.nongnu.org/batmon/"; "SEARCH_HEADER_DIRS" = ( ); "SEARCH_LIB_DIRS" = ( ); SUBPROJECTS = ( ); "SUPPORTING_FILES" = ( "batmonInfo.plist" ); "USER_LANGUAGES" = ( English ); } batmon-0.7/Resources/batmon.gorm/000755 001751 000024 00000000000 12114232632 017512 5ustar00multixstaff000000 000000 batmon-0.7/Resources/BatMon_icon.tif000644 001751 000024 00000067034 11011705561 020176 0ustar00multixstaff000000 000000 MM*)0"?t0i*2(1:2N=R)bI)iQs0=D\ R  ' 'Adobe Photoshop 7.02008:05:12 01:47:06 adobe:docid:photoshop:8d6e9a6f-2141-11dd-8124-e6ef54ace4d8 8BIM%8BIM com.apple.print.PageFormat.PMHorizontalRes com.apple.print.ticket.creator com.apple.printingmanager com.apple.print.ticket.itemArray com.apple.print.PageFormat.PMHorizontalRes 72 com.apple.print.ticket.client com.apple.printingmanager com.apple.print.ticket.modDate 2008-05-11T21:19:21Z com.apple.print.ticket.stateFlag 0 com.apple.print.PageFormat.PMOrientation com.apple.print.ticket.creator com.apple.printingmanager com.apple.print.ticket.itemArray com.apple.print.PageFormat.PMOrientation 1 com.apple.print.ticket.client com.apple.printingmanager com.apple.print.ticket.modDate 2008-05-11T21:19:21Z com.apple.print.ticket.stateFlag 0 com.apple.print.PageFormat.PMScaling com.apple.print.ticket.creator com.apple.printingmanager com.apple.print.ticket.itemArray com.apple.print.PageFormat.PMScaling 1 com.apple.print.ticket.client com.apple.printingmanager com.apple.print.ticket.modDate 2008-05-11T21:19:21Z com.apple.print.ticket.stateFlag 0 com.apple.print.PageFormat.PMVerticalRes com.apple.print.ticket.creator com.apple.printingmanager com.apple.print.ticket.itemArray com.apple.print.PageFormat.PMVerticalRes 72 com.apple.print.ticket.client com.apple.printingmanager com.apple.print.ticket.modDate 2008-05-11T21:19:21Z com.apple.print.ticket.stateFlag 0 com.apple.print.PageFormat.PMVerticalScaling com.apple.print.ticket.creator com.apple.printingmanager com.apple.print.ticket.itemArray com.apple.print.PageFormat.PMVerticalScaling 1 com.apple.print.ticket.client com.apple.printingmanager com.apple.print.ticket.modDate 2008-05-11T21:19:21Z com.apple.print.ticket.stateFlag 0 com.apple.print.subTicket.paper_info_ticket com.apple.print.PageFormat.PMAdjustedPageRect com.apple.print.ticket.creator com.apple.printingmanager com.apple.print.ticket.itemArray com.apple.print.PageFormat.PMAdjustedPageRect 0.0 0.0 783 559 com.apple.print.ticket.client com.apple.printingmanager com.apple.print.ticket.modDate 2008-05-11T21:19:21Z com.apple.print.ticket.stateFlag 0 com.apple.print.PageFormat.PMAdjustedPaperRect com.apple.print.ticket.creator com.apple.printingmanager com.apple.print.ticket.itemArray com.apple.print.PageFormat.PMAdjustedPaperRect -18 -18 824 577 com.apple.print.ticket.client com.apple.printingmanager com.apple.print.ticket.modDate 2008-05-11T21:19:21Z com.apple.print.ticket.stateFlag 0 com.apple.print.PaperInfo.PMPaperName com.apple.print.ticket.creator com.apple.print.pm.PostScript com.apple.print.ticket.itemArray com.apple.print.PaperInfo.PMPaperName iso-a4 com.apple.print.ticket.client com.apple.print.pm.PostScript com.apple.print.ticket.modDate 2000-07-28T22:57:04Z com.apple.print.ticket.stateFlag 1 com.apple.print.PaperInfo.PMUnadjustedPageRect com.apple.print.ticket.creator com.apple.print.pm.PostScript com.apple.print.ticket.itemArray com.apple.print.PaperInfo.PMUnadjustedPageRect 0.0 0.0 783 559 com.apple.print.ticket.client com.apple.printingmanager com.apple.print.ticket.modDate 2008-05-11T21:19:21Z com.apple.print.ticket.stateFlag 0 com.apple.print.PaperInfo.PMUnadjustedPaperRect com.apple.print.ticket.creator com.apple.print.pm.PostScript com.apple.print.ticket.itemArray com.apple.print.PaperInfo.PMUnadjustedPaperRect -18 -18 824 577 com.apple.print.ticket.client com.apple.printingmanager com.apple.print.ticket.modDate 2008-05-11T21:19:21Z com.apple.print.ticket.stateFlag 0 com.apple.print.PaperInfo.ppd.PMPaperName com.apple.print.ticket.creator com.apple.print.pm.PostScript com.apple.print.ticket.itemArray com.apple.print.PaperInfo.ppd.PMPaperName A4 com.apple.print.ticket.client com.apple.print.pm.PostScript com.apple.print.ticket.modDate 2000-07-28T22:57:04Z com.apple.print.ticket.stateFlag 1 com.apple.print.ticket.APIVersion 00.20 com.apple.print.ticket.privateLock com.apple.print.ticket.type com.apple.print.PaperInfoTicket com.apple.print.ticket.APIVersion 00.20 com.apple.print.ticket.privateLock com.apple.print.ticket.type com.apple.print.PageFormatTicket 8BIMxHH/8Ag{HH(dh 8BIMHH8BIM&?8BIM Transparency8BIM Transparency8BIMd8BIM8BIM x8BIM8BIM 8BIM 8BIM' 8BIMH/fflff/ff2Z5-8BIMp8BIM8BIM8BIM@@8BIM8BIMY0)icon_battery_meter)0nullboundsObjcRct1Top longLeftlongBtomlong0Rghtlong)slicesVlLsObjcslicesliceIDlonggroupIDlongoriginenum ESliceOrigin autoGeneratedTypeenum ESliceTypeImg boundsObjcRct1Top longLeftlongBtomlong0Rghtlong)urlTEXTnullTEXTMsgeTEXTaltTagTEXTcellTextIsHTMLboolcellTextTEXT horzAlignenumESliceHorzAligndefault vertAlignenumESliceVertAligndefault bgColorTypeenumESliceBGColorTypeNone topOutsetlong leftOutsetlong bottomOutsetlong rightOutsetlong8BIM8BIM k)0|@OJFIFHH Adobe_CMAdobed            0)"?   3!1AQa"q2B#$Rb34rC%Scs5&DTdE£t6UeuF'Vfv7GWgw5!1AQaq"2B#R3$brCScs4%&5DTdEU6teuFVfv'7GWgw ?Ek~߳He i#s)QcVvYC |Z-93WEg?WʝkSCIk>(q+lwx(La0 ۬{\?.gP}ˉmNƿ=%6cٙ&L-,CG6:˞U?Up+t2 ]#5_-9fN*h~?pËXSehsL$S3>n-/VWc?Ыl[X'PZu.gCɽeVmw<3__[ܽZeO+H%gY^+p):dYk7eKulm46h1 w=~Ūz~j6"ƫ7eUVX*{?o;h q/H$ Qҭp/mwؓ3~7{'g\ft|lKm%3R͸{?.'3Z2.;Ow2m[pح{ͧ_}ic\'ntz]evؙund4+vs6kMc lw\9_]u[22Qk?~w"5ҺM<2H ˶,'wf]f/ _x8q~8BIM!UAdobe PhotoshopAdobe Photoshop 7.00ADBEmntrRGB XYZ acspAPPLnone-ADBE cprt2desc0kwtptbkptrTRCgTRCbTRCrXYZgXYZbXYZtextCopyright 1999 Adobe Systems IncorporateddescAdobe RGB (1998)XYZ QXYZ curv3curv3curv3XYZ OXYZ 4,XYZ &1/ P8$ BaPd?ÃS G;o-etqL\0ɤm7N`4n5!Xx0 (|E{o7L# V+Uiwf(p8M2X+5a`ME".Ȋu:g 7Pe@' 9)te`7[zP </0iʰ` lcNa>cy % MycH2 d@j{+& ^``2C"G}H*](2FnNyj!G%@jl& PvǡV0o@vEGwXqH `\P= @BZxdZ`| qX`5OuD"h' Lu0 ~CA\  ;jdN4&&QA l*@`i=wF| qDfv'0O8;`"uǸw93=s8gfH$B Ŧjp9D4 #9"4pu [T6*n+#2 0gq$B $Y@p6 rH&oXpxsf@&AaKA$KGx".0j&`I 氾/av`/R@.yZ8HEiJhF{n`X y'wH$ix5 Il~p. b )28w?D@@CA,~o 9$"`( - @ P(Ck3>[ #D``b&C((rb ql :C@`%DX5, pu D01T_ zz $V*E` @i,0e4=<:H<4v!@0|A8$#@>GCv<",< )>PB, )!3 R*x 5l.Aca+xu9@]AǰG.)"#P"[\*0CTkx5 iQ:i@Z  DCwz/?`QO@kТ |.]ňk ;(DCp7Èn"b p2X>"@4W' 8 #e#tKB@*>c6@($ ,D xlF=D hlb(C,ltBBQ˨@c 9 cc%D, p.?3$ 8%(c p|?Nzj_ ZD X-)+pn A4ưa@qӹ9b@FF: B` ;Dx!QQ (#-f ȉB&ՆAF#0|`l9@ڢ#`LC 5l> C:p@ #v@CgCq͕]@J I!&p[r!VNJ ےPpP*Ӡf htLA` D *KQ$.GÐ:08 #^Є q v@:zu X*h$qW6>h_=E5G@M6a|޳BG:Addk a!Fn.@ \DAE1@jkPР0!2*-Z(`@<) h`àZABJz 5D!XaP BX%(`bQ@ȑ &n#"@7`4L!dU"q!Sw`h ` O]1!a0& @ f@`  aTFl j` ѳ<Aa^  `1HA<AR  `d1 r,0aO@ m!142/%%E$a!F @ m%Rx@<a. @4&a{*b1 @. %*R-"r"*A@RQX3)xʞ&,A `!CT a&b|>B&:b` 0@Xd otm@4 L`2n<!`| :(s`@* 4((a`a! H a a &A~a-j%)E"-2* RF2:a 4OAkR.>ejjP*fB pA+ .Yp:`@>Y!)hA"OBoB!@ !!@$n|vab@H\+PR!c;R',.FU N <<dbM+">6:$^N3I1XaE$PTnRO恠B²\L )h+: -aZP@ %k `kl`jA<ŌLdG"9Z<*5b:김$@Cֲa`#:`@FB+ dS# A" !`v"`J N ` @Nt:F!r+eeay GF84CNX5>Hd8@D3հiBY<aOL "hBQ<#u"Dl bPZ{a0:aNcxL'˪s J j />W(O.4)HEH+`b(P¸@\\r3^*HDJ$b ,56DdNRv*Ats xAr,C\`"H`**!(!c`2m,cpHYrea9N ,jH{" a  RAœ<<,.CAӁZgx@`F 6jDCAfTV:OR*!tE+E2$ F~f2 $E$R; `@i(A0CY-aR!heB`JDV"[a*P¾R\e" PDRHV[xHC\Z"@ @3aN:CSg8vESd`Nc+[aæTJFaBs;gLYUoY<w><@9(C+tAa 6 8z,w y ACEAu@F`@(4]ͬA.AB҈!~@`T` O>~@.!nXALkL8({-b+zvxH TN )0Adobe Photoshop Document Data Block8BIMMTrn8BIMLayr0)8BIMnorm((Layer08BIMluniLayer08BIMlyid8BIMclbl8BIMinfx8BIMknko8BIMlspf8BIMlclr8BIMfxrpBH]aƭ !! * 4st Ze?gx]Ts>Ͱ=[;)(fS=} =@l &<1@C9:)t X(9Jlc4T7vṔ QŚ-w'ƖǞZK=@ėA¿no \ mԊ^ԃ`cuavqv|{rxkx/"opoŴ\}>X}LG_&n5aL#q:9GE=[/, ¤: {24B1$OF>3>kwx{(Ԛ4c]=XgJul1)Qiԓ!~xEK{Z2]q{t 㶥骇@>aClݨ>\]1ILdkUȺnYRw}FмJI{loo~DSo{{{{Z}_jnƜ|zhw~yż=U]ed;tnqje5ii]]C˨hbuufj6m\i}z\ް`~d|4^lo[YwᬤQ`sSIU|jr}]pǺ㩂s}zvw|7 6Bp[i}9SF-U>ThY.f\ 5F:\`\j~>RF5 52=D]zuhS5+77]?9TP`wm=+cd7 $>A\`YOOyrY-V궵0*/,fƲTciwY84 ;a QDrܝ`!. ʁӻͧ. \YCRmt]ORmu᧪՞ ӁyopCWwxY‡x{?wÒ{Q뭧ʼn3.>{vt設ŎɁ+IcĐA/hd{snÓ^ioFsrj~Piġ֪dbcue_HEͣקëȹʜؘΔ~ψԊ}tneaĭziTjYǼpIYfyOssےBnb݅kchqy[|ijUgw}}VIvwwaHwuNoţticnξɞ8BIMLMsk28BIMPattbatmon-0.7/Resources/LICENSE000644 001751 000024 00000042307 10277640111 016305 0ustar00multixstaff000000 000000 The GNU General Public License (GPL) Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what theProgram does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. one line to give the program's name and a brief idea of what it does. Copyright (C) This program 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. 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. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, IInc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License.batmon-0.7/Resources/README000644 001751 000024 00000001534 10277640111 016155 0ustar00multixstaff000000 000000 ========================== Battery Monitor ========================== written by Riccardo Mottola rmottola@users.sourceforge.net Home inside GAP, Gnustep Application Project Document Revision: 15 August 2005 Current Version: 0.1.0 WHAT IS IT ? ------------ Battery Monitor displays information about your laptop battery. Information include expected battery life, amperage and voltage. NOTES ----- - batmon parses the ACPI information exposed by the linux kernel inside the /proc pseudo filesystem. Thus it probably works with 2.6 kernels which layout the same information and with the same keywords as the laptop I use. HISTORY ------- -- what's new in 0.1.0 first public release COMPILATION ----------- - the project is managed with ProjectCenter on GNUstep. You can build it using PC or by just typing "make". batmon-0.7/Resources/small_battery.tif000755 001751 000024 00000000732 11256241446 020653 0ustar00multixstaff000000 000000 II*?@ 0B`$2 0A`X?瓉s2Z hB%鰺vE v=A}~UҬeFSlv[} umH\r_ ,ؚD}ǿ+o[F- jp[R@ixmW74Paint.NET v3.36`` (1=Rbatmon-0.7/Resources/small_plug.tif000755 001751 000024 00000000670 11256241446 020151 0ustar00multixstaff000000 000000 II* P8$ ?ర D`N- E"8J= EbԎ? `r-H7lbN_o3 ?;M& xS(t9]AGRh4kw=TZ4zQR[VDEd1ovYf4^ao^spbxn>VdP,6Paint.NET v3.36`` (1=Rbatmon-0.7/Resources/batmon.gorm/data.classes000644 001751 000024 00000001176 11377233722 022022 0ustar00multixstaff000000 000000 { "## Comment" = "Do NOT change this file, Gorm maintains it"; AppController = { Actions = ( "showMonitor:", "showPrefPanel:", "updateInfo:", "showBattInfo:" ); Outlets = ( voltage, amperage, presentCap, rate, percent, timeLeft, chState, level, monitorWin, infoWin, lifeGauge, lifeGaugePercent, designCap, battType, manufacturer, lastFullCharge ); Super = NSObject; }; FirstResponder = { Actions = ( "showBattInfo:", "showMonitor:", "showPrefPanel:", "updateInfo:" ); Super = NSObject; }; }batmon-0.7/Resources/batmon.gorm/data.info000644 001751 000024 00000000274 12114232632 021303 0ustar00multixstaff000000 000000 GNUstep archive00002fa9:00000003:00000003:00000000:01GormFilePrefsManager1NSObject%01NSString&%GNUstep gui-0.10.30& % Typed Streambatmon-0.7/Resources/batmon.gorm/objects.gorm000644 001751 000024 00000031475 12114232632 022043 0ustar00multixstaff000000 000000 GNUstep archive00002fa9:00000021:00000158:00000001:01GSNibContainer1NSObject01NSMutableDictionary1 NSDictionary&801NSString&%Button101NSButton1 NSControl1NSView1 NSResponder% B A B` A  B` A&01 NSMutableArray1 NSArray&%01 NSButtonCell1 NSActionCell1NSCell0&%Info01NSFont%&&&&&&&&&&&&&&%0 &0 &&&& &&0 & % NSVisible0 &0 1GSWindowTemplate1GSClassSwapper0&%NSWindow1NSWindow% ? A C C&% Cq D0% ? A C C  C C&0 &0% C; A B` A  B` A&0 &%0 0&%Refresh&&&&&&&&&&&&&&%0&0&&&& &&01NSBox% A C4 Cb B  Cb B&0 &0% @ @ CT B  CT B&0 &01NSProgressIndicator% @@ C A  C A&0 & ?UUUUUU @I @Y01 NSTextField% C$ @@ B@ A  B@ A&0 &%01NSTextFieldCell0 &%50%0!% A@&&&&&&&& &&&&&&%0"1NSColor0#&%NSNamedColorSpace0$&%System0%&%textBackgroundColor0&#$0'& % textColor0(% A B A  B A&0) &%0*0+& % Time Left:0,% A@&&&&&&&& &&&&&&%"&0-% C A B A  B A&0. &%0/00&%0,&&&&&&&& &&&&&&%"&01% C BL B A  B A&02 &%0304&%charging,&&&&&&&& &&&&&&%"&05% BL B A  B A&06 &%0708&%Status:,&&&&&&&& &&&&&&%"&090:&%Life Information&&&&&&&&&&&&&& @ @%%0;% A B Cb B  Cb B&0< &0=% @ @ CT B  CT B&0> &0?% CY B B A  B A&0@ &%0A0B&%0,&&&&&&&& &&&&&&%"&0C% CY B8 B A  B A&0D &%0E0F&%0,&&&&&&&& &&&&&&%"&0G% CY  B A  B A&0H &%0I0J&%0,&&&&&&&& &&&&&&%"&0K%  B A  B A&0L &%0M0N&%Voltage,&&&&&&&& &&&&&&%"&0O% B B A  B A&0P &%0Q0R&%Remaining Capacity,R&&&&&&&& &&&&&&%"&0S% B8 B A  B A&0T &%0U0V&%Discharge Rate,V&&&&&&&& &&&&&&%"&0W% A B A  B A&0X &%0Y0Z&%Current,&&&&&&&& &&&&&&%"&0[% CY A B A  B A&0\ &%0]0^&%0,&&&&&&&& &&&&&&%"&0_0`& % Cell Data`&&&&&&&&&&&&&& @ @%%0a#0b&%System0c&%windowBackgroundColor0d&%Window0e&%Battery Monitore ? ? F@ F@%&  DH D0f& % MenuItem10g1 NSMenuItem0h&%Quit0i&%q&&%0j1NSImage0k1NSMutableString&%common_2DCheckMark0l0m& % common_2DDash%0n&%Box10o& % MenuItem20p0q&%Hide0r&%h&&%jl%0s&%Box20t% A` B Co B  Co B&0u &0v% @ @ Ca B  Ca B&0w &0x% BX B A  B A&0y &%0z0{&%Design capacity:,{&&&&&&&& &&&&&&%"&0|% C BX B A  B A&0} &%0~0&%0,&&&&&&&& &&&&&&%"&0% A B A  B A&0 &%00&%Last full capacity:,&&&&&&&& &&&&&&%"&0%  B A  B A&0 & ?UUUUUU @I @Y0% C  B A  B A&0 &%00&%0,&&&&&&&& &&&&&&%"&0% C A B A  B A&0 &%00&%0,&&&&&&&& &&&&&&%"&00& % cell health&&&&&&&&&&&&&& @ @%%0& % MenuItem3g0& % MenuItem4p0& % MenuItem5g0& % MenuItem600&%Info0&&&%jl2 submenuAction:v12@0:4@8%01NSMenu0 &00& % Info Panel...0&&&%jl%00&%Preferences...0&&&%jl%00&%Help...0&%?&&%jl%00&%BatMon0 &00&%Monitor0&&&%jl%pg0& % MenuItem70& % MenuItem(0)0&%MenuItemp0& % NSDeferred0 & 0& % MenuItem80& % AppController01 GSNibItem  &0& % MenuItem90& % TextField1C0& % TextField2G0&%Button0& % TextField30& % TextField4K0& % TextField5O0& % TextField(1)0% C A B A  B A&0 &%00&%-&&&&&&&& &&&&&&%"&0& % BattInfoWin0% ? A C C0&% C D0% ? A C C0  C C0&0 &0% A` B B A  B A&0 &%0±0ñ& % Battery type:,&&&&&&&& &&&&&&%"&0ı% C# B B A  B A&0ű &%0Ʊ0DZ&%-,&&&&&&&& &&&&&&%"&t0ȱ% A` A B A  B A&0ɱ &%0ʱ0˱& % Manufacturer:,&&&&&&&& &&&&&&%"&a0̱&%Window0ͱ& % Battery Info ? ? F@ F@%&  DH D0α& % TextField6S0ϱ& % TextField?0б& % TextField7(0ѱ&%View(0)=0ұ& % TextField8-0ӱ& % TextField910Ա& % GormNSMenu0ձ&%MainWin 0ֱ&%ProgressIndicator10ױ& % TextField1050ر& % TextField11W0ٱ& % TextField12[0ڱ& % TextField13x0۱&%View(2)0ܱ& % TextField14|0ݱ& % TextField150ޱ&%Box0߱% A BD Cb B  Cb B&0 &0% @c @ CTY B  CTY B&0 &00& % Cell Data&&&&&&&&&&&&&& @c @%%0& % TextField160& % TextField170& % TextField180& % TextField190& % TextField(0)0&%Box(0);0& % MenuItem100&%GSCustomClassMap0&0& % MenuItem11p0& % MenuItem12g0&%NSMenu0&%View(1)v0&%ProgressIndicator0&%NSOwner0& % NSApplication0 &EE01NSNibConnectorհ0001NSNibControlConnector0&%NSFirst0&%hide:000& % terminate:0ϰPPPPPP& % updateInfo:PېP1NSNibOutletConnectorP&%levelP ېP P &%percentP P & % presentCapPP&%ratePP&%voltagePPPΰPаېPҰېPP&%timeLeftPސPnPPP&%submenuAction:P԰PԐP P!&%orderFrontStandardInfoPanel:P"ԐP#ԐP$P%&%orderFrontHelpPanel:P&ӰېP'װېP(P)&%chStateP*ذP+ٰP,P-ڰP.ܰP/ݰP0ְP1P2P3琐P4萐P5sP6P7&%amperageP8P9P:& % showBattInfo:P;P<&%battTypeP=P>& % designCapP?P@&%lastFullChargePAPB&%lifeGaugePercentPCPD& % lifeGaugePEPF&%infoWinPGꐐPHѰPIsPJ۰nPKPLPM& % showMonitor:PNPO& % monitorWinPP鐐PQPRPS& % manufacturerPT1 NSMutableSet1!NSSet&