Source

musicguru / cocoa / PyMusicGuru.h

Full commit
/* 
Copyright 2010 Hardcoded Software (http://www.hardcoded.net)

This software is licensed under the "BSD" License as described in the "LICENSE" file, 
which should be included with this package. The terms are also available at 
http://www.hardcoded.net/licenses/bsd_license
*/

#import <Cocoa/Cocoa.h>
#import "../cocoalib/PyApp.h"

@interface PyMassRenamePanel : NSObject
- (void)changeExampleSong;
- (NSString *)getExampleDisplayAfter;
- (NSString *)getExampleDisplayBefore;
- (NSString *)getModel;
- (NSNumber *)getWhitespace;
- (void)setCustomModel:(NSString *)aModel;
- (void)setModelSelectedRow:(NSNumber *)aRow;
- (void)setWhitespaceSelectedRow:(NSNumber *)aRow;
@end
            
@interface PySplitPanel : NSObject
- (NSString *)getGroupingExample;
- (NSNumber *)getCapacity;
- (NSNumber *)getGroupingLevel;
- (NSString *)getModel;
- (void)setCapacitySelectedRow:(NSNumber *)aRow;
- (void)setCustomCapacity:(NSNumber *)aCapacity;
- (void)setCustomModel:(NSString *)aModel;
- (void)setGroupingLevel:(NSNumber *)aGroupingLevel;
- (void)setModelSelectedRow:(NSNumber *)aRow;
@end

@interface PyMusicGuru : PyApp
//Locations
- (NSNumber *)addLocationWithPath:(NSString *)aPath name:(NSString *)aName removeable:(NSNumber *)aRemoveable;
- (NSString *)canAddLocationWithPath:(NSString *)aPath name:(NSString *)aName;
- (NSArray *)locationNamesInBoard:(NSNumber *)aInBoard writable:(NSNumber *)aWritableOnly;
- (void)removeLocationNamed:(NSString *)aName;
- (void)setPath:(NSString *)path ofLocationNamed:(NSString *)name;
- (void)toggleLocation:(NSNumber *)index;
- (void)updateCollection;
- (void)updateLocationNamed:(NSString *)name;
//Board
- (NSNumber *)conflictCount;
- (void)emptyBoard;
- (NSString *)getBoardStats;
- (PyMassRenamePanel *)getMassRenamePanel;
- (PySplitPanel *)getSplitPanel;
- (NSNumber *)isBoardSplitted;
- (NSNumber *)isNodeConflicted:(NSArray *)aNodePath;
- (void)massRenameWithModel:(NSString *)aModel whitespaceType:(NSNumber *)aWhitespace;
- (NSNumber *)moveConflicts;
- (NSNumber *)moveConflictsAndOriginals;
- (void)moveToIgnoreBox:(NSArray *)aNodePaths;
- (NSString *)newFolderIn:(NSArray *)aNodePath;
- (NSNumber *)performDragFrom:(NSNumber *)aSourceTag withNodes:(NSArray *)aSourceNodePaths to:(NSNumber *)aDestTag withNode:(NSArray *)aDestNodePath;
- (void)removeEmptyFolders;
- (NSString *)renameNode:(NSArray *)aNodePath to:(NSString *)aNewName;
- (void)selectBoardSongs:(NSArray *)selected;
- (void)splitWithModel:(NSString *)aModel capacity:(NSNumber *)aCapacity groupingLevel:(NSNumber *)aGroupingLevel;
- (void)switchConflictAndOriginal:(NSArray *)aNodePath;
- (void)unsplit;
//Materialize
- (void)copyOrMove:(NSNumber *)aCopy toPath:(NSString *)aPath onNeedCDPanel:(id)aPanel;
- (void)renameInRespectiveLocations;
//Data
// 0 if none. Returning a max level saves a lot of childCountForIndexes: calls
- (int)getOutlineViewMaxLevel:(int)tag;
// returns an array of the counts of the subitems
- (NSArray *)getOutlineView:(int)tag childCountsForPath:(NSArray *)indexPath;
- (NSArray *)getOutlineView:(NSNumber *)tag valuesForIndexes:(NSArray *)indexPath;
// 0 = unmarked, 1 = marked, 2 = unmarkable
- (NSNumber *)getOutlineView:(NSNumber *)tag markedAtIndexes:(NSArray *)indexPath;

- (NSNumber *)getTableViewCount:(NSNumber *)tag;
- (NSArray *)getTableViewMarkedIndexes:(NSNumber *)tag;
- (NSArray *)getTableView:(NSNumber *)tag valuesForRow:(NSNumber *)row;
//Misc
- (NSNumber *)isNodeContainer:(NSArray *)aNodePath;
@end