mirror of
https://github.com/ksherlock/ample.git
synced 2024-10-31 15:04:56 +00:00
51 lines
1.1 KiB
Objective-C
51 lines
1.1 KiB
Objective-C
//
|
|
// 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
|
|
|
|
|
|
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");
|
|
|
|
|
|
@interface MediaTableCellView : NSTableCellView
|
|
@property (weak) IBOutlet NSButton *ejectButton;
|
|
@property (weak) IBOutlet NSImageView *dragHandle;
|
|
@property BOOL movable;
|
|
|
|
-(void)prepareView: (NSInteger)category;
|
|
@end
|
|
|
|
@interface PathTableCellView : MediaTableCellView <NSPathControlDelegate>
|
|
@property (weak) IBOutlet NSPathControl *pathControl;
|
|
@end
|
|
|
|
|
|
@interface MidiTableCellView : MediaTableCellView
|
|
@property (weak) IBOutlet NSPopUpButton *popUpButton;
|
|
@end
|
|
|
|
//NS_ASSUME_NONNULL_END
|