forked from cappuccino/cappuccino
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git@github.com:280north/cappuccino
- Loading branch information
Showing
53 changed files
with
1,163 additions
and
468 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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
.DS_Store | ||
Frameworks | ||
Build | ||
Demos | ||
Aristo | ||
WebSite |
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
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
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
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
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
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,63 @@ | ||
|
||
@import <AppKit/CPPanel.j> | ||
#include "Platform/Platform.h" | ||
|
||
var SharedOpenPanel = nil; | ||
|
||
@implementation CPOpenPanel : CPPanel | ||
{ | ||
CPArray _files; | ||
BOOL _canChooseFiles @accessors(property=canChooseFiles); | ||
BOOL _canChooseDirectories @accessors(property=canChooseDirectories); | ||
BOOL _allowsMultipleSelection @accessors(property=allowsMultipleSelection); | ||
} | ||
|
||
+ (id)openPanel | ||
{ | ||
if (!SharedOpenPanel) | ||
SharedOpenPanel = [[CPOpenPanel alloc] init]; | ||
|
||
return SharedOpenPanel; | ||
} | ||
|
||
- (id)init | ||
{ | ||
if (self = [super init]) | ||
{ | ||
_files = []; | ||
_canChooseFiles = YES; | ||
} | ||
|
||
return self; | ||
} | ||
|
||
- (void)filenames | ||
{ | ||
return _files; | ||
} | ||
|
||
- (unsigned)runModalForDirectory:(CPString)absoluteDirectoryPath file:(CPString)filename types:(CPArray)fileTypes | ||
{ | ||
#if PLATFORM(DOM) | ||
console.log("0 "+Titanium); | ||
console.log("1 "+window.Titanium); | ||
if (window.Titanium) | ||
{ | ||
_files = Titanium.Desktop.openFiles({ | ||
path:absoluteDirectoryPath, | ||
types:fileTypes, | ||
multiple:_allowsMultipleSelection, | ||
filename:filename, | ||
directories:_canChooseDirectories, | ||
files:_canChooseFiles | ||
}); | ||
} | ||
#endif | ||
} | ||
|
||
- (unsigned)runModalForTypes:(CPArray)fileTypes | ||
{alert("HERE"); | ||
[self runModalForDirectory:"/" file:nil types:fileTypes]; | ||
} | ||
|
||
@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
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
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
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
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
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
Binary file removed
BIN
-3.04 KB
AppKit/Themes/Aristo/Resources/old-scroller/scroller-down-arrow-disabled.png
Binary file not shown.
Binary file removed
BIN
-3.32 KB
AppKit/Themes/Aristo/Resources/old-scroller/scroller-down-arrow-highlighted.png
Binary file not shown.
Binary file removed
BIN
-3.17 KB
AppKit/Themes/Aristo/Resources/old-scroller/scroller-down-arrow.png
Binary file not shown.
Binary file removed
BIN
-3 KB
AppKit/Themes/Aristo/Resources/old-scroller/scroller-up-arrow-disabled.png
Binary file not shown.
Binary file removed
BIN
-3.28 KB
AppKit/Themes/Aristo/Resources/old-scroller/scroller-up-arrow-highlighted.png
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-397 Bytes
AppKit/Themes/Aristo/Resources/old-scroller/scroller-vertical-knob-bottom.png
Binary file not shown.
Binary file removed
BIN
-2.75 KB
AppKit/Themes/Aristo/Resources/old-scroller/scroller-vertical-knob-center.png
Binary file not shown.
Binary file removed
BIN
-341 Bytes
AppKit/Themes/Aristo/Resources/old-scroller/scroller-vertical-knob-top.png
Binary file not shown.
Binary file removed
BIN
-2.74 KB
AppKit/Themes/Aristo/Resources/old-scroller/scroller-vertical-track-disabled.png
Binary file not shown.
Binary file removed
BIN
-2.77 KB
AppKit/Themes/Aristo/Resources/old-scroller/scroller-vertical-track.png
Binary file not shown.
Oops, something went wrong.