Commit 067703e8 authored by Yavor Doganov's avatar Yavor Doganov

Import upstream batmon.app version 0.5

Imported batmon-0.5
into pkg-gnustep-maintainers@lists.alioth.debian.org--debian/batmon-app--head--1.0



git-archimport-id: pkg-gnustep-maintainers@lists.alioth.debian.org--debian/batmon-app--head--1.0--patch-2
parent 0872925b
#
# GNUmakefile - Generated by ProjectCenter
#
include $(GNUSTEP_MAKEFILES)/common.make
#
# Application
#
VERSION = 0.3
PACKAGE_NAME = batmon
APP_NAME = batmon
batmon_APPLICATION_ICON =
GNUSTEP_INSTALLATION_DIR = $(HOME)/GNUstep
#
# Resource files
#
batmon_RESOURCE_FILES = \
Resources/batmon.gorm\
Resources/Info-gnustep.plist\
Resources/LICENSE \
Resources/README
#
# Header files
#
batmon_HEADER_FILES = \
AppController.h
#
# Class files
#
batmon_OBJC_FILES = \
AppController.m
#
# C files
#
batmon_C_FILES =
batmon_OBJC_FILES += \
main.m
#
# Makefiles
#
-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/aggregate.make
include $(GNUSTEP_MAKEFILES)/application.make
-include GNUmakefile.postamble
/*
Project: batmon
Copyright (C) 2005 Riccardo Mottola
Copyright (C) 2005-2010 GNUstep Application Project
Author: Riccardo Mottola
......@@ -26,6 +26,7 @@
#import <AppKit/AppKit.h>
#import "BatteryModel.h"
@interface AppController : NSObject
{
......@@ -38,31 +39,24 @@
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;
float volts;
float amps;
float watts;
float desCap;
float lastCap;
float currCap;
float chargePercent;
float timeRemaining;
int hours;
int mins;
NSString *chargeState;
NSString *batteryType;
}
+ (void)initialize;
NSDictionary *stateStrAttributes;
NSImage *iconBattery;
NSImage *iconPlug;
- (id)init;
- (void)dealloc;
BatteryModel *batModel;
@private int hours;
@private int mins;
}
- (void)awakeFromNib;
......@@ -71,9 +65,11 @@
- (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
This diff is collapsed.
/*
Project: batmon
Copyright (C) 2006-2010 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.
*/
@class NSString;
@interface BatteryModel : NSObject
{
#if defined (linux)
@private char batteryStatePath0[1024];
@private char batteryInfoPath0[1024];
@private char apmPath[1024];
@private NSString *batterySysAcpiString;
#endif
@private BOOL useACPIsys;
@private BOOL useACPIproc;
@private BOOL useAPM;
@private BOOL useWattHours;
@private float volts;
@private float amps;
@private float watts;
@private float desCap;
@private float lastCap;
@private float currCap;
@private float warnCap;
@private float chargePercent;
@private float timeRemaining;
@private BOOL isCharging;
@private NSString *chargeState;
@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
This diff is collapsed.
#
# 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.2
VERSION = 0.5
PACKAGE_NAME = batmon
APP_NAME = batmon
batmon_APPLICATION_ICON =
GNUSTEP_INSTALLATION_DIR = $(HOME)/GNUstep
batmon_APPLICATION_ICON = BatMon_icon.tif
#
# Resource files
#
batmon_RESOURCE_FILES = \
Resources/batmon.gorm\
Resources/Info-gnustep.plist\
Resources/batmon.gorm \
Resources/BatMon_icon.tif \
Resources/small_battery.tif \
Resources/small_plug.tif \
Resources/LICENSE \
Resources/README
Resources/README
#
# Header files
#
batmon_HEADER_FILES = \
AppController.h
AppController.h \
BatteryModel.h
#
# Class files
#
batmon_OBJC_FILES = \
AppController.m
AppController.m \
BatteryModel.m
#
# C files
# Other sources
#
batmon_C_FILES =
batmon_OBJC_FILES += \
main.m
......
......@@ -20,3 +20,6 @@ ADDITIONAL_INCLUDE_DIRS +=
# Additional library directories the linker should search
ADDITIONAL_LIB_DIRS +=
# Additional GUI libraries to link
ADDITIONAL_GUI_LIBS +=
{
APPLICATIONICON = "";
APPLICATIONICON = BatMon_icon.tif;
APP_DOCUMENT_BASED = NO;
APP_TYPE = GORM;
CLASS_FILES = (
AppController.m
AppController.m,
BatteryModel.m
);
COMPILEROPTIONS = "";
CPPOPTIONS = "";
......@@ -14,16 +16,18 @@
FRAMEWORKS = (
);
HEADER_FILES = (
AppController.h
AppController.h,
BatteryModel.h
);
IMAGES = (
BatMon_icon.tif
);
INSTALLDIR = "$(HOME)/GNUstep";
INTERFACES = (
batmon.gorm
);
LANGUAGE = English;
LAST_EDITING = "2005-10-05 23:39:53 +0200";
LAST_EDITING = "2009-06-12 00:00:07 +0200";
LIBRARIES = (
"gnustep-base",
"gnustep-gui"
......@@ -41,14 +45,15 @@
main.m
);
PC_WINDOWS = {
ProjectWindow = "153 142 698 600 0 0 960 768 ";
ProjectBrowser = "{x = -1.54416; y = -1.34037e-05; width = 841; height = 191}";
ProjectWindow = "84 129 859 599 0 0 1024 768 ";
ShowToolbar = YES;
};
PRINCIPAL_CLASS = NSApplication;
PROJECT_AUTHORS = (
"Riccardo Mottola (rmottola@users.sf.net)"
);
PROJECT_COPYRIGHT = "Copyright (C) 2005";
PROJECT_COPYRIGHT = "Copyright (C) 2005-2009";
PROJECT_COPYRIGHT_DESC = "Released under GPL";
PROJECT_CREATOR = "";
PROJECT_DESCRIPTION = "Battery Monitor";
......@@ -57,10 +62,10 @@
PROJECT_GROUP = "No group avaliable!";
PROJECT_MAINTAINER = "";
PROJECT_NAME = batmon;
PROJECT_RELEASE = 0.2;
PROJECT_RELEASE = 0.4;
PROJECT_SUMMARY = "No summary avaliable!";
PROJECT_TYPE = Application;
PROJECT_URL = "";
PROJECT_URL = "http://gap.nongnu.org/batmon/";
SEARCH_HEADER_DIRS = (
);
SEARCH_LIB_DIRS = (
......@@ -68,9 +73,7 @@
SUBPROJECTS = (
);
SUPPORTING_FILES = (
GNUmakefile.preamble,
GNUmakefile,
GNUmakefile.postamble
batmonInfo.plist
);
USER_LANGUAGES = (
English
......
{
APPLICATIONICON = BatMon_icon.tif;
APP_DOCUMENT_BASED = NO;
APP_TYPE = GORM;
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
);
INSTALLDIR = "$(HOME)/GNUstep";
INTERFACES = (
batmon.gorm
);
LANGUAGE = English;
LAST_EDITING = "2009-06-12 00:00:06 +0200";
LIBRARIES = (
"gnustep-base",
"gnustep-gui"
);
LINKEROPTIONS = "";
LOCALIZED_RESOURCES = (
);
MAININTERFACE = batmon.gorm;
MAKEFILEDIR = "$(GNUSTEP_MAKEFILES)";
OBJC_COMPILEROPTIONS = "";
OTHER_RESOURCES = (
"Info-gnustep.plist"
);
OTHER_SOURCES = (
main.m
);
PC_WINDOWS = {
ProjectBrowser = "{x = -1.54416; y = -1.34037e-05; width = 841; height = 191}";
ProjectWindow = "84 129 859 599 0 0 1024 768 ";
ShowToolbar = YES;
};
PRINCIPAL_CLASS = NSApplication;
PROJECT_AUTHORS = (
"Riccardo Mottola (rmottola@users.sf.net)"
);
PROJECT_COPYRIGHT = "Copyright (C) 2005-2009";
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.4;
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
);
}
\ No newline at end of file
......@@ -2,31 +2,35 @@
"## Comment" = "Do NOT change this file, Gorm maintains it";
AppController = {
Actions = (
"showMonitor:",
"showPrefPanel:",
"updateInfo:",
"showBattInfo:"
);
Outlets = (
rate,
presentCap,
voltage,
level,
amperage,
presentCap,
rate,
percent,
chState,
timeLeft,
amperage,
chState,
level,
monitorWin,
infoWin,
battType,
designCap,
lastFullCharge,
lifeGauge,
lifeGaugePercent
lifeGaugePercent,
designCap,
battType,
manufacturer,
lastFullCharge
);
Super = NSObject;
};
FirstResponder = {
Actions = (
"showBattInfo:",
"showMonitor:",
"showPrefPanel:",
"updateInfo:"
);
......
{
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-2010";
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.5;
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
);
}
\ No newline at end of file
{LAST_EDITING = "2009-11-05 19:56:29 +0100"; PC_WINDOWS = {ProjectBrowser = "{x = 0; y = 0; width = 841; height = 166}"; ProjectLaunch = "519 70 482 354 0 0 1024 768 "; ProjectWindow = "84 129 859 599 0 0 1024 768 "; ShowToolbar = YES; }; }
\ No newline at end of file
{
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-2010";
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.5;
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
);
}
\ No newline at end of file
{LAST_EDITING = "2010-06-03 00:00:33 +0200"; PC_WINDOWS = {ProjectBrowser = "{x = 0; y = 0; width = 841; height = 166}"; ProjectBuild = "0 0 0 0 0 0 0 0 "; ProjectLaunch = "519 70 482 354 0 0 1024 768 "; ProjectWindow = "84 129 859 599 0 0 1024 768 "; ShowToolbar = YES; }; }
\ No newline at end of file
{
"!" = "Generated by ProjectCenter, do not edit";
ApplicationDescription = "Battery Monitor";
ApplicationIcon = BatMon_icon.tif;
ApplicationName = batmon;
ApplicationRelease = 0.2;
ApplicationRelease = 0.5;
Authors = (
"Riccardo Mottola (rmottola@users.sf.net)"
);
Copyright = "Copyright (C) 2005";
Copyright = "Copyright (C) 2005-2010";
CopyrightDescription = "Released under GPL";
FullVersionID = 0.2;
FullVersionID = 0.5;
NSExecutable = batmon;
NSIcon = BatMon_icon.tif;
NSMainNibFile = batmon.gorm;
NSPrincipalClass = NSApplication;
NSRole = Application;
URL = "http://gap.nongnu.org/batmon/";
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment