diff --git a/macosx/AddWindowController.h b/macosx/AddWindowController.h index 8717e3c69..6e7e7fc50 100644 --- a/macosx/AddWindowController.h +++ b/macosx/AddWindowController.h @@ -40,6 +40,7 @@ IBOutlet NSButton * fCheckAllButton, *fUncheckAllButton; IBOutlet FileOutlineController * fFileController; + IBOutlet NSScrollView * fFileScrollView; Controller * fController; diff --git a/macosx/AddWindowController.m b/macosx/AddWindowController.m index 4b9e4ba95..4f11dd1bb 100644 --- a/macosx/AddWindowController.m +++ b/macosx/AddWindowController.m @@ -92,9 +92,20 @@ [fIconView setImage: [fTorrent icon]]; - [fFileFilterField setEnabled: [fTorrent isFolder]]; - - [self updateCheckButtons: nil]; + if (![fTorrent isFolder]) + { + [fFileFilterField setHidden: YES]; + [fCheckAllButton setHidden: YES]; + [fUncheckAllButton setHidden: YES]; + + NSRect scrollFrame = [fFileScrollView frame]; + const CGFloat diff = NSMinY([fFileScrollView frame]) - NSMinY([fFileFilterField frame]); + scrollFrame.origin.y -= diff; + scrollFrame.size.height += diff; + [fFileScrollView setFrame: scrollFrame]; + } + else + [self updateCheckButtons: nil]; [self setGroupsMenu]; [fGroupPopUp selectItemWithTag: fGroupValue]; diff --git a/macosx/en.lproj/AddWindow.xib b/macosx/en.lproj/AddWindow.xib index 996a5bbdd..775707723 100644 --- a/macosx/en.lproj/AddWindow.xib +++ b/macosx/en.lproj/AddWindow.xib @@ -77,6 +77,7 @@ {{20, 452}, {64, 64}} + YES @@ -98,6 +99,7 @@ 266 {{89, 460}, {327, 17}} + YES @@ -135,6 +137,7 @@ 266 {{89, 485}, {324, 22}} + YES @@ -156,6 +159,7 @@ 292 {{18, 18}, {132, 18}} + YES @@ -180,6 +184,7 @@ 289 {{339, 12}, {80, 32}} + YES @@ -206,6 +211,7 @@ 289 {{257, 12}, {82, 32}} + YES @@ -236,6 +242,7 @@ 256 {391, 220} + YES @@ -379,6 +386,7 @@ {{1, 1}, {391, 220}} + @@ -389,7 +397,8 @@ 256 {{377, 1}, {15, 220}} - + + _doScroller: 0.05439330543933054 @@ -400,6 +409,7 @@ -2147483392 {{-100, -100}, {328, 15}} + 1 @@ -410,6 +420,7 @@ {{20, 214}, {393, 222}} + 133138 @@ -417,21 +428,22 @@ QSAAAEEgAABCEAAAQhAAAA - + 289 {{371, 190}, {42, 17}} + _NS:9 YES - + -1543373312 134348800 None _NS:9 - + -2038152961 164 @@ -440,21 +452,22 @@ 75 - + 289 {{321, 190}, {42, 17}} - + + _NS:9 YES - + -1543373312 134348800 All _NS:9 - + -2038152961 164 @@ -468,6 +481,7 @@ 292 {{18, 40}, {129, 18}} + YES @@ -500,8 +514,9 @@ 265 - {{254, 19}, {125, 26}} + {{257, 19}, {125, 26}} + YES @@ -525,11 +540,11 @@ NSImage PriorityNormalTemplate - + NSImage NSMenuCheckmark - + NSImage NSMenuMixedState @@ -550,8 +565,8 @@ NSImage PriorityHighTemplate - - + + _popUpItemAction: @@ -565,8 +580,8 @@ NSImage PriorityLowTemplate - - + + _popUpItemAction: 2 @@ -583,8 +598,9 @@ 265 - {{204, 53}, {48, 17}} + {{207, 53}, {48, 17}} + YES @@ -600,8 +616,9 @@ 265 - {{254, 47}, {125, 26}} + {{257, 47}, {125, 26}} + YES @@ -634,6 +651,7 @@ {{18, 31}, {135, 12}} + 24842 1 @@ -641,8 +659,9 @@ 265 - {{198, 25}, {54, 17}} + {{201, 25}, {54, 17}} + YES @@ -660,6 +679,7 @@ 268 {{12, 43}, {146, 32}} + YES @@ -679,8 +699,9 @@ 265 - {{303, 76}, {78, 28}} + {{306, 76}, {78, 28}} + YES @@ -709,6 +730,7 @@ 268 {{15, 83}, {88, 17}} + YES @@ -732,8 +754,9 @@ 266 - {{33, 8}, {148, 14}} + {{33, 8}, {151, 14}} + YES @@ -759,6 +782,7 @@ {{12, 7}, {16, 16}} + YES @@ -773,13 +797,15 @@ YES - {{1, 1}, {196, 28}} + {{1, 1}, {199, 28}} + - {{105, 75}, {198, 30}} + {{105, 75}, {201, 30}} + {0, 0} @@ -805,13 +831,15 @@ NO - {{1, 1}, {394, 114}} + {{1, 1}, {397, 114}} + - {{17, 68}, {396, 116}} + {{17, 68}, {399, 116}} + {0, 0} @@ -831,20 +859,21 @@ 0 NO - + 292 {{20, 190}, {110, 19}} - + + YES - + 343014976 268567552 Filter - + YES 1 @@ -853,9 +882,9 @@ 130560 0 search - + _searchFieldSearch: - + 138690815 0 @@ -872,9 +901,9 @@ - + _searchFieldCancel: - + 138690815 0 @@ -887,6 +916,7 @@ {433, 526} + {{0, 0}, {2560, 1440}} @@ -1041,7 +1071,7 @@ checkAll: - + 106 @@ -1049,7 +1079,7 @@ uncheckAll: - + 107 @@ -1057,7 +1087,7 @@ fCheckAllButton - + 108 @@ -1065,7 +1095,7 @@ fUncheckAllButton - + 109 @@ -1073,7 +1103,7 @@ fFileFilterField - + 114 @@ -1081,10 +1111,18 @@ setFileFilterText: - + 115 + + + fFileScrollView + + + + 116 + delegate @@ -1166,9 +1204,9 @@ - - - + + + @@ -1523,42 +1561,42 @@ 102 - + - + 103 - + - + 104 - - + + 105 - - + + 112 - + - + 113 - - + + @@ -1637,9 +1675,145 @@ - 115 + 116 + + + + + AddWindowController + NSWindowController + + id + id + id + + + + checkAll: + id + + + setFileFilterText: + id + + + uncheckAll: + id + + + + NSButton + NSButton + FileOutlineController + NSTextField + NSScrollView + NSPopUpButton + NSImageView + NSTextField + NSImageView + NSTextField + NSPopUpButton + NSButton + NSTextField + NSButton + NSProgressIndicator + + + + fCheckAllButton + NSButton + + + fDeleteCheck + NSButton + + + fFileController + FileOutlineController + + + fFileFilterField + NSTextField + + + fFileScrollView + NSScrollView + + + fGroupPopUp + NSPopUpButton + + + fIconView + NSImageView + + + fLocationField + NSTextField + + + fLocationImageView + NSImageView + + + fNameField + NSTextField + + + fPriorityPopUp + NSPopUpButton + + + fStartCheck + NSButton + + + fStatusField + NSTextField + + + fUncheckAllButton + NSButton + + + fVerifyIndicator + NSProgressIndicator + + + + IBProjectSource + ./Classes/AddWindowController.h + + + + FileOutlineController + NSObject + + fOutline + FileOutlineView + + + fOutline + + fOutline + FileOutlineView + + + + IBProjectSource + ./Classes/FileOutlineController.h + + + + FileOutlineView + NSOutlineView + + IBProjectSource + ./Classes/FileOutlineView.h + + + - 0 IBCocoaFramework