2020-09-14 02:48:55 +00:00
|
|
|
//
|
|
|
|
// TableCellView.h
|
|
|
|
// Ample
|
|
|
|
//
|
|
|
|
// Created by Kelvin Sherlock on 9/13/2020.
|
|
|
|
// Copyright © 2020 Kelvin Sherlock. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
//NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
2021-08-07 19:12:20 +00:00
|
|
|
enum {
|
|
|
|
kIndexFloppy525 = 0,
|
|
|
|
kIndexFloppy35,
|
|
|
|
kIndexHardDrive,
|
|
|
|
kIndexCDROM,
|
|
|
|
kIndexCassette,
|
|
|
|
kIndexDiskImage,
|
|
|
|
kIndexBitBanger,
|
|
|
|
kIndexMidiIn,
|
|
|
|
kIndexMidiOut,
|
|
|
|
kIndexPicture, // computer eyes -pic, .png only.
|
|
|
|
// kIndexPrintout // -prin, .prn extension only?
|
|
|
|
|
|
|
|
kIndexLast
|
|
|
|
};
|
|
|
|
#define CATEGORY_COUNT 10
|
|
|
|
static_assert(kIndexLast == CATEGORY_COUNT, "Invalid Category Count");
|
2020-09-14 02:48:55 +00:00
|
|
|
|
2021-08-07 19:12:20 +00:00
|
|
|
|
|
|
|
@interface MediaTableCellView : NSTableCellView
|
2020-09-14 02:48:55 +00:00
|
|
|
@property (weak) IBOutlet NSButton *ejectButton;
|
|
|
|
@property (weak) IBOutlet NSImageView *dragHandle;
|
|
|
|
@property BOOL movable;
|
2021-08-07 19:12:20 +00:00
|
|
|
|
|
|
|
-(void)prepareView: (NSInteger)category;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface PathTableCellView : MediaTableCellView <NSPathControlDelegate>
|
|
|
|
@property (weak) IBOutlet NSPathControl *pathControl;
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@interface MidiTableCellView : MediaTableCellView
|
|
|
|
@property (weak) IBOutlet NSPopUpButton *popUpButton;
|
2020-09-14 02:48:55 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
//NS_ASSUME_NONNULL_END
|