//
//  WBObjectDescriptionController.h
//  MySQLWorkbench
//
//  Created by Alfredo Kojima on 18/Dec/08.
//  Copyright 2008 Sun Microsystems Inc. All rights reserved.
//

#import "sigobjc++.h"
#import <Cocoa/Cocoa.h>
#include "workbench/wb_context_ui.h"

@interface WBObjectDescriptionController : NSObject {
  IBOutlet NSPopUpButton *popup;
  IBOutlet NSTextView *text;
  IBOutlet NSButton *forceEditButton;
  
  NSTimer *_timer;
  
  wb::WBContextUI *_wbui;
  BOOL _initializing;
  BOOL _multipleItems;
  grt::ListRef<GrtObject> *_objectList;
}

- (void)setWBContext:(wb::WBContextUI*)be;

- (void)updateForForm:(bec::UIForm*)form;

- (IBAction)changePopup:(id)sender;
- (IBAction)forceEdit:(id)sender;

- (void)commit;

@end
