//
//  MainController.h
//  VH7PC_Controller
//
//  Created by NYA on Wed Jul 09 2003.
//  Copyright (c) 2003 __MyCompanyName__. All rights reserved.
//

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

typedef enum{
    powerM = 0,
	inputM = 1,
	volumeM = 2,
	muteM = 3,
	toneM = 4,
	
	playthroughM = 5
} mainmenuTag;


@interface MainController : NSObject {
    IBOutlet id _vh7pcMenu;
    IBOutlet id _vh7pc;
    IBOutlet id _prefs;
    IBOutlet id _directCtrl;
    
    IBOutlet id _cdMenu;
    IBOutlet id _mdMenu;
    IBOutlet id _bandMenu;
    IBOutlet id _tapeMenu;
    IBOutlet id _notfoundMenu;
    IBOutlet id _mainMenu;

    IBOutlet id _aboutPanel;
    IBOutlet id _prefPanel;
    IBOutlet id _hotkeyPanel;

    NSStatusItem *_sbItem;
    BOOL _sbItemShowing;
	
	IBOutlet id	recoder_;
	IBOutlet id	reservation_;
	IBOutlet id	reservationPanel_;
	
	int menuItemsCount_;
}

-(void)addVH7PC;
-(void)removeVH7PC;

-(void)updateMenu;
-(void)setMenuImage:(BOOL)b;

-(void)inlineSubmenu:(NSMenu *)sm inMenu:(NSMenu *)mm;
-(void)removeItems:(NSMenu *)menu withRange:(NSRange)r;
-(void)removeAllItems:(NSMenu *)menu;
-(void)setOffState:(NSMenu *)m;
-(NSString *)decimal2Str:(int)i;

-(BOOL)sbItemShowing;
-(void)menuItemTrigger;
-(IBAction)goHome:(id)sender;
-(IBAction)quit:(id)sender;


- (IBAction) recordSetting:(id) sender;

@end
