-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b43a833
Showing
25 changed files
with
9,306 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;} | ||
{\colortbl;\red255\green255\blue255;} | ||
\paperw9840\paperh8400 | ||
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural | ||
|
||
\f0\b\fs24 \cf0 Engineering: | ||
\b0 \ | ||
Some people\ | ||
\ | ||
|
||
\b Human Interface Design: | ||
\b0 \ | ||
Some other people\ | ||
\ | ||
|
||
\b Testing: | ||
\b0 \ | ||
Hopefully not nobody\ | ||
\ | ||
|
||
\b Documentation: | ||
\b0 \ | ||
Whoever\ | ||
\ | ||
|
||
\b With special thanks to: | ||
\b0 \ | ||
Mom\ | ||
} |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// FavoritesController.h | ||
// Reverso Context | ||
// | ||
// Created by Francesco Mattiussi on 29/05/21. | ||
// Copyright 2021 __MyCompanyName__. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
|
||
|
||
@interface FavoritesController : NSDrawer { | ||
|
||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// | ||
// FavoritesController.m | ||
// Reverso Context | ||
// | ||
// Created by Francesco Mattiussi on 29/05/21. | ||
// Copyright 2021 __MyCompanyName__. All rights reserved. | ||
// | ||
|
||
#import "FavoritesController.h" | ||
|
||
|
||
@implementation FavoritesController | ||
|
||
- (NSString *)windowNibName { | ||
// Implement this to return a nib to load OR implement -makeWindowControllers to manually create your controllers. | ||
return @"FavoritesController"; | ||
} | ||
|
||
- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError | ||
{ | ||
// Insert code here to write your document to data of the specified type. If the given outError != NULL, ensure that you set *outError when returning nil. | ||
|
||
// You can also choose to override -fileWrapperOfType:error:, -writeToURL:ofType:error:, or -writeToURL:ofType:forSaveOperation:originalContentsURL:error: instead. | ||
|
||
// For applications targeted for Panther or earlier systems, you should use the deprecated API -dataRepresentationOfType:. In this case you can also choose to override -fileWrapperRepresentationOfType: or -writeToFile:ofType: instead. | ||
|
||
return nil; | ||
} | ||
|
||
- (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError | ||
{ | ||
// Insert code here to read your document from the given data of the specified type. If the given outError != NULL, ensure that you set *outError when returning NO. | ||
|
||
// You can also choose to override -readFromFileWrapper:ofType:error: or -readFromURL:ofType:error: instead. | ||
|
||
// For applications targeted for Panther or earlier systems, you should use the deprecated API -loadDataRepresentation:ofType. In this case you can also choose to override -readFromFile:ofType: or -loadFileWrapperRepresentation:ofType: instead. | ||
|
||
return YES; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>English</string> | ||
<key>CFBundleDocumentTypes</key> | ||
<array> | ||
<dict> | ||
<key>CFBundleTypeExtensions</key> | ||
<array> | ||
<string>????</string> | ||
</array> | ||
<key>CFBundleTypeIconFile</key> | ||
<string></string> | ||
<key>CFBundleTypeName</key> | ||
<string>DocumentType</string> | ||
<key>CFBundleTypeOSTypes</key> | ||
<array> | ||
<string>????</string> | ||
</array> | ||
<key>CFBundleTypeRole</key> | ||
<string>Editor</string> | ||
<key>NSDocumentClass</key> | ||
<string>MyDocument</string> | ||
</dict> | ||
</array> | ||
<key>CFBundleExecutable</key> | ||
<string>${EXECUTABLE_NAME}</string> | ||
<key>CFBundleIconFile</key> | ||
<string></string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.yourcompany.Reverso Context</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.0</string> | ||
<key>NSMainNibFile</key> | ||
<string>MainMenu</string> | ||
<key>NSPrincipalClass</key> | ||
<string>NSApplication</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
// | ||
// MyDocument.h | ||
// Reverso Context | ||
// | ||
// Created by Francesco Mattiussi on 21/05/21. | ||
// Copyright __MyCompanyName__ 2021 . All rights reserved. | ||
// | ||
|
||
|
||
#import <Cocoa/Cocoa.h> | ||
#import "TableViewDataObject.h" | ||
#import "PreferencesController.h" | ||
|
||
@interface MyDocument : NSDocument | ||
{ | ||
|
||
NSMutableData* responseData; | ||
NSInteger *sourceLanguageId; | ||
NSInteger *targetLanguageId; | ||
|
||
// Interface Builder Things | ||
IBOutlet NSSearchField *searchField; | ||
IBOutlet NSPopUpButton *sourceLanguage; | ||
IBOutlet NSPopUpButton *targetLanguage; | ||
IBOutlet NSTableView *resultsTableView; | ||
IBOutlet NSProgressIndicator *spinner; | ||
|
||
// Parsing Things | ||
NSString *currentElement, *source_example, *target_example; | ||
NSMutableString *elementValue; | ||
|
||
// Results Arrays | ||
NSMutableArray *sourceExampleArray, *targetExampleArray; | ||
NSMutableArray *tableViewData; | ||
|
||
// Drawer Things | ||
IBOutlet NSDrawer *drawer; | ||
IBOutlet NSView *drawerView; | ||
|
||
// TabView | ||
IBOutlet NSTabView *tabView; | ||
NSString *service; | ||
|
||
// Windows | ||
IBOutlet NSWindow *preferences; | ||
} | ||
|
||
// Menu Actions | ||
- (IBAction)openPreferences:(id)sender; | ||
|
||
// Windows | ||
@property (assign) IBOutlet NSWindow *preferences; | ||
|
||
// TabView | ||
@property (assign) IBOutlet NSTabView *tabView; | ||
@property (assign) NSString *service; | ||
- (IBAction)tabChanged:(id)sender; | ||
|
||
// Drawer | ||
|
||
@property (assign) IBOutlet NSDrawer *drawer; | ||
@property (assign) IBOutlet NSView *drawerView; | ||
- (IBAction)toggleDrawer:(id)sender; | ||
|
||
// Interface Builder's properties | ||
@property (assign) IBOutlet NSTextField *searchField; | ||
@property (assign) IBOutlet NSPopUpButton *sourceLanguage; | ||
@property (assign) IBOutlet NSPopUpButton *targetLanguage; | ||
@property (assign) IBOutlet NSTableView *resultsTableView; | ||
@property (assign) IBOutlet NSProgressIndicator *spinner; | ||
|
||
// Interface Builder's actions | ||
- (IBAction)search:(id)pId; | ||
- (IBAction)sourceLanguageSelected:(id)sender; | ||
- (IBAction)targetLanguageSelected:(id)sender; | ||
|
||
@property (nonatomic, retain) NSMutableData* responseData; | ||
@property (assign) NSInteger* sourceLanguageId; | ||
@property (assign) NSInteger* targetLanguageId; | ||
|
||
@property (assign) NSString* currentElement; | ||
@property (assign) NSString* source_example; | ||
@property (assign) NSString* target_example; | ||
@property (assign) NSMutableString* elementValue; | ||
|
||
@property (assign) NSMutableArray* sourceExampleArray; | ||
@property (assign) NSMutableArray* targetExampleArray; | ||
@property (assign) NSMutableArray* tableViewData; | ||
|
||
- (NSString *)locale:(int)index; | ||
- (void)find; | ||
// TableView's delegate functions | ||
|
||
- (int)numberOfRowsInTableView:(NSTableView *)pTableViewObj; | ||
|
||
- (id) tableView:(NSTableView *)pTableViewObj | ||
objectValueForTableColumn:(NSTableColumn *)pTableColumn | ||
row:(int)pRowIndex; | ||
|
||
- (void)tableView:(NSTableView *)pTableViewObj | ||
setObjectValue:(id)pObject | ||
forTableColumn:(NSTableColumn *)pTableColumn | ||
row:(int)pRowIndex; | ||
|
||
@end |
Oops, something went wrong.