summaryrefslogtreecommitdiffstats
path: root/beos
diff options
context:
space:
mode:
authorhandbrake <[email protected]>2006-01-14 13:07:05 +0000
committerhandbrake <[email protected]>2006-01-14 13:07:05 +0000
commit5bfcc1c3cf9baed140c62c37a13c5087bbd3d5cf (patch)
tree0d940224e2a4b6cdba1c45418da88efa1b6a6e45 /beos
parent5824c4979fbc54ae3d3015c07cbf6fa4aea7516d (diff)
HandBrake 0.5.1
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@8 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'beos')
-rw-r--r--beos/MainWindow.cpp3
-rw-r--r--beos/RipView.cpp29
-rw-r--r--beos/RipView.h3
3 files changed, 7 insertions, 28 deletions
diff --git a/beos/MainWindow.cpp b/beos/MainWindow.cpp
index bf52caa84..53ea7fcfe 100644
--- a/beos/MainWindow.cpp
+++ b/beos/MainWindow.cpp
@@ -1,4 +1,4 @@
-/* $Id: MainWindow.cpp,v 1.3 2003/11/07 21:52:56 titer Exp $
+/* $Id: MainWindow.cpp,v 1.4 2003/11/09 21:35:06 titer Exp $
This file is part of the HandBrake source code.
Homepage: <http://handbrake.m0k.org/>.
@@ -78,7 +78,6 @@ void MainWindow::MessageReceived( BMessage * message )
case B_SAVE_REQUESTED:
case RIP_TITLE_POPUP:
- case RIP_VIDEO_CODEC_POPUP:
case RIP_BITRATE_RADIO:
case RIP_TARGET_CONTROL:
case RIP_CROP_BUTTON:
diff --git a/beos/RipView.cpp b/beos/RipView.cpp
index 756090510..0d1e787ab 100644
--- a/beos/RipView.cpp
+++ b/beos/RipView.cpp
@@ -1,4 +1,4 @@
-/* $Id: RipView.cpp,v 1.3 2003/11/07 21:52:56 titer Exp $
+/* $Id: RipView.cpp,v 1.4 2003/11/09 21:35:06 titer Exp $
This file is part of the HandBrake source code.
Homepage: <http://handbrake.m0k.org/>.
@@ -171,10 +171,8 @@ RipView::RipView( HBHandle * handle )
AddChild( fStartButton );
/* Fill popups */
- fVideoCodecPopUp->AddItem( new BMenuItem( "MPEG-4 (Ffmpeg)",
- new BMessage( RIP_VIDEO_CODEC_POPUP ) ) );
- fVideoCodecPopUp->AddItem( new BMenuItem( "MPEG-4 (XviD)",
- new BMessage( RIP_VIDEO_CODEC_POPUP ) ) );
+ fVideoCodecPopUp->AddItem( new BMenuItem( "MPEG-4 (Ffmpeg)", NULL ) );
+ fVideoCodecPopUp->AddItem( new BMenuItem( "MPEG-4 (XviD)", NULL ) );
fVideoCodecPopUp->ItemAt( 0 )->SetMarked( true );
fAudioCodecPopUp->AddItem( new BMenuItem( "MP3", NULL ) );
fAudioCodecPopUp->ItemAt( 0 )->SetMarked( true );
@@ -248,20 +246,6 @@ void RipView::MessageReceived( BMessage * message )
break;
}
- case RIP_VIDEO_CODEC_POPUP:
- {
- if( fVideoCodecPopUp->IndexOf( fVideoCodecPopUp->FindMarked() ) )
- {
- fTwoPassCheck->SetValue( 0 );
- fTwoPassCheck->SetEnabled( false );
- }
- else
- {
- fTwoPassCheck->SetEnabled( true );
- }
- break;
- }
-
case RIP_BITRATE_RADIO:
{
if( fCustomBitrateRadio->Value() )
@@ -431,7 +415,7 @@ void RipView::UpdateIntf( HBStatus status, int modeChanged )
{
title = (HBTitle*) HBListItemAt( fTitleList, i );
char string[1024]; memset( string, 0, 1024 );
- sprintf( string, "%d (%02d:%02d:%02d)",
+ sprintf( string, "%d - %02dh%02dm%02ds",
title->index, title->length / 3600,
( title->length % 3600 ) / 60,
title->length % 60 );
@@ -477,7 +461,7 @@ void RipView::UpdateIntf( HBStatus status, int modeChanged )
{
char string[1024]; memset( string, 0, 1024 );
sprintf( string, "Encoding: %.2f %% (%.2f fps, "
- "%02d:%02d:%02d remaining)",
+ "%02dh%02dm%02ds remaining)",
100 * status.position,
status.frameRate,
status.remainingTime / 3600,
@@ -576,7 +560,6 @@ void RipView::UpdateIntf( HBStatus status, int modeChanged )
fSuspendButton->SetEnabled( false );
fStartButton->SetLabel( "Rip !" );
fStartButton->SetEnabled( true );
- MessageReceived( new BMessage( RIP_VIDEO_CODEC_POPUP ) );
}
fStatusBar->Update( 100.0 - fStatusBar->CurrentValue(),
@@ -609,7 +592,6 @@ void RipView::UpdateIntf( HBStatus status, int modeChanged )
fSuspendButton->SetEnabled( false );
fStartButton->SetLabel( "Rip !" );
fStartButton->SetEnabled( true );
- MessageReceived( new BMessage( RIP_VIDEO_CODEC_POPUP ) );
}
fStatusBar->Update( - fStatusBar->CurrentValue(),
@@ -642,7 +624,6 @@ void RipView::UpdateIntf( HBStatus status, int modeChanged )
fSuspendButton->SetEnabled( false );
fStartButton->SetLabel( "Rip !" );
fStartButton->SetEnabled( true );
- MessageReceived( new BMessage( RIP_VIDEO_CODEC_POPUP ) );
}
fStatusBar->Update( - fStatusBar->CurrentValue(),
diff --git a/beos/RipView.h b/beos/RipView.h
index 27d9831a0..1036e9261 100644
--- a/beos/RipView.h
+++ b/beos/RipView.h
@@ -1,4 +1,4 @@
-/* $Id: RipView.h,v 1.3 2003/11/07 21:52:56 titer Exp $
+/* $Id: RipView.h,v 1.4 2003/11/09 21:35:06 titer Exp $
This file is part of the HandBrake source code.
Homepage: <http://handbrake.m0k.org/>.
@@ -22,7 +22,6 @@ class BTextControl;
#include "HandBrake.h"
#define RIP_TITLE_POPUP 'rtip'
-#define RIP_VIDEO_CODEC_POPUP 'rvcp'
#define RIP_BITRATE_RADIO 'rbir'
#define RIP_TARGET_CONTROL 'rtac'
#define RIP_CROP_BUTTON 'rcrb'