Skip to content

Commit 3bd85ca

Browse files
committed
first commit
0 parents  commit 3bd85ca

39 files changed

+5475
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pbxuser

English.lproj/InfoPlist.strings

92 Bytes
Binary file not shown.

English.lproj/MainMenu.nib/designable.nib

+1,300
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
13.3 KB
Binary file not shown.

IconedCell.h

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// IconedCell.h
3+
// Switchee
4+
//
5+
// Created by 伊藤 洋也 on 09/01/07.
6+
// Copyright 2009 __MyCompanyName__. All rights reserved.
7+
//
8+
9+
#import <Cocoa/Cocoa.h>
10+
11+
12+
@interface IconedCell : NSCell {
13+
14+
}
15+
16+
@end

IconedCell.m

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
//
2+
// IconedCell.m
3+
// Switchee
4+
//
5+
// Created by 伊藤 洋也 on 09/01/07.
6+
// Copyright 2009 __MyCompanyName__. All rights reserved.
7+
//
8+
9+
#import "IconedCell.h"
10+
11+
@implementation IconedCell
12+
13+
/* Source via */
14+
/* http://homepage.mac.com/mkino2/cocoaProg/AppKit/NSCell/NSCell.html#iconedCell */
15+
/* */
16+
17+
- (void)drawInteriorWithFrame:(NSRect)cellFrame
18+
inView:(NSView*)controlView
19+
{
20+
#define ICON_SIZE_WIDTH 20
21+
#define ICON_SIZE_HEIGHT 20
22+
#define MARGIN_X 10
23+
24+
NSString* path;
25+
NSRect pathRect;
26+
27+
NSImage* iconImage;
28+
NSSize iconSize;
29+
NSPoint iconPoint;
30+
31+
// 画像を描く
32+
iconImage = [self image];
33+
iconSize = NSZeroSize;
34+
iconPoint.x = cellFrame.origin.x;
35+
iconPoint.y = cellFrame.origin.y;
36+
37+
if(iconImage)
38+
{
39+
iconSize.width = ICON_SIZE_WIDTH;
40+
iconSize.height = ICON_SIZE_HEIGHT;
41+
iconPoint.x += MARGIN_X;
42+
43+
if([controlView isFlipped]) {
44+
iconPoint.y += iconSize.height;
45+
}
46+
47+
[iconImage setSize:iconSize];
48+
[iconImage compositeToPoint:iconPoint
49+
operation:NSCompositeSourceOver];
50+
}
51+
52+
// テキストを描く
53+
path = [self stringValue];
54+
pathRect.origin.x = cellFrame.origin.x + MARGIN_X;
55+
if(iconSize.width > 0)
56+
{
57+
pathRect.origin.x += iconSize.width + MARGIN_X;
58+
}
59+
pathRect.origin.y = cellFrame.origin.y;
60+
pathRect.size.width = cellFrame.size.width - (pathRect.origin.x - cellFrame.origin.x);
61+
pathRect.size.height = cellFrame.size.height;
62+
63+
if(path)
64+
{
65+
[path drawInRect:pathRect withAttributes:nil];
66+
}
67+
}
68+
69+
@end

Info.plist

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>English</string>
7+
<key>CFBundleExecutable</key>
8+
<string>${EXECUTABLE_NAME}</string>
9+
<key>CFBundleIconFile</key>
10+
<string></string>
11+
<key>CFBundleIdentifier</key>
12+
<string>com.yourcompany.${PRODUCT_NAME:identifier}</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>${PRODUCT_NAME}</string>
17+
<key>CFBundlePackageType</key>
18+
<string>APPL</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleVersion</key>
22+
<string>1.0</string>
23+
<key>NSMainNibFile</key>
24+
<string>MainMenu</string>
25+
<key>NSPrincipalClass</key>
26+
<string>SwitcheeApplication</string>
27+
</dict>
28+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{
2+
0 = "A";
3+
1 = "S";
4+
2 = "D";
5+
3 = "F";
6+
4 = "H";
7+
5 = "G";
8+
6 = "Z";
9+
7 = "X";
10+
8 = "C";
11+
9 = "V";
12+
10 = "$";
13+
11 = "B";
14+
12 = "Q";
15+
13 = "W";
16+
14 = "E";
17+
15 = "R";
18+
16 = "Y";
19+
17 = "T";
20+
18 = "1";
21+
19 = "2";
22+
20 = "3";
23+
21 = "4";
24+
22 = "6";
25+
23 = "5";
26+
24 = "=";
27+
25 = "9";
28+
26 = "7";
29+
27 = "-";
30+
28 = "8";
31+
29 = "0";
32+
30 = "\]";
33+
31 = "O";
34+
32 = "U";
35+
33 = "\[";
36+
34 = "I";
37+
35 = "P";
38+
36 = "Return";
39+
37 = "L";
40+
38 = "J";
41+
39 = "\'";
42+
40 = "K";
43+
41 = ";";
44+
42 = "\\";
45+
43 = ",";
46+
44 = "\/";
47+
45 = "N";
48+
46 = "M";
49+
47 = ".";
50+
48 = "Tab";
51+
49 = "Space";
52+
50 = "\`";
53+
51 = "Delete";
54+
53 = "ESC";
55+
55 = "Command";
56+
56 = "Shift";
57+
57 = "Caps Lock";
58+
58 = "Option";
59+
59 = "Control";
60+
65 = "Pad .";
61+
67 = "Pad *";
62+
69 = "Pad +";
63+
71 = "Clear";
64+
75 = "Pad /";
65+
76 = "Pad Enter";
66+
78 = "Pad -";
67+
81 = "Pad =";
68+
82 = "Pad 0";
69+
83 = "Pad 1";
70+
84 = "Pad 2";
71+
85 = "Pad 3";
72+
86 = "Pad 4";
73+
87 = "Pad 5";
74+
88 = "Pad 6";
75+
89 = "Pad 7";
76+
91 = "Pad 8";
77+
92 = "Pad 9";
78+
96 = "F5";
79+
97 = "F6";
80+
98 = "F7";
81+
99 = "F3";
82+
100 = "F8";
83+
101 = "F9";
84+
103 = "F11";
85+
105 = "F13";
86+
107 = "F14";
87+
109 = "F10";
88+
111 = "F12";
89+
113 = "F15";
90+
114 = "Ins";
91+
115 = "Home";
92+
116 = "Page Up";
93+
117 = "Del";
94+
118 = "F4";
95+
119 = "End";
96+
120 = "F2";
97+
121 = "Page Down";
98+
122 = "F1";
99+
123 = "Left Arrow";
100+
124 = "Right Arrow";
101+
125 = "Down Arrow";
102+
126 = "Up Arrow";
103+
}

Japanese.lproj/Japanese.lproj/PTKeyComboPanel.nib/classes.nib

+53
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Japanese.lproj/Japanese.lproj/PTKeyComboPanel.nib/info.nib

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

README

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Applicateion Switcher
2+
3+
gomi app

Switchee.xcodeproj/TemplateIcon.icns

51.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)