mirror of
https://github.com/transmission/transmission
synced 2025-03-09 13:50:00 +00:00
Makes the info controller horizontally resizable
This commit is contained in:
parent
cb2eb173d1
commit
c20a36c88c
3 changed files with 12 additions and 1 deletions
4
macosx/English.lproj/InfoWindow.nib/info.nib
generated
4
macosx/English.lproj/InfoWindow.nib/info.nib
generated
|
@ -19,6 +19,10 @@
|
|||
<array>
|
||||
<integer>332</integer>
|
||||
</array>
|
||||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>5</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>8I1119</string>
|
||||
</dict>
|
||||
|
|
BIN
macosx/English.lproj/InfoWindow.nib/keyedobjects.nib
generated
BIN
macosx/English.lproj/InfoWindow.nib/keyedobjects.nib
generated
Binary file not shown.
|
@ -29,13 +29,16 @@
|
|||
#define RATIO_GLOBAL_TAG 1
|
||||
#define RATIO_CHECK_TAG 2
|
||||
|
||||
#define MIN_WINDOW_WIDTH 270
|
||||
#define MAX_WINDOW_WIDTH 2000
|
||||
|
||||
#define TAB_INFO_IDENT @"Info"
|
||||
#define TAB_STATUS_IDENT @"Status"
|
||||
#define TAB_OPTIONS_IDENT @"Options"
|
||||
#define TAB_FILES_IDENT @"Files"
|
||||
|
||||
//15 spacing at the bottom of each tab
|
||||
#define TAB_INFO_HEIGHT 196.0
|
||||
#define TAB_INFO_HEIGHT 185.0
|
||||
#define TAB_STATUS_HEIGHT 199.0
|
||||
#define TAB_OPTIONS_HEIGHT 82.0
|
||||
#define TAB_FILES_HEIGHT 250.0
|
||||
|
@ -63,6 +66,8 @@
|
|||
frame.origin.y -= difference;
|
||||
frame.size.height += difference;
|
||||
[window setFrame: frame display: YES];
|
||||
[window setMinSize: NSMakeSize( MIN_WINDOW_WIDTH, frame.size.height )];
|
||||
[window setMaxSize: NSMakeSize( MAX_WINDOW_WIDTH, frame.size.height )];
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
|
@ -331,6 +336,8 @@
|
|||
[view setHidden: YES];
|
||||
[window setFrame: frame display: YES animate: YES];
|
||||
[view setHidden: NO];
|
||||
[window setMinSize: NSMakeSize( MIN_WINDOW_WIDTH, frame.size.height )];
|
||||
[window setMaxSize: NSMakeSize( MAX_WINDOW_WIDTH, frame.size.height )];
|
||||
}
|
||||
|
||||
- (void) setNextTab
|
||||
|
|
Loading…
Add table
Reference in a new issue