Example #1
0
int main()
{
	MyApp *app = new MyApp();
	app->Run();
	delete app;

	return 0;
}
Example #2
0
int main()
{
	MyApp* pcMyApp;

	qInstallMsgHandler( print_msg );

	pcMyApp = new MyApp( "application/x-vnd.Procton-beabrowse" );

	pcMyApp->Run();
	return( 0 ); 
}
void TestClearBuffer::Run()
{
    MyApp app;
    try
    {
        app.Init(Punk::Config());
        System::Mouse::Instance()->LockInWindow(false);
        app.Run();
    }
    catch(...)
    {
        m_result = false;
    }
}
Example #4
0
File: main.cpp Project: PyroOS/Pyro
int main( int argc, char ** argv )
{
    int c;

    int nNameLen = strlen( argv[0] );
    if ( nNameLen >= 5 && strcasecmp( argv[0] + nNameLen - 5, "pulse" ) == 0 ) {
	g_bBarView = true;
    }
    while( (c = getopt_long (argc, argv, "hvfgb", long_opts, (int *) 0)) != EOF )
    {
	switch( c )
	{
	    case 0:
		break;
	    case 'h':
		g_nShowHelp = true;
		break;
	    case 'v':
		g_nShowVersion = true;
		break;
	    case 'f':
		sscanf( optarg, "%f,%f,%f,%f",
			&g_cWinRect.left,&g_cWinRect.top,&g_cWinRect.right,&g_cWinRect.bottom );
		g_bWindowRectSet = true;
		break;
	    case 'g':
		g_bBarView = false;
		break;
	    case 'b':
		g_bBarView = true;
		break;
	    default:
		usage( argv[0], false );
		exit( 1 );
		break;
	}
    }
    if ( g_nShowVersion ) {
	printf( "Syllable CPU Monitor 1.0\n" );
	exit( 0 );
    }
    if ( g_nShowHelp ) {
	usage( argv[0], true );
	exit( 0 );
    }
    
    MyApp* pcApp = new MyApp;
    pcApp->Run();
}