summaryrefslogtreecommitdiffstats
path: root/macosx/TargetSizeField.mm
diff options
context:
space:
mode:
authorhandbrake <[email protected]>2006-01-14 13:40:38 +0000
committerhandbrake <[email protected]>2006-01-14 13:40:38 +0000
commit56bb6ce496b475944bb9577c7586e84be1cb831e (patch)
tree7720c135a160a34f22ce8f1f911f350e18207eaa /macosx/TargetSizeField.mm
parentd35a2a23fe450c88925128b9db7c63a5f1ed395d (diff)
HandBrake 0.7.0
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@16 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/TargetSizeField.mm')
-rw-r--r--macosx/TargetSizeField.mm48
1 files changed, 0 insertions, 48 deletions
diff --git a/macosx/TargetSizeField.mm b/macosx/TargetSizeField.mm
deleted file mode 100644
index e113a4bf1..000000000
--- a/macosx/TargetSizeField.mm
+++ /dev/null
@@ -1,48 +0,0 @@
-/* $Id: TargetSizeField.mm,v 1.4 2004/01/28 14:41:31 titer Exp $
-
- This file is part of the HandBrake source code.
- Homepage: <http://handbrake.m0k.org/>.
- It may be used under the terms of the GNU General Public License. */
-
-#include "TargetSizeField.h"
-
-@implementation HBTargetSizeField
-
-- (void) textDidBeginEditing: (NSNotification *) notification
-{
- [self UpdateBitrate];
- [super textDidBeginEditing: notification];
-}
-
-- (void) textDidEndEditing: (NSNotification *) notification
-{
- [self UpdateBitrate];
- [super textDidEndEditing: notification];
-}
-
-- (void) textDidChange: (NSNotification *) notification
-{
- [self UpdateBitrate];
- [super textDidChange: notification];
-}
-
-- (void) SetHBTitle: (HBTitle*) title
-{
- fTitle = title;
-}
-
-- (void) UpdateBitrate
-{
- int size = [self intValue];
- int format = [fRipFormatPopUp indexOfSelectedItem];
- int muxer = ( format == 0 ) ? HB_MUX_MP4 : ( ( format == 1 ) ?
- HB_MUX_OGM : HB_MUX_AVI );
- int audioCount = ( [fRipLang2PopUp selectedItem] ==
- [fRipLang2PopUp lastItem] ) ? 1 : 2;
- int audioBitrate = [[fRipAudBitPopUp titleOfSelectedItem] intValue];
-
- [fRipCustomField setIntValue: HBGetBitrateForSize( fTitle, size,
- muxer, audioCount, audioBitrate )];
-}
-
-@end