Skip to content

Commit 3c9c01c

Browse files
committed
Restructure source directory and project file
1 parent 474d17e commit 3c9c01c

File tree

259 files changed

+1314
-1001
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+1314
-1001
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Classes/GitX.h

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/*
2+
* GitX.h
3+
*/
4+
5+
#import <AppKit/AppKit.h>
6+
#import <ScriptingBridge/ScriptingBridge.h>
7+
8+
9+
@class GitXApplication, GitXDocument, GitXWindow;
10+
11+
12+
13+
/*
14+
* Standard Suite
15+
*/
16+
17+
// The application's top-level scripting object.
18+
@interface GitXApplication : SBApplication
19+
20+
- (SBElementArray *) documents;
21+
- (SBElementArray *) windows;
22+
23+
@property (copy, readonly) NSString *name; // The name of the application.
24+
@property (readonly) BOOL frontmost; // Is this the active application?
25+
@property (copy, readonly) NSString *version; // The version number of the application.
26+
27+
- (void) open:(NSArray *)x; // Open a document.
28+
- (void) quit; // Quit the application.
29+
- (BOOL) exists:(id)x; // Verify that an object exists.
30+
- (void) showDiff:(NSString *)x; // Show the supplied diff output in a GitX window.
31+
- (void) initRepository:(NSURL *)x; // Create a git repository at the given filesystem URL.
32+
- (void) cloneRepository:(NSString *)x to:(NSURL *)to isBare:(BOOL)isBare; // Clone a repository.
33+
34+
@end
35+
36+
// A document.
37+
@interface GitXDocument : SBObject
38+
39+
@property (copy, readonly) NSString *name; // Its name.
40+
@property (copy, readonly) NSURL *file; // Its location on disk, if it has one.
41+
42+
- (void) close; // Close a document.
43+
- (void) delete; // Delete an object.
44+
- (void) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy an object.
45+
- (void) moveTo:(SBObject *)to; // Move an object to a new location.
46+
- (void) searchString:(NSString *)string inMode:(NSInteger)inMode; // Highlight commits that match the given search string.
47+
48+
@end
49+
50+
// A window.
51+
@interface GitXWindow : SBObject
52+
53+
@property (copy, readonly) NSString *name; // The title of the window.
54+
- (NSInteger) id; // The unique identifier of the window.
55+
@property NSInteger index; // The index of the window, ordered front to back.
56+
@property NSRect bounds; // The bounding rectangle of the window.
57+
@property (readonly) BOOL closeable; // Does the window have a close button?
58+
@property (readonly) BOOL miniaturizable; // Does the window have a minimize button?
59+
@property BOOL miniaturized; // Is the window minimized right now?
60+
@property (readonly) BOOL resizable; // Can the window be resized?
61+
@property BOOL visible; // Is the window visible right now?
62+
@property (readonly) BOOL zoomable; // Does the window have a zoom button?
63+
@property BOOL zoomed; // Is the window zoomed right now?
64+
@property (copy, readonly) GitXDocument *document; // The document whose contents are displayed in the window.
65+
66+
- (void) close; // Close a document.
67+
- (void) delete; // Delete an object.
68+
- (void) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy an object.
69+
- (void) moveTo:(SBObject *)to; // Move an object to a new location.
70+
- (void) searchString:(NSString *)string inMode:(NSInteger)inMode; // Highlight commits that match the given search string.
71+
72+
@end
73+
74+
75+
76+
/*
77+
* GitX Suite
78+
*/
79+
80+
// The GitX application.
81+
@interface GitXApplication (GitXSuite)
82+
83+
@end
84+
85+
// A document.
86+
@interface GitXDocument (GitXSuite)
87+
88+
@end
89+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

GLFileView.h renamed to Classes/Views/GLFileView.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
#import <Cocoa/Cocoa.h>
1010
#import "PBWebController.h"
11-
#import "MGScopeBarDelegateProtocol.h"
11+
//#import "MGScopeBarDelegateProtocol.h"
12+
#import <MGScopeBarFramework/MGScopeBarDelegateProtocol.h>
1213
#import "PBGitCommit.h"
1314
#import "PBGitHistoryController.h"
1415
#import "PBRefContextDelegate.h"

GLFileView.m renamed to Classes/Views/GLFileView.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import "GLFileView.h"
1010
#import "PBGitGradientBarView.h"
11-
#import "MGScopeBar.h"
11+
#import <MGScopeBarFramework/MGScopeBar.h>
1212

1313
#define GROUP_LABEL @"Label" // string
1414
#define GROUP_SEPARATOR @"HasSeparator" // BOOL as NSNumber
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

PBGitGraphLine.m renamed to Classes/git/PBGitGraphLine.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#import "PBGitGraphLine.h"
1010

11+
/*
1112
@implementation PBGitGraphLine
1213
@synthesize upper, from, to, colorIndex;
1314
- (id)initWithUpper: (char) u From: (char) f to: (char) t color: (char) c;
@@ -28,4 +29,4 @@ + (PBGitGraphLine*) upperLineFrom:(char) f to: (char) t color: (char) c
2829
{
2930
return [[PBGitGraphLine alloc] initWithUpper:1 From:f to:t color: c];
3031
}
31-
@end
32+
@end */
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

PBGitRepository.m renamed to Classes/git/PBGitRepository.m

-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
#import <ObjectiveGit/GTRepository.h>
2727
#import <ObjectiveGit/GTIndex.h>
2828

29-
NSString* PBGitRepositoryErrorDomain = @"GitXErrorDomain";
30-
3129
@implementation PBGitRepository
3230

3331
@synthesize revisionList, branches, currentBranch, refs, hasChanged, config;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

gitx.m renamed to Classes/gitx.m

File renamed without changes.
File renamed without changes.

main.m renamed to Classes/main.m

File renamed without changes.
File renamed without changes.

GitX.xcodeproj/project.pbxproj

+979-889
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)