//
//  XTNotifications.h
//  XTads
//
//  Created by Rune Berg on 11/12/14.
//  Copyright (c) 2014 Rune Berg. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "XTPrefsItem.h"

//TODO ren ...NotificationName...
#define XTadsNotifyGameWindowClosed @"XTadsGameWindowClosed"
#define XTadsNotifyPrefsWindowClosed @"XTadsNotifPrefsWindowClosed"
#define XTadsNotifyAboutWindowClosed @"XTadsNotifyAboutWindowClosed"
#define XTadsNotifyModalPanelOpened @"XTadsNotifyModalPanelOpened"
#define XTadsNotifyModalPanelClosed @"XTadsNotifyModalPanelClosed"
#define XTadsNotifyAutoAskForGameFile @"XTadsNotifyAutoAskForGameFile"
#define XTadsNotifyTextLinkClicked @"XTadsNotifyTextLinkClicked"
#define XTadsNotifySetFocusToMainOutput @"XTadsNotifySetFocusToMainOutput"
#define XTadsNotifyPrefsChanged @"XTadsNotifyPrefsChanged"

#define XTadsNotificationUserInfoKeyLink @"link"
#define XTadsNotificationUserInfoKeyLinkCharIndex @"linkCharIndex"
#define XTadsNotificationUserInfoKeyPrefsItem @"prefsItem"


@interface XTNotifications : NSObject

+ (void)notifyModalPanelOpened:(id)sender;

+ (void)notifyModalPanelClosed:(id)sender;

+ (void)notifyPrefsWindowClosed:(id)sender;

+ (void)notifyAboutWindowClosed:(id)sender;

+ (void)notifyAboutTextLinkClicked:(id)sender linkText:(NSString *)linkText charIndex:(NSUInteger)charIndex;

+ (void)notifySetFocusToMainOutputView:(id)sender;

+ (void)notifyPrefsChanged:(id)sender forPrefsItem:(XTPrefsItem *)prefsItem;

@end
