/*
	PKPresentationBuilder.h
 
	Abstract Presentation class that returns concrete presentation objects 
    (used by PKPreferencesController as layout delegates)
 
	Copyright (C) 2004 Quentin Mathe
                       Uli Kusterer
 
	Author:  Quentin Mathe <qmathe@club-internet.fr>
             Uli Kusterer
    Date:  January 2005
 
	This library is free software; you can redistribute it and/or
	modify it under the terms of the GNU Lesser General Public
	License as published by the Free Software Foundation; either
	version 2.1 of the License, or (at your option) any later version.
 
	This library 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
	Lesser General Public License for more details.
 
	You should have received a copy of the GNU Lesser General Public
	License along with this library; if not, write to the Free Software
	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#import <Foundation/Foundation.h>

@protocol UKTest;

@protocol PKPaneOwner;
@class PKPane;
@class PKPanesController;

extern const NSString *PKNoPresentationMode;
extern const NSString *PKOtherPresentationMode;

@interface PKPresentationBuilder : NSObject 
{
  /* For convenience */
  PKPanesController *controller;
  NSArray *allLoadedPlugins;
}

+ (id) builderForPresentationMode: (const NSString *)presentationMode;

/* Method to inject custom Presentation */
+ (BOOL) inject: (id)obj forKey: (id)key;

/* Preferences UI related stuff */
- (void) setPanesController: (PKPanesController *) controller;
- (void) loadUI;
- (void) unloadUI;
- (void) layoutPreferencesViewWithPaneView: (NSView *)paneView;

/* Method from PKPreferencesController which needs to be customized in subclass */
- (void) switchPaneView: (id)sender;

/* Abstract accessors methods */
- (const NSString *) presentationMode;

- (void) willSelectPaneWithIdentifier: (NSString *) identifier;
- (void) didSelectPaneWithIdentifier: (NSString *)identifier;

@end
