2006-09-25 18:37:45 +00:00
|
|
|
//
|
|
|
|
// PiecesWindowController.h
|
|
|
|
// Transmission
|
|
|
|
//
|
|
|
|
// Created by Livingston on 9/23/06.
|
|
|
|
// Copyright 2006 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import "Torrent.h"
|
|
|
|
|
2006-09-25 20:53:10 +00:00
|
|
|
@interface PiecesView : NSObject
|
2006-09-25 18:37:45 +00:00
|
|
|
{
|
|
|
|
int8_t * fPieces;
|
|
|
|
|
2006-09-25 21:20:08 +00:00
|
|
|
NSImage * fBack, * fWhitePiece, * fGreenPiece,
|
2006-09-25 18:37:45 +00:00
|
|
|
* fBlue1Piece, * fBlue2Piece, * fBlue3Piece;
|
|
|
|
|
|
|
|
Torrent * fTorrent;
|
|
|
|
int fNumPieces, fAcross, fWidth, fExtraBorder;
|
|
|
|
|
|
|
|
IBOutlet NSImageView * fImageView;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setTorrent: (Torrent *) torrent;
|
|
|
|
- (void) updateView: (BOOL) first;
|
|
|
|
|
|
|
|
@end
|