summaryrefslogtreecommitdiffstats
path: root/beos/HBApp.cpp
diff options
context:
space:
mode:
authorhandbrake <[email protected]>2006-01-14 13:21:55 +0000
committerhandbrake <[email protected]>2006-01-14 13:21:55 +0000
commitdc8de40de13c3f3e643b980a95ef48ccafb542e3 (patch)
tree953b97afe7082bbe2ce4247c703a51aa8e29a3c9 /beos/HBApp.cpp
parent4beb6a8b483c9d84677b21cc271ce315f136335c (diff)
HandBrake 0.6.0-test1
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@10 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'beos/HBApp.cpp')
-rw-r--r--beos/HBApp.cpp34
1 files changed, 4 insertions, 30 deletions
diff --git a/beos/HBApp.cpp b/beos/HBApp.cpp
index 52afce815..add6259f2 100644
--- a/beos/HBApp.cpp
+++ b/beos/HBApp.cpp
@@ -1,57 +1,31 @@
-/* $Id: HBApp.cpp,v 1.1.1.1 2003/11/03 12:03:51 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 <signal.h>
-
#include "HBApp.h"
-#include "MainWindow.h"
-
-void SigHandler( int signal )
-{
- /* Ugly way to exit cleanly when hitting Ctrl-C */
- ((HBApp*) be_app)->fWindow->PostMessage( B_QUIT_REQUESTED );
-}
+#include "HBWindow.h"
int main()
{
- signal( SIGINT, SigHandler );
- signal( SIGHUP, SigHandler );
- signal( SIGQUIT, SigHandler );
-
- /* Run the BApplication */
HBApp * app = new HBApp();
app->Run();
delete app;
return 0;
}
-/* Constructor */
HBApp::HBApp()
- : BApplication("application/x-vnd.titer-handbrake" )
+ : MApplication( "application/x-vnd.titer-handbrake" )
{
- fWindow = new MainWindow();
- fWindow->Show();
+ fWindow = new HBWindow();
}
void HBApp::MessageReceived( BMessage * message )
{
switch( message->what )
{
- case B_SAVE_REQUESTED:
- fWindow->PostMessage( message );
- break;
-
default:
- BApplication::MessageReceived( message );
+ MApplication::MessageReceived( message );
break;
}
}
void HBApp::RefsReceived( BMessage * message )
{
- fWindow->PostMessage( message );
}