Skip to content

Commit 21ca151

Browse files
committed
Remove PSMTabBarControl
1 parent b715bb6 commit 21ca151

121 files changed

Lines changed: 12 additions & 9334 deletions

File tree

Some content is hidden

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

src/MacVim/MMAppController.m

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -197,27 +197,10 @@ + (void)initialize
197197
[NSWindow setAllowsAutomaticWindowTabbing:NO];
198198
}
199199

200-
int tabMinWidthKey;
201-
int tabMaxWidthKey;
202-
int tabOptimumWidthKey;
203-
if (shouldUseYosemiteTabBarStyle()) {
204-
tabMinWidthKey = 120;
205-
tabMaxWidthKey = 0;
206-
tabOptimumWidthKey = 0;
207-
} else {
208-
tabMinWidthKey = 64;
209-
tabMaxWidthKey = 6*64;
210-
tabOptimumWidthKey = 132;
211-
}
212-
213200
NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
214201
[NSNumber numberWithBool:NO], MMNoWindowKey,
215-
[NSNumber numberWithInt:tabMinWidthKey],
216-
MMTabMinWidthKey,
217-
[NSNumber numberWithInt:tabMaxWidthKey],
218-
MMTabMaxWidthKey,
219-
[NSNumber numberWithInt:tabOptimumWidthKey],
220-
MMTabOptimumWidthKey,
202+
[NSNumber numberWithInt:120], MMTabMinWidthKey,
203+
[NSNumber numberWithInt:200], MMTabOptimumWidthKey,
221204
[NSNumber numberWithBool:YES], MMShowAddTabButtonKey,
222205
[NSNumber numberWithInt:2], MMTextInsetLeftKey,
223206
[NSNumber numberWithInt:1], MMTextInsetRightKey,

src/MacVim/MMFullScreenWindow.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
NSWindow *target;
1919
MMVimView *view;
2020
NSPoint oldPosition;
21-
NSString *oldTabBarStyle;
2221
int options;
2322
int state;
2423

src/MacVim/MMFullScreenWindow.m

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#import "MMWindowController.h"
3131
#import "Miscellaneous.h"
3232
#import <Carbon/Carbon.h>
33-
#import <PSMTabBarControl/PSMTabBarControl.h>
3433

3534
// These have to be the same as in option.h
3635
#define FUOPT_MAXVERT 0x001
@@ -164,12 +163,6 @@ - (void)enterFullScreen
164163
// make target's window controller believe that it's now controlling us
165164
[[target windowController] setWindow:self];
166165

167-
oldTabBarStyle = [[view tabBarControl] styleName];
168-
169-
NSString *style =
170-
shouldUseYosemiteTabBarStyle() ? (shouldUseMojaveTabBarStyle() ? @"Mojave" : @"Yosemite") : @"Unified";
171-
[[view tabBarControl] setStyleNamed:style];
172-
173166
// add text view
174167
oldPosition = [view frame].origin;
175168

@@ -278,8 +271,6 @@ - (void)leaveFullScreen
278271
[self retain]; // NSWindowController releases us once
279272
[[self windowController] setWindow:target];
280273

281-
[[view tabBarControl] setStyleNamed:oldTabBarStyle];
282-
283274
// fix delegate
284275
id delegate = [self delegate];
285276
[self setDelegate:nil];

src/MacVim/MMVimController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,10 +690,10 @@ - (void)handleMessage:(int)msgid data:(NSData *)data
690690
} else if (UpdateTabBarMsgID == msgid) {
691691
[windowController updateTabsWithData:data];
692692
} else if (ShowTabBarMsgID == msgid) {
693-
[windowController showTabBar:YES];
693+
[windowController showTabline:YES];
694694
[self sendMessage:BackingPropertiesChangedMsgID data:nil];
695695
} else if (HideTabBarMsgID == msgid) {
696-
[windowController showTabBar:NO];
696+
[windowController showTabline:NO];
697697
[self sendMessage:BackingPropertiesChangedMsgID data:nil];
698698
} else if (SetTextDimensionsMsgID == msgid || LiveResizeMsgID == msgid ||
699699
SetTextDimensionsNoResizeWindowMsgID == msgid ||

src/MacVim/MMVimView.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
@class MMTabline;
1616
@class MMTab;
17-
@class PSMTabBarControl;
1817
@class MMTextView;
1918
@class MMScroller;
2019
@class MMVimController;
@@ -23,8 +22,6 @@
2322
@interface MMVimView : NSView {
2423
MMTabline *tabline;
2524
MMTab *tabToClose;
26-
PSMTabBarControl *tabBarControl;
27-
NSTabView *tabView;
2825
MMVimController *vimController;
2926
BOOL vimTaskSelectedTab;
3027
MMTextView *textView;
@@ -45,11 +42,9 @@
4542
- (void)setDesiredRows:(int)r columns:(int)c;
4643

4744
- (MMTabline *)tabline;
48-
- (PSMTabBarControl *)tabBarControl;
4945
- (IBAction)addNewTab:(id)sender;
5046
- (void)updateTabsWithData:(NSData *)data;
5147
- (void)selectTabWithIndex:(int)idx;
52-
- (NSTabViewItem *)addNewTabViewItem;
5348
- (MMTab *)addNewTab;
5449

5550
- (void)createScrollbarWithIdentifier:(int32_t)ident type:(int)type;

0 commit comments

Comments
 (0)