rename BarButton FilterBarButton
This commit is contained in:
parent
e6ee697398
commit
48bcc69675
|
@ -100,7 +100,7 @@
|
||||||
A22A8D560AEEAFA5007E9CB9 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = A22A8D540AEEAFA5007E9CB9 /* Localizable.strings */; };
|
A22A8D560AEEAFA5007E9CB9 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = A22A8D540AEEAFA5007E9CB9 /* Localizable.strings */; };
|
||||||
A232D29E0A70903E00973B12 /* Filter.png in Resources */ = {isa = PBXBuildFile; fileRef = A232D29D0A70903E00973B12 /* Filter.png */; };
|
A232D29E0A70903E00973B12 /* Filter.png in Resources */ = {isa = PBXBuildFile; fileRef = A232D29D0A70903E00973B12 /* Filter.png */; };
|
||||||
A2385DD40BFE06C800B24EF6 /* DragOverlayWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = A2385DD20BFE06C800B24EF6 /* DragOverlayWindow.m */; };
|
A2385DD40BFE06C800B24EF6 /* DragOverlayWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = A2385DD20BFE06C800B24EF6 /* DragOverlayWindow.m */; };
|
||||||
A23BBEB70A9BBE77003F7274 /* BarButton.m in Sources */ = {isa = PBXBuildFile; fileRef = A27431D90A68538400FA780A /* BarButton.m */; };
|
A23BBEB70A9BBE77003F7274 /* FilterBarButton.m in Sources */ = {isa = PBXBuildFile; fileRef = A27431D90A68538400FA780A /* FilterBarButton.m */; };
|
||||||
A24103070AF80E390001C8D0 /* FilterButtonPressedLeft.png in Resources */ = {isa = PBXBuildFile; fileRef = A253F7140A699178008EE24F /* FilterButtonPressedLeft.png */; };
|
A24103070AF80E390001C8D0 /* FilterButtonPressedLeft.png in Resources */ = {isa = PBXBuildFile; fileRef = A253F7140A699178008EE24F /* FilterButtonPressedLeft.png */; };
|
||||||
A241528B0C0261B8007DD3B4 /* Globe.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A2FB06950BFF484A0095564D /* Globe.tiff */; };
|
A241528B0C0261B8007DD3B4 /* Globe.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A2FB06950BFF484A0095564D /* Globe.tiff */; };
|
||||||
A246004D0A6DCE4600D19088 /* SpeedLimitButtonPressed.png in Resources */ = {isa = PBXBuildFile; fileRef = A246004C0A6DCE4600D19088 /* SpeedLimitButtonPressed.png */; };
|
A246004D0A6DCE4600D19088 /* SpeedLimitButtonPressed.png in Resources */ = {isa = PBXBuildFile; fileRef = A246004C0A6DCE4600D19088 /* SpeedLimitButtonPressed.png */; };
|
||||||
|
@ -351,8 +351,8 @@
|
||||||
A26B0B4F0BCFD7B0008C1579 /* Greek */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = Greek; path = macosx/Greek.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
A26B0B4F0BCFD7B0008C1579 /* Greek */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = Greek; path = macosx/Greek.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||||
A2710E740A86796000CE4F7D /* PrefsWindow.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = PrefsWindow.h; path = macosx/PrefsWindow.h; sourceTree = "<group>"; };
|
A2710E740A86796000CE4F7D /* PrefsWindow.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = PrefsWindow.h; path = macosx/PrefsWindow.h; sourceTree = "<group>"; };
|
||||||
A2710E750A86796000CE4F7D /* PrefsWindow.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = PrefsWindow.m; path = macosx/PrefsWindow.m; sourceTree = "<group>"; };
|
A2710E750A86796000CE4F7D /* PrefsWindow.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = PrefsWindow.m; path = macosx/PrefsWindow.m; sourceTree = "<group>"; };
|
||||||
A27431D80A68538400FA780A /* BarButton.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = BarButton.h; path = macosx/BarButton.h; sourceTree = "<group>"; };
|
A27431D80A68538400FA780A /* FilterBarButton.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = FilterBarButton.h; path = macosx/FilterBarButton.h; sourceTree = "<group>"; };
|
||||||
A27431D90A68538400FA780A /* BarButton.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = BarButton.m; path = macosx/BarButton.m; sourceTree = "<group>"; };
|
A27431D90A68538400FA780A /* FilterBarButton.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = FilterBarButton.m; path = macosx/FilterBarButton.m; sourceTree = "<group>"; };
|
||||||
A27A53420A06A62500E1F16F /* StatusSep.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = StatusSep.png; path = macosx/Images/StatusSep.png; sourceTree = "<group>"; };
|
A27A53420A06A62500E1F16F /* StatusSep.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = StatusSep.png; path = macosx/Images/StatusSep.png; sourceTree = "<group>"; };
|
||||||
A27A53560A06A76400E1F16F /* StatusSep.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = StatusSep.png; path = macosx/Images/StatusSep.png; sourceTree = "<group>"; };
|
A27A53560A06A76400E1F16F /* StatusSep.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = StatusSep.png; path = macosx/Images/StatusSep.png; sourceTree = "<group>"; };
|
||||||
A27ABC210A6ADE410020EC71 /* ImageBackgroundView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = ImageBackgroundView.h; path = macosx/ImageBackgroundView.h; sourceTree = "<group>"; };
|
A27ABC210A6ADE410020EC71 /* ImageBackgroundView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = ImageBackgroundView.h; path = macosx/ImageBackgroundView.h; sourceTree = "<group>"; };
|
||||||
|
@ -490,8 +490,8 @@
|
||||||
32CA4F630368D1EE00C91783 /* Transmission_Prefix.pch */,
|
32CA4F630368D1EE00C91783 /* Transmission_Prefix.pch */,
|
||||||
A2AF1C360A3D0F6200F1575D /* FileOutlineView.h */,
|
A2AF1C360A3D0F6200F1575D /* FileOutlineView.h */,
|
||||||
A2AF1C370A3D0F6200F1575D /* FileOutlineView.m */,
|
A2AF1C370A3D0F6200F1575D /* FileOutlineView.m */,
|
||||||
A27431D80A68538400FA780A /* BarButton.h */,
|
A27431D80A68538400FA780A /* FilterBarButton.h */,
|
||||||
A27431D90A68538400FA780A /* BarButton.m */,
|
A27431D90A68538400FA780A /* FilterBarButton.m */,
|
||||||
A27ABC210A6ADE410020EC71 /* ImageBackgroundView.h */,
|
A27ABC210A6ADE410020EC71 /* ImageBackgroundView.h */,
|
||||||
A27ABC220A6ADE410020EC71 /* ImageBackgroundView.m */,
|
A27ABC220A6ADE410020EC71 /* ImageBackgroundView.m */,
|
||||||
A2710E740A86796000CE4F7D /* PrefsWindow.h */,
|
A2710E740A86796000CE4F7D /* PrefsWindow.h */,
|
||||||
|
@ -963,7 +963,7 @@
|
||||||
A27ABC240A6ADE410020EC71 /* ImageBackgroundView.m in Sources */,
|
A27ABC240A6ADE410020EC71 /* ImageBackgroundView.m in Sources */,
|
||||||
A2710E770A86796000CE4F7D /* PrefsWindow.m in Sources */,
|
A2710E770A86796000CE4F7D /* PrefsWindow.m in Sources */,
|
||||||
A256588D0A9A695400E8A03B /* MessageWindowController.m in Sources */,
|
A256588D0A9A695400E8A03B /* MessageWindowController.m in Sources */,
|
||||||
A23BBEB70A9BBE77003F7274 /* BarButton.m in Sources */,
|
A23BBEB70A9BBE77003F7274 /* FilterBarButton.m in Sources */,
|
||||||
A2A3065C0AAD24A80049E2AC /* UKFileWatcher.m in Sources */,
|
A2A3065C0AAD24A80049E2AC /* UKFileWatcher.m in Sources */,
|
||||||
A2A3065E0AAD24A80049E2AC /* UKFNSubscribeFileWatcher.m in Sources */,
|
A2A3065E0AAD24A80049E2AC /* UKFNSubscribeFileWatcher.m in Sources */,
|
||||||
A2A306600AAD24A80049E2AC /* UKKQueue.m in Sources */,
|
A2A306600AAD24A80049E2AC /* UKKQueue.m in Sources */,
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#import "DragOverlayWindow.h"
|
#import "DragOverlayWindow.h"
|
||||||
#import "Badger.h"
|
#import "Badger.h"
|
||||||
#import "ImageBackgroundView.h"
|
#import "ImageBackgroundView.h"
|
||||||
#import "BarButton.h"
|
#import "FilterBarButton.h"
|
||||||
|
|
||||||
#import <Growl/Growl.h>
|
#import <Growl/Growl.h>
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
* fDateSortActionItem, * fOrderSortActionItem;
|
* fDateSortActionItem, * fOrderSortActionItem;
|
||||||
|
|
||||||
IBOutlet ImageBackgroundView * fFilterBar;
|
IBOutlet ImageBackgroundView * fFilterBar;
|
||||||
IBOutlet BarButton * fNoFilterButton, * fPauseFilterButton,
|
IBOutlet FilterBarButton * fNoFilterButton, * fPauseFilterButton,
|
||||||
* fSeedFilterButton, * fDownloadFilterButton;
|
* fSeedFilterButton, * fDownloadFilterButton;
|
||||||
IBOutlet NSSearchField * fSearchFilterField;
|
IBOutlet NSSearchField * fSearchFilterField;
|
||||||
IBOutlet NSMenuItem * fNextFilterItem, * fPrevFilterItem;
|
IBOutlet NSMenuItem * fNextFilterItem, * fPrevFilterItem;
|
||||||
|
|
|
@ -343,7 +343,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
//set filter
|
//set filter
|
||||||
NSString * filterType = [fDefaults stringForKey: @"Filter"];
|
NSString * filterType = [fDefaults stringForKey: @"Filter"];
|
||||||
|
|
||||||
BarButton * currentFilterButton;
|
FilterBarButton * currentFilterButton;
|
||||||
if ([filterType isEqualToString: @"Pause"])
|
if ([filterType isEqualToString: @"Pause"])
|
||||||
currentFilterButton = fPauseFilterButton;
|
currentFilterButton = fPauseFilterButton;
|
||||||
else if ([filterType isEqualToString: @"Seed"])
|
else if ([filterType isEqualToString: @"Seed"])
|
||||||
|
@ -1700,7 +1700,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
{
|
{
|
||||||
NSString * oldFilterType = [fDefaults stringForKey: @"Filter"];
|
NSString * oldFilterType = [fDefaults stringForKey: @"Filter"];
|
||||||
|
|
||||||
BarButton * prevFilterButton;
|
FilterBarButton * prevFilterButton;
|
||||||
if ([oldFilterType isEqualToString: @"Pause"])
|
if ([oldFilterType isEqualToString: @"Pause"])
|
||||||
prevFilterButton = fPauseFilterButton;
|
prevFilterButton = fPauseFilterButton;
|
||||||
else if ([oldFilterType isEqualToString: @"Seed"])
|
else if ([oldFilterType isEqualToString: @"Seed"])
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
IBClasses = (
|
IBClasses = (
|
||||||
{CLASS = ActionPopUpButton; LANGUAGE = ObjC; SUPERCLASS = NSPopUpButton; },
|
{CLASS = ActionPopUpButton; LANGUAGE = ObjC; SUPERCLASS = NSPopUpButton; },
|
||||||
{CLASS = BarButton; LANGUAGE = ObjC; SUPERCLASS = NSButton; },
|
|
||||||
{
|
{
|
||||||
ACTIONS = {
|
ACTIONS = {
|
||||||
announceSelectedTorrents = id;
|
announceSelectedTorrents = id;
|
||||||
|
@ -54,7 +53,7 @@
|
||||||
fDateSortActionItem = NSMenuItem;
|
fDateSortActionItem = NSMenuItem;
|
||||||
fDateSortItem = NSMenuItem;
|
fDateSortItem = NSMenuItem;
|
||||||
fDockMenu = NSMenu;
|
fDockMenu = NSMenu;
|
||||||
fDownloadFilterButton = BarButton;
|
fDownloadFilterButton = FilterBarButton;
|
||||||
fDownloadLimitItem = NSMenuItem;
|
fDownloadLimitItem = NSMenuItem;
|
||||||
fDownloadMenu = NSMenu;
|
fDownloadMenu = NSMenu;
|
||||||
fDownloadNoLimitItem = NSMenuItem;
|
fDownloadNoLimitItem = NSMenuItem;
|
||||||
|
@ -63,18 +62,18 @@
|
||||||
fNameSortItem = NSMenuItem;
|
fNameSortItem = NSMenuItem;
|
||||||
fNextFilterItem = NSMenuItem;
|
fNextFilterItem = NSMenuItem;
|
||||||
fNextInfoTabItem = NSMenuItem;
|
fNextInfoTabItem = NSMenuItem;
|
||||||
fNoFilterButton = BarButton;
|
fNoFilterButton = FilterBarButton;
|
||||||
fOpenIgnoreDownloadFolder = NSMenuItem;
|
fOpenIgnoreDownloadFolder = NSMenuItem;
|
||||||
fOrderSortActionItem = NSMenuItem;
|
fOrderSortActionItem = NSMenuItem;
|
||||||
fOrderSortItem = NSMenuItem;
|
fOrderSortItem = NSMenuItem;
|
||||||
fPauseFilterButton = BarButton;
|
fPauseFilterButton = FilterBarButton;
|
||||||
fPrevFilterItem = NSMenuItem;
|
fPrevFilterItem = NSMenuItem;
|
||||||
fPrevInfoTabItem = NSMenuItem;
|
fPrevInfoTabItem = NSMenuItem;
|
||||||
fProgressSortActionItem = NSMenuItem;
|
fProgressSortActionItem = NSMenuItem;
|
||||||
fProgressSortItem = NSMenuItem;
|
fProgressSortItem = NSMenuItem;
|
||||||
fScrollView = NSScrollView;
|
fScrollView = NSScrollView;
|
||||||
fSearchFilterField = NSSearchField;
|
fSearchFilterField = NSSearchField;
|
||||||
fSeedFilterButton = BarButton;
|
fSeedFilterButton = FilterBarButton;
|
||||||
fSpeedLimitButton = NSButton;
|
fSpeedLimitButton = NSButton;
|
||||||
fStateSortActionItem = NSMenuItem;
|
fStateSortActionItem = NSMenuItem;
|
||||||
fStateSortItem = NSMenuItem;
|
fStateSortItem = NSMenuItem;
|
||||||
|
@ -93,6 +92,7 @@
|
||||||
};
|
};
|
||||||
SUPERCLASS = NSObject;
|
SUPERCLASS = NSObject;
|
||||||
},
|
},
|
||||||
|
{CLASS = FilterBarButton; LANGUAGE = ObjC; SUPERCLASS = NSButton; },
|
||||||
{
|
{
|
||||||
ACTIONS = {deselectAll = id; revealFile = id; setNextTab = id; setPreviousTab = id; };
|
ACTIONS = {deselectAll = id; revealFile = id; setNextTab = id; setPreviousTab = id; };
|
||||||
CLASS = FirstResponder;
|
CLASS = FirstResponder;
|
||||||
|
|
Binary file not shown.
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
|
|
||||||
@interface BarButton : NSButton
|
@interface FilterBarButton : NSButton
|
||||||
{
|
{
|
||||||
NSImage * fButtonNormal, * fButtonNormalDim, * fButtonOver,
|
NSImage * fButtonNormal, * fButtonNormalDim, * fButtonOver,
|
||||||
* fButtonPressed, * fButtonSelected, * fButtonSelectedDim;
|
* fButtonPressed, * fButtonSelected, * fButtonSelectedDim;
|
|
@ -22,15 +22,15 @@
|
||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#import "BarButton.h"
|
#import "FilterBarButton.h"
|
||||||
|
|
||||||
@interface BarButton (Private)
|
@interface FilterBarButton (Private)
|
||||||
|
|
||||||
- (void) createButtons;
|
- (void) createButtons;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation BarButton
|
@implementation FilterBarButton
|
||||||
|
|
||||||
//height of button should be 17.0
|
//height of button should be 17.0
|
||||||
- (id) initWithCoder: (NSCoder *) coder
|
- (id) initWithCoder: (NSCoder *) coder
|
Loading…
Reference in New Issue