/*
   GNUstep ProjectCenter - http://www.gnustep.org

   Copyright (C) 2001 Free Software Foundation

   Authors: Philippe C.D. Robert
            Serg Stoyan

   This file is part of GNUstep.

   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.
*/

#ifndef _PCPREFCONTROLLER_H
#define _PCPREFCONTROLLER_H

#include <AppKit/AppKit.h>

#define PCSavePeriodDidChangeNotification @"PCSavePeriodDidChangeNotification"
#define PCPreferencesDidChangeNotification @"PCPreferencesDidChangeNotification"

#ifndef PCDefaultBuildTool 
#define PCDefaultBuildTool @"/usr/bin/make"
#endif

#ifndef PCDefaultDebugger
#define PCDefaultDebugger @"/usr/bin/gdb"
#endif

@interface PCPrefController : NSObject
{
  IBOutlet NSPanel       *panel;
  IBOutlet NSPopUpButton *popupButton;
  IBOutlet NSBox         *sectionsView;

  IBOutlet NSBox         *buildingView;
  IBOutlet NSTextField   *successField;
  IBOutlet NSButton      *setSuccessButton;
  IBOutlet NSTextField   *failureField;
  IBOutlet NSButton      *setFailureButton;
  IBOutlet NSTextField   *rootBuildDirField;
  IBOutlet NSButton      *rootBuildDirButton;
  IBOutlet NSButton      *promptOnClean;

  IBOutlet NSBox         *savingView;
  IBOutlet NSButton      *saveOnQuit;
  IBOutlet NSButton      *keepBackup;
  IBOutlet NSSlider      *autosaveSlider;
  IBOutlet NSTextField   *autosaveField;
  
  IBOutlet NSBox         *keyBindingsView;
  IBOutlet NSMatrix      *tabMatrix;
  IBOutlet NSButton      *tabSpacesField;
  
  IBOutlet NSBox         *miscView;
  IBOutlet NSButton      *promptWhenQuit;
  IBOutlet NSButton      *deleteCache;
  IBOutlet NSButton      *fullPathInFilePanels;
  IBOutlet NSTextField   *buildToolField;
  IBOutlet NSTextField   *debuggerField;
  IBOutlet NSTextField   *editorField;

  IBOutlet NSBox         *interfaceView;
  IBOutlet NSButton      *separateBuilder;
  IBOutlet NSButton      *separateLauncher;
  IBOutlet NSButton      *separateEditor;
  IBOutlet NSButton      *separateLoadedFiles;
  IBOutlet NSTextField   *editorLinesField;
  IBOutlet NSTextField   *editorColumnsField;
  IBOutlet NSButton      *rememberWindows;
  IBOutlet NSButton      *displayLog;
  
  IBOutlet NSBox         *bundlesView;
  IBOutlet NSTextField   *bundlePathField;
  
  NSMutableDictionary    *preferencesDict;
}

+ (PCPrefController *)sharedPCPreferences;

- (id)init;
- (void)dealloc;
- (void)setDefaultValues;
- (void)loadPreferences;

- (NSDictionary *)preferencesDict;
- (id)objectForKey:(NSString *)key;
- (NSString *)selectFileWithTypes:(NSArray *)types;
- (void)showPanel:(id)sender;

- (void)popupChanged:(id)sender;

- (void)setSuccessSound:(id)sender;
- (void)setFailureSound:(id)sender;
- (void)setRootBuildDir:(id)sender;
- (void)setPromptOnClean:(id)sender;

- (void)setSaveOnQuit:(id)sender;
- (void)setKeepBackup:(id)sender;
- (void)setSavePeriod:(id)sender;

- (void)setPromptWhenQuit:(id)sender;
- (void)setDeleteCache:(id)sender;
- (void)setFullPathInFilePanels:(id)sender;
- (void)setDebugger:(id)sender;
- (void)setEditor:(id)sender;

- (void)setDisplayPanels:(id)sender;
- (void)setEditorSize:(id)sender;
- (void)setEditorSizeEnabled:(BOOL)yn;
- (void)setRememberWindows:(id)sender;
- (void)setDisplayLog:(id)sender;

- (void)setBundlePath:(id)sender;

@end

#endif



syntax highlighted by Code2HTML, v. 0.9.1