Example #1
0
 /**
  * Register the WxWidgets launcher
  * 
  * @return void
  */
 protected function registerLauncher()
 {
     $this->container->bind('launcher', function () {
         wxInitAllImageHandlers();
         \wxApp::SetInstance($this->container['wx']);
         wxEntry();
     });
 }
Example #2
0
    function onSaveClick($event)
    {
        $this->name = $this->m_name->GetValue();
        $this->EndModal(0);
    }
}
class TaskBarIcon extends wxTaskBarIcon
{
    function __construct()
    {
        parent::__construct();
        $this->SetIcon(new wxIcon("images/app.png", wxBITMAP_TYPE_PNG), "wxPHP Lan Chat v0.1");
    }
}
class LanChatApp extends wxApp
{
    function OnInit()
    {
        wxInitAllImageHandlers();
        $this->frame = new LanChat();
        $this->frame->Show();
        return true;
    }
    function OnExit()
    {
        return 0;
    }
}
$LanChatApp = new LanChatApp();
wxApp::SetInstance($LanChatApp);
wxEntry();
Example #3
0
        $bSizer1 = new wxBoxSizer(wxVERTICAL);
        $this->m_webView = wxWebView::NewMethod($this, wxID_ANY, "http://wxphp.org/");
        $bSizer1->Add($this->m_webView, 1, wxALL | wxEXPAND, 5);
        $this->SetSizer($bSizer1);
        $this->Layout();
        $this->Centre(wxBOTH);
    }
    function __destruct()
    {
    }
}
//Application initialization start point
class myApp extends wxApp
{
    function OnInit()
    {
        $zs = new MyFrame1();
        $zs->Show();
        $zs->Maximize();
        $this->frm = $zs;
        return true;
    }
    function OnExit()
    {
        return 0;
    }
}
wxInitAllImageHandlers();
$gridApp = new myApp();
wxApp::SetInstance($gridApp);
wxEntry();
Example #4
0
<?php

dl("wxwidgets.so");
include "all_includes.php";
use xiaris\XiarisFrame;
class myApp extends wxApp
{
    function OnInit()
    {
        global $mf;
        wxInitAllImageHandlers();
        $mf = new XiarisFrame();
        $mf->Show();
        return 0;
    }
    function OnExit()
    {
        return 1;
    }
}
$xt = new myApp();
wxApp::SetInstance($xt);
wxEntry();
Example #5
0
    }
    function OnCancelButtonClick($event)
    {
        $event->Skip();
    }
    function OnSaveButtonClick($event)
    {
        $event->Skip();
    }
    function __destruct()
    {
    }
}
class PocketMineGui extends \wxApp
{
    function OnInit()
    {
        wxInitAllImageHandlers();
        $this->mf = new frmMain();
        $this->mf->Show();
        return true;
    }
    function OnExit()
    {
        //TODO: call normal server stop procedure
        return false;
    }
}
$app = new PocketMineGui();
\wxApp::SetInstance($app);
wxEntry();
Example #6
0
                        if (count($clo[$selClass]) <= 0) {
                            unset($clo[$selClass]);
                        }
                    }
                    return;
                }
                $methods_count++;
            }
        }
    }
}
//Application initialization start point
class myApp extends wxApp
{
    function OnInit()
    {
        $zs = new myFrame();
        $zs->Show();
        $zs->Maximize();
        $this->frm = $zs;
        return true;
    }
    function OnExit()
    {
        return 0;
    }
}
wxInitAllImageHandlers();
$classSelectorApp = new myApp();
wxApp::SetInstance($classSelectorApp);
wxEntry();
Example #7
0
            for ($i = 0; $i < $total; $i++) {
                $documents[] = $this->m_pdfList->GetString($i);
            }
            $this->converting = true;
            $this->m_timer->Start(500);
            $this->document_converter->SetDocuments($documents, $output_dir);
            $this->document_converter->Create();
            $this->document_converter->Run();
        }
    }
}
//Application initialization start point
class myApp extends wxApp
{
    function OnInit()
    {
        $zs = new ConvertFrame();
        $zs->Show();
        $zs->Maximize();
        $this->frm = $zs;
        return true;
    }
    function OnExit()
    {
        return 0;
    }
}
wxInitAllImageHandlers();
$pdf2SwfApp = new myApp();
wxApp::SetInstance($pdf2SwfApp);
wxEntry();
Example #8
0
 public function run()
 {
     \wxApp::SetInstance($this);
     wxEntry();
 }