Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
*.pyc

# Numerous always-ignore extensions
###################
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.vi
*~

*.sass-cache
# Folders to ignore
###################
.hg
.svn
.CVS
# OS or Editor folders
###################
.DS_Store
Icon?
Thumbs.db
ehthumbs.db
nbproject
.cache
.project
.settings
.tmproj
*.esproj
*.sublime-project
*.sublime-workspace
# Dreamweaver added files
###################
_notes
dwsync.xml
# Komodo
###################
*.komodoproject
.komodotools
8 changes: 4 additions & 4 deletions AppleRemote.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* RemoteControlWrapper.h
* RemoteControlWrapper
*
* Created by Martin Kahr on 11.03.06 under a MIT-style license.
* Created by Martin Kahr on 11.03.06 under a MIT-style license.
* Copyright (c) 2006 martinkahr.com. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
Expand All @@ -17,7 +17,7 @@
*
* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
Expand All @@ -31,7 +31,7 @@
/* Interacts with the Apple Remote Control HID device
The class is not thread safe
*/
@interface AppleRemote : HIDRemoteControlDevice {
@interface AppleRemote : HIDRemoteControlDevice {
}

@end
24 changes: 12 additions & 12 deletions AppleRemote.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* RemoteControlWrapper.m
* RemoteControlWrapper
*
* Created by Martin Kahr on 11.03.06 under a MIT-style license.
* Created by Martin Kahr on 11.03.06 under a MIT-style license.
* Copyright (c) 2006 martinkahr.com. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
Expand All @@ -17,7 +17,7 @@
*
* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
Expand Down Expand Up @@ -46,24 +46,24 @@ + (const char*) remoteControlDeviceName {
return AppleRemoteDeviceName;
}

- (void) setCookieMappingInDictionary: (NSMutableDictionary*) _cookieToButtonMapping {
- (void) setCookieMappingInDictionary: (NSMutableDictionary*) _cookieToButtonMapping {
if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_4) {
// 10.4.x Tiger
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonPlus] forKey:@"14_12_11_6_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonMinus] forKey:@"14_13_11_6_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonMenu] forKey:@"14_7_6_14_7_6_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonMinus] forKey:@"14_13_11_6_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonMenu] forKey:@"14_7_6_14_7_6_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonPlay] forKey:@"14_8_6_14_8_6_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonRight] forKey:@"14_9_6_14_9_6_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonLeft] forKey:@"14_10_6_14_10_6_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonRight_Hold] forKey:@"14_6_4_2_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonLeft_Hold] forKey:@"14_6_3_2_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonMenu_Hold] forKey:@"14_6_14_6_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonPlay_Hold] forKey:@"18_14_6_18_14_6_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteControl_Switched] forKey:@"19_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteControl_Switched] forKey:@"19_"];
} else {
// 10.5.x Leopard
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonPlus] forKey:@"31_29_28_19_18_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonMinus] forKey:@"31_30_28_19_18_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonMinus] forKey:@"31_30_28_19_18_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonMenu] forKey:@"31_20_19_18_31_20_19_18_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonPlay] forKey:@"31_21_19_18_31_21_19_18_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonRight] forKey:@"31_22_19_18_31_22_19_18_"];
Expand All @@ -72,18 +72,18 @@ - (void) setCookieMappingInDictionary: (NSMutableDictionary*) _cookieToButtonMap
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonLeft_Hold] forKey:@"31_19_18_3_2_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonMenu_Hold] forKey:@"31_19_18_31_19_18_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteButtonPlay_Hold] forKey:@"35_31_19_18_35_31_19_18_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteControl_Switched] forKey:@"19_"];
[_cookieToButtonMapping setObject:[NSNumber numberWithInt:kRemoteControl_Switched] forKey:@"19_"];
}
}

- (void) sendRemoteButtonEvent: (RemoteControlEventIdentifier) event pressedDown: (BOOL) pressedDown {
if (pressedDown == NO && event == kRemoteButtonMenu_Hold) {
// There is no seperate event for pressed down on menu hold. We are simulating that event here
[super sendRemoteButtonEvent:event pressedDown:YES];
}
}

[super sendRemoteButtonEvent:event pressedDown:pressedDown];

if (pressedDown && (event == kRemoteButtonRight || event == kRemoteButtonLeft || event == kRemoteButtonPlay || event == kRemoteButtonMenu || event == kRemoteButtonPlay_Hold)) {
// There is no seperate event when the button is being released. We are simulating that event here
[super sendRemoteButtonEvent:event pressedDown:NO];
Expand Down
22 changes: 11 additions & 11 deletions CommonType.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ typedef struct {
typedef enum {C0, INTERMEDIATE, ALPHABETIC, DELETE, C1, G1, SPECIAL, ERROR} ASCII_CODE;

typedef enum YLEncoding {
YLBig5Encoding = 1,
YLBig5Encoding = 1,
YLGBKEncoding = 0
} YLEncoding;

typedef enum YLANSIColorKey {
YLCtrlUANSIColorKey = 1,
YLCtrlUANSIColorKey = 1,
YLEscEscANSIColorKey = 0
} YLANSIColorKey;

Expand All @@ -48,7 +48,7 @@ typedef enum {

typedef struct {
/*!
@enum
@enum
@abstract This enumeration describes main state of BBS.
@discussion States reconition is carried out in <code>[YLTerminal updateBBSState]</code>. Please refer to <code>YLTerminal.h</code> for detailed information about state recognition.
@constant BBSUnknown Unknown state that cannot be recognized by Welly.
Expand All @@ -67,13 +67,13 @@ typedef struct {
*/
enum {
BBSUnknown,
BBSMainMenu,
BBSMailMenu,
BBSMailList,
BBSBoardList,
BBSFriendList,
BBSMainMenu,
BBSMailMenu,
BBSMailList,
BBSBoardList,
BBSFriendList,
BBSBrowseBoard,
BBSViewPost,
BBSViewPost,
BBSComposePost,
BBSWaitingEnter,
BBSUserInfo,
Expand All @@ -82,7 +82,7 @@ typedef struct {
BBSWaitingConfirm,
} state;
/*!
@enum
@enum
@abstract This enumeration is a supplement for the main state. Some main state have some variants which have common behaviors. Some variants have delicate differences, so we use substate to tell them apart for future implementation.
@discussion Currently, the <code>substate</code> is mainly used for <code>BBSBrowseBoard</code> main state.
@constant BBSSubStateNone The main state has no substate.
Expand Down Expand Up @@ -146,5 +146,5 @@ enum {
WLEscapeCharacter = 27,
WLReturnCharacter = '\r',
WLNewlineCharacter = '\n',
WLNullTerminator = '\0',
WLNullTerminator = '\0',
};
8 changes: 4 additions & 4 deletions CommonType.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#pragma mark Functions
inline int isHiddenAttribute(attribute a) {
return (!a.f.bold && ((a.f.fgColor == a.f.bgColor) ||
(a.f.fgColor == 0 && a.f.bgColor == 9)));
(a.f.fgColor == 0 && a.f.bgColor == 9)));
}

inline int isBlinkCell(cell c) {
Expand All @@ -26,12 +26,12 @@ inline int isBlinkCell(cell c) {
return 0;
}

inline BOOL isLetter(unsigned char c) {
return (c >= 'a' && c <= 'z') || (c >= 'A' && c<= 'Z');
inline BOOL isLetter(unsigned char c) {
return (c >= 'a' && c <= 'z') || (c >= 'A' && c<= 'Z');
}

inline BOOL isNumber(unsigned char c) {
return (c >= '0' && c <= '9');
return (c >= '0' && c <= '9');
}

inline int bgColorIndexOfAttribute(attribute a) {
Expand Down
26 changes: 13 additions & 13 deletions Credits.rtf
Original file line number Diff line number Diff line change
Expand Up @@ -85,38 +85,38 @@ fishy
\b \cf0 \
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li580\ql\qnatural\pardirnatural
\cf0 Sparkle
\b0 by
\b0 by
\i Andy Matuschak,
\i0 \
{\field{\*\fldinst{HYPERLINK "http://sparkle.andymatuschak.org/"}}{\fldrslt http://sparkle.andymatuschak.org/}}\
\

\b PSMTabBarControl
\b0 by
\b0 by
\i John Pannell,
\i0 \
{\field{\*\fldinst{HYPERLINK "http://www.positivespinmedia.com/dev/PSMTabBarControl.html"}}{\fldrslt http://www.positivespinmedia.com/dev/PSMTabBarControl.html}}\
\

\b DBPrefsWindowController
\b0 by
\b0 by
\i Dave Batton,
\i0 \
{\field{\*\fldinst{HYPERLINK "http://www.mere-mortal-software.com/blog/sourcecode.php"}}{\fldrslt http://www.mere-mortal-software.com/blog/sourcecode.php}}\
\
PTY code from
PTY code from
\b iTerm
\b0 by
\b0 by
\i Fabian
\i0 and
\i0 and
\i Ujwal S. Setlur,\
{\field{\*\fldinst{HYPERLINK "http://iterm.sourceforge.net/"}}{\fldrslt
{\field{\*\fldinst{HYPERLINK "http://iterm.sourceforge.net/"}}{\fldrslt
\i0 http://iterm.sourceforge.net/}}
\i0 \
\
Some code from
Some code from
\b Putty
\b0 by
\b0 by
\i Simon Tatham,
\i0 \
{\field{\*\fldinst{HYPERLINK "http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html"}}{\fldrslt http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html}}\
Expand All @@ -128,17 +128,17 @@ Growl
{\field{\*\fldinst{HYPERLINK "http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html"}}{\fldrslt http://growl.info/}}\
\
IP Seeker code & Growl example from
\b LumaQQ
\b0 by
\b LumaQQ
\b0 by
\i Luma,
\i0 \
{\field{\*\fldinst{HYPERLINK "http://lumaqq.linuxsir.org/"}}{\fldrslt http://lumaqq.linuxsir.org
\f1 /}}\
\
IP database from
IP database from
\i cz88.net\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li580\ql\qnatural\pardirnatural
{\field{\*\fldinst{HYPERLINK "http://www.cz88.net/"}}{\fldrslt
{\field{\*\fldinst{HYPERLINK "http://www.cz88.net/"}}{\fldrslt
\i0 \cf0 http://www.cz88.net
\f1 /}}
\f1\i0 \
Expand Down
8 changes: 4 additions & 4 deletions DBPrefsWindowController.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@
NSMutableArray *toolbarIdentifiers;
NSMutableDictionary *toolbarViews;
NSMutableDictionary *toolbarItems;

BOOL _crossFade;
BOOL _shiftSlowsAnimation;

IBOutlet NSPopUpButton *_telnetPopUpButton;
IBOutlet NSPopUpButton *_sshPopUpButton;

IBOutlet NSView *_generalPrefView;
IBOutlet NSView *_connectionPrefView;
IBOutlet NSView *_fontsPrefView;
IBOutlet NSView *_colorsPrefView;
IBOutlet NSView *_autoReplyPrefView;

NSView *contentSubview;
NSViewAnimation *viewAnimation;
}
Expand Down
Loading