1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-30 10:52:00 +00:00

hook action in the xib (#4135)

This commit is contained in:
A Cœur 2022-11-16 00:50:16 +08:00 committed by GitHub
parent 22c14c9266
commit befeafbcfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 78 additions and 81 deletions

View file

@ -13,12 +13,12 @@
- (instancetype)initWithTorrent:(Torrent*)torrent destination:(NSString*)path controller:(Controller*)controller;
- (void)setDestination:(id)sender;
- (IBAction)setDestination:(id)sender;
- (void)add:(id)sender;
- (void)cancelAdd:(id)sender;
- (IBAction)add:(id)sender;
- (IBAction)cancelAdd:(id)sender;
- (void)changePriority:(id)sender;
- (IBAction)changePriority:(id)sender;
- (void)updateGroupMenu:(NSNotification*)notification;

View file

@ -21,18 +21,18 @@
deleteTorrentCheckEnableInitially:(BOOL)deleteTorrent
canToggleDelete:(BOOL)canToggleDelete;
- (void)setDestination:(id)sender;
- (IBAction)setDestination:(id)sender;
- (void)add:(id)sender;
- (void)cancelAdd:(id)sender;
- (IBAction)add:(id)sender;
- (IBAction)cancelAdd:(id)sender;
- (IBAction)setFileFilterText:(id)sender;
- (IBAction)checkAll:(id)sender;
- (IBAction)uncheckAll:(id)sender;
- (void)verifyLocalData:(id)sender;
- (IBAction)verifyLocalData:(id)sender;
- (void)changePriority:(id)sender;
- (IBAction)changePriority:(id)sender;
- (void)updateCheckButtons:(NSNotification*)notification;

View file

@ -146,6 +146,7 @@ Gw
</tableColumn>
</tableColumns>
<connections>
<action trigger="doubleAction" selector="revealFile:" target="53" id="uKI-cw-UrF"/>
<outlet property="dataSource" destination="53" id="56"/>
<outlet property="delegate" destination="53" id="55"/>
</connections>

View file

@ -136,6 +136,9 @@
<constraint firstAttribute="width" constant="93" id="euA-Qi-kqQ"/>
</constraints>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="axesIndependently" id="40"/>
<connections>
<action selector="updatePiecesView:" target="-2" id="lAc-eh-g8B"/>
</connections>
</imageView>
<textField verticalHuggingPriority="1000" horizontalCompressionResistancePriority="1000" verticalCompressionResistancePriority="1000" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="0.0" translatesAutoresizingMaskIntoConstraints="NO" id="29">
<rect key="frame" x="-2" y="120" width="73" height="14"/>

View file

@ -12,7 +12,7 @@
+ (void)downloadWithPrefsController:(PrefsController*)prefsController;
- (void)cancelDownload:(id)sender;
- (IBAction)cancelDownload:(id)sender;
- (void)setStatusStarting;
- (void)setStatusProgressForCurrentSize:(NSUInteger)currentSize expectedSize:(long long)expectedSize;

View file

@ -33,7 +33,7 @@ typedef NS_ENUM(unsigned int, addType) { //
- (void)askOpenConfirmed:(AddWindowController*)addController add:(BOOL)add;
- (void)openCreatedFile:(NSNotification*)notification;
- (void)openFilesWithDict:(NSDictionary*)dictionary;
- (void)openShowSheet:(id)sender;
- (IBAction)openShowSheet:(id)sender;
- (void)openMagnet:(NSString*)address;
- (void)askOpenMagnetConfirmed:(AddMagnetWindowController*)addController add:(BOOL)add;
@ -44,62 +44,62 @@ typedef NS_ENUM(unsigned int, addType) { //
- (void)duplicateOpenMagnetAlert:(NSString*)address transferName:(NSString*)name;
- (void)openURL:(NSString*)urlString;
- (void)openURLShowSheet:(id)sender;
- (IBAction)openURLShowSheet:(id)sender;
@property(nonatomic, readonly) tr_session* sessionHandle;
- (void)createFile:(id)sender;
- (IBAction)createFile:(id)sender;
- (void)resumeSelectedTorrents:(id)sender;
- (void)resumeAllTorrents:(id)sender;
- (IBAction)resumeSelectedTorrents:(id)sender;
- (IBAction)resumeAllTorrents:(id)sender;
- (void)resumeTorrents:(NSArray*)torrents;
- (void)resumeSelectedTorrentsNoWait:(id)sender;
- (void)resumeWaitingTorrents:(id)sender;
- (IBAction)resumeSelectedTorrentsNoWait:(id)sender;
- (IBAction)resumeWaitingTorrents:(id)sender;
- (void)resumeTorrentsNoWait:(NSArray<Torrent*>*)torrents;
- (void)stopSelectedTorrents:(id)sender;
- (void)stopAllTorrents:(id)sender;
- (IBAction)stopSelectedTorrents:(id)sender;
- (IBAction)stopAllTorrents:(id)sender;
- (void)stopTorrents:(NSArray<Torrent*>*)torrents;
- (void)removeTorrents:(NSArray<Torrent*>*)torrents deleteData:(BOOL)deleteData;
- (void)confirmRemoveTorrents:(NSArray<Torrent*>*)torrents deleteData:(BOOL)deleteData;
- (void)removeNoDelete:(id)sender;
- (void)removeDeleteData:(id)sender;
- (IBAction)removeNoDelete:(id)sender;
- (IBAction)removeDeleteData:(id)sender;
- (void)clearCompleted:(id)sender;
- (IBAction)clearCompleted:(id)sender;
- (void)moveDataFilesSelected:(id)sender;
- (IBAction)moveDataFilesSelected:(id)sender;
- (void)moveDataFiles:(NSArray<Torrent*>*)torrents;
- (void)copyTorrentFiles:(id)sender;
- (IBAction)copyTorrentFiles:(id)sender;
- (void)copyTorrentFileForTorrents:(NSMutableArray<Torrent*>*)torrents;
- (void)copyMagnetLinks:(id)sender;
- (IBAction)copyMagnetLinks:(id)sender;
- (void)revealFile:(id)sender;
- (IBAction)revealFile:(id)sender;
- (IBAction)renameSelected:(id)sender;
- (void)announceSelectedTorrents:(id)sender;
- (IBAction)announceSelectedTorrents:(id)sender;
- (void)verifySelectedTorrents:(id)sender;
- (IBAction)verifySelectedTorrents:(id)sender;
- (void)verifyTorrents:(NSArray*)torrents;
@property(nonatomic, readonly) NSArray<Torrent*>* selectedTorrents;
@property(nonatomic, readonly) PrefsController* prefsController;
- (void)showPreferenceWindow:(id)sender;
- (IBAction)showPreferenceWindow:(id)sender;
- (void)showAboutWindow:(id)sender;
- (IBAction)showAboutWindow:(id)sender;
- (void)showInfo:(id)sender;
- (IBAction)showInfo:(id)sender;
- (void)resetInfo;
- (void)setInfoTab:(id)sender;
- (IBAction)setInfoTab:(id)sender;
@property(nonatomic, readonly) MessageWindowController* messageWindowController;
- (void)showMessageWindow:(id)sender;
- (void)showStatsWindow:(id)sender;
- (IBAction)showMessageWindow:(id)sender;
- (IBAction)showStatsWindow:(id)sender;
- (void)updateUI;
- (void)fullUpdateUI;
@ -122,18 +122,18 @@ typedef NS_ENUM(unsigned int, addType) { //
forParent:(id)parent
withSortDescriptors:(NSArray*)descriptors
beganTableUpdate:(BOOL*)beganTableUpdate;
- (void)setSort:(id)sender;
- (void)setSortByGroup:(id)sender;
- (void)setSortReverse:(id)sender;
- (IBAction)setSort:(id)sender;
- (IBAction)setSortByGroup:(id)sender;
- (IBAction)setSortReverse:(id)sender;
- (void)switchFilter:(id)sender;
- (IBAction)switchFilter:(id)sender;
- (IBAction)showGlobalPopover:(id)sender;
- (void)setGroup:(id)sender; //used by delegate-generated menu items
- (void)toggleSpeedLimit:(id)sender;
- (void)speedLimitChanged:(id)sender;
- (IBAction)toggleSpeedLimit:(id)sender;
- (IBAction)speedLimitChanged:(id)sender;
- (void)altSpeedToggledCallbackIsLimited:(NSDictionary*)dict;
- (void)changeAutoImport;
@ -147,12 +147,12 @@ typedef NS_ENUM(unsigned int, addType) { //
- (void)torrentTableViewSelectionDidChange:(NSNotification*)notification;
- (void)toggleSmallView:(id)sender;
- (void)togglePiecesBar:(id)sender;
- (void)toggleAvailabilityBar:(id)sender;
- (IBAction)toggleSmallView:(id)sender;
- (IBAction)togglePiecesBar:(id)sender;
- (IBAction)toggleAvailabilityBar:(id)sender;
- (void)toggleStatusBar:(id)sender;
- (void)toggleFilterBar:(id)sender;
- (IBAction)toggleStatusBar:(id)sender;
- (IBAction)toggleFilterBar:(id)sender;
- (void)focusFilterField;
- (void)allToolbarClicked:(id)sender;
@ -172,14 +172,14 @@ typedef NS_ENUM(unsigned int, addType) { //
- (void)updateForExpandCollapse;
- (void)showMainWindow:(id)sender;
- (IBAction)showMainWindow:(id)sender;
- (void)toggleQuickLook:(id)sender;
- (IBAction)toggleQuickLook:(id)sender;
- (void)linkHomepage:(id)sender;
- (void)linkForums:(id)sender;
- (void)linkGitHub:(id)sender;
- (void)linkDonate:(id)sender;
- (IBAction)linkHomepage:(id)sender;
- (IBAction)linkForums:(id)sender;
- (IBAction)linkGitHub:(id)sender;
- (IBAction)linkDonate:(id)sender;
- (void)rpcCallback:(tr_rpc_callback_type)type forTorrentStruct:(struct tr_torrent*)torrentStruct;
- (void)rpcAddTorrentStruct:(struct tr_torrent*)torrentStruct;

View file

@ -21,7 +21,7 @@
- (void)uncheckAll;
- (void)setPriority:(id)sender;
- (void)revealFile:(id)sender;
- (IBAction)revealFile:(id)sender;
- (void)renameSelected:(id)sender;

View file

@ -40,9 +40,6 @@ typedef NS_ENUM(unsigned int, filePriorityMenuTag) { //
{
self.fFileList = [[NSMutableArray alloc] init];
self.fOutline.doubleAction = @selector(revealFile:);
self.fOutline.target = self;
//set table header tool tips
[self.fOutline tableColumnWithIdentifier:@"Check"].headerToolTip = NSLocalizedString(@"Download", "file table -> header tool tip");
[self.fOutline tableColumnWithIdentifier:@"Priority"].headerToolTip = NSLocalizedString(@"Priority", "file table -> header tool tip");

View file

@ -26,11 +26,11 @@ extern const NSInteger kGroupFilterAllTag;
- (instancetype)init;
- (void)setFilter:(id)sender;
- (IBAction)setFilter:(id)sender;
- (void)switchFilter:(BOOL)right;
- (void)setSearchText:(id)sender;
- (void)setSearchType:(id)sender;
- (void)setGroupFilter:(id)sender;
- (IBAction)setSearchText:(id)sender;
- (IBAction)setSearchType:(id)sender;
- (IBAction)setGroupFilter:(id)sender;
- (void)reset:(BOOL)updateUI;
- (void)focusSearchField;

View file

@ -153,11 +153,6 @@ static CGFloat const kStackViewVerticalSpacing = 8.0;
frame.size.width -= widthIncrease;
field.frame = frame;
}
//set the click action of the pieces view
#warning after 2.8 just hook this up in the xib
self.fPiecesView.action = @selector(updatePiecesView:);
self.fPiecesView.target = self;
}
- (void)dealloc

View file

@ -82,6 +82,7 @@
</tableColumn>
</tableColumns>
<connections>
<action trigger="doubleAction" selector="revealFile:" target="15" id="HLe-44-iu9"/>
<outlet property="dataSource" destination="15" id="19"/>
<outlet property="delegate" destination="15" id="20"/>
</connections>

View file

@ -11,6 +11,6 @@
- (void)setInfoForTorrents:(NSArray<Torrent*>*)torrents;
- (void)updateInfo;
- (void)revealDataFile:(id)sender;
- (IBAction)revealDataFile:(id)sender;
@end

View file

@ -14,6 +14,6 @@
- (void)saveViewSize;
- (void)clearView;
- (void)addRemoveTracker:(id)sender;
- (IBAction)addRemoveTracker:(id)sender;
@end

View file

@ -75,6 +75,9 @@
<segment tag="5"/>
</segments>
</segmentedCell>
<connections>
<action selector="setTab:" target="-2" id="Vag-7z-279"/>
</connections>
</segmentedControl>
</subviews>
<constraints>

View file

@ -15,7 +15,7 @@
- (void)updateInfoStats;
- (void)updateOptions;
- (void)setTab:(id)sender;
- (IBAction)setTab:(id)sender;
- (void)setNextTab;
- (void)setPreviousTab;

View file

@ -153,9 +153,6 @@ typedef NS_ENUM(unsigned int, tabTag) {
tag = TAB_GENERAL_TAG;
}
self.fTabs.target = self;
self.fTabs.action = @selector(setTab:);
self.fTabs.selectedSegment = tag;
[self setTab:nil];

View file

@ -8,10 +8,10 @@
- (void)updateLog:(NSTimer*)timer;
- (void)changeLevel:(id)sender;
- (void)changeFilter:(id)sender;
- (void)clearLog:(id)sender;
- (IBAction)changeLevel:(id)sender;
- (IBAction)changeFilter:(id)sender;
- (IBAction)clearLog:(id)sender;
- (void)writeToFile:(id)sender;
- (IBAction)writeToFile:(id)sender;
@end

View file

@ -10,6 +10,6 @@
@property(nonatomic, class, readonly) StatsWindowController* statsWindow;
- (void)resetStats:(id)sender;
- (IBAction)resetStats:(id)sender;
@end

View file

@ -36,14 +36,14 @@ extern const CGFloat kGroupSeparatorHeight;
- (void)displayTorrentActionPopoverForEvent:(NSEvent*)event;
- (void)setQuickLimitMode:(id)sender;
- (IBAction)setQuickLimitMode:(id)sender;
- (void)setQuickLimit:(id)sender;
- (void)setGlobalLimit:(id)sender;
- (IBAction)setGlobalLimit:(id)sender;
- (void)setQuickRatioMode:(id)sender;
- (IBAction)setQuickRatioMode:(id)sender;
- (void)setQuickRatio:(id)sender;
- (void)setPriority:(id)sender;
- (IBAction)setPriority:(id)sender;
- (void)togglePiecesBar;
@property(nonatomic, readonly) CGFloat piecesBarPercent;

View file

@ -10,7 +10,7 @@
- (instancetype)init;
- (void)openURLEndSheet:(id)sender;
- (void)openURLCancelEndSheet:(id)sender;
- (IBAction)openURLEndSheet:(id)sender;
- (IBAction)openURLCancelEndSheet:(id)sender;
@end