-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.h
More file actions
112 lines (86 loc) · 2.6 KB
/
MainWindow.h
File metadata and controls
112 lines (86 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
//
// MainWindow.h
// App Store PPC
//
// Created by Administrator on 23/01/2019.
// Copyright 2019 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>
#import "mgGenerateDictionary.h"
#define animationFrames 30
#define labelHeight 22
#define contentHeight 100
#define labelFontSize 17.0
#define contentFontSize 12.0
@interface UIHelpers : NSObject
{
}
+(NSTextField*)createLabelWithFrame:(NSRect)frame;
+(NSDictionary*)attributesWithFontSize:(float)size andColour:(NSColor*)colour;
+(void)setString:(NSString*)string forLabel:(NSTextField*)label withAttributes:(NSDictionary*)attrs;
@end
@interface DetailView : NSView
{
NSRect scrollviewFrameSize;
IBOutlet NSScrollView* detailScrollView;
IBOutlet NSTextField* titleField;
IBOutlet NSTextField* classField;
IBOutlet NSTextField* publisherField;
IBOutlet NSView* ratingView;
IBOutlet NSBox* horizontalLine1;
IBOutlet NSTextField* previewLabel;
IBOutlet NSScrollView* previewView;
IBOutlet NSTextField* descriptionField;
IBOutlet NSBox* horizontalLine2;
IBOutlet NSTextField* reviewsLabel;
IBOutlet NSScrollView* reviewsView;
IBOutlet NSBox* horizontalLine3;
IBOutlet NSTextField* moreByLabel;
IBOutlet NSScrollView* moreByView;
}
- (float)resize;
- (void)updateDetails:(NSDictionary*)details initialUpdate:(BOOL)fullUpdate;
@end
@interface TaggableView : NSView
{
NSImageView* imageView;
@private int tag;
}
- (void)setImage:(NSImage*)image;
- (void)setTag:(int)tag;
- (int)tag;
@end
@interface refreshLibraryThread : NSObject
{
NSArray *libraryArray;
//NSDictionary* detailPageDictionary;
mgGenerateDictionary* macGarden;
}
-(void)refreshLibrary:(id)object;
-(NSArray*)getLibraryArray;
@end
@interface MainWindow : NSObject {
NSString* tempSaveURL;
NSArray *libraryArray;
NSDate* then;
NSTimer* updateImageTimer;
// mgGenerateDictionary* macGarden;
refreshLibraryThread *refreshThread;
IBOutlet NSWindow *mainWindow;
IBOutlet NSWindow *refreshLibraryWindow;
IBOutlet NSView* masterView;
IBOutlet NSProgressIndicator* refreshProgress;
IBOutlet NSScrollView* collectionView;
IBOutlet DetailView* detailView;
}
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)sender;
-(IBAction)refreshLibrary:(id)sender;
-(IBAction)endRefreshLibrary:(id)sender;
-(void)sheetDidEnd:(NSWindow*)sheet returnCode:(int)returnCode contextInfo:(void*)contextInfo;
-(void)updateProgress:(id)object;
-(IBAction)dumpLibrary:(id)sender;
//-(IBAction)showPreferences:(id)sender;
-(void)buildCollectionView;
-(DetailView*)buildContentViewForItem:(NSDictionary*)item withFrame:(NSRect)frame;
@end