
#import "AqAboutBoxController.h"
#import "DWVersionChecker.h"


@implementation AqAboutBoxController

/* Awake */

    - (void) awakeFromNib; {
        [versionField setStringValue: [NSString stringWithFormat: @"Version %@", [DWVersionChecker applicationVersion]]];
    }
    

/* Actions */
    
    - (IBAction) xlife: (id) sender; {
        [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: @"http://www.acqlite.org/"]];
    }
    
    - (IBAction) support: (id) sender; {
        [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: @"http://www.acqlite.org/forums/"]];
    }
    
    - (IBAction) donate: (id) sender; {
        [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: @"http://www.acqlite.org/index.php?faq"]];
    }
    
    - (IBAction) email: (id) sender; {
        [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: [NSString stringWithFormat: @"mailto:robin@acqlite.org?subject=AcqLite(%@)", [DWVersionChecker applicationVersion]]]];
    }

@end