Files
textmate/Frameworks/BundleEditor/src/BundleEditor.h
Allan Odgaard 9894969e67 Initial commit
2012-08-09 16:25:56 +02:00

33 lines
918 B
Objective-C

#include <document/document.h>
#include <bundles/bundles.h>
@class OakDocumentView;
@class PropertiesViewController;
namespace be { struct entry_t; typedef std::tr1::shared_ptr<entry_t> entry_ptr; } /* be */
@interface BundleEditor : NSWindowController <NSBrowserDelegate>
{
IBOutlet NSBrowser* browser;
IBOutlet OakDocumentView* documentView;
NSDrawer* drawer;
PropertiesViewController* sharedPropertiesViewController;
PropertiesViewController* extraPropertiesViewController;
be::entry_ptr bundles;
std::map<bundles::item_ptr, plist::dictionary_t> changes;
BOOL propertiesChanged;
bundles::item_ptr bundleItem;
document::document_ptr bundleItemContent;
NSMutableDictionary* bundleItemProperties;
document::document_t::callback_t* documentCallback;
}
+ (BundleEditor*)sharedInstance;
- (void)revealBundleItem:(bundles::item_ptr const&)anItem;
- (IBAction)browserSelectionDidChange:(id)sender;
@end