예제 #1
0
 /**
  * Register the WxWidgets launcher
  * 
  * @return void
  */
 protected function registerLauncher()
 {
     $this->container->bind('launcher', function () {
         wxInitAllImageHandlers();
         \wxApp::SetInstance($this->container['wx']);
         wxEntry();
     });
 }
예제 #2
0
파일: lanchat.php 프로젝트: phpsong/wxphp
    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();
예제 #3
0
파일: webview.php 프로젝트: phpsong/wxphp
        $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();
예제 #4
0
파일: app.php 프로젝트: jgmdev/xiaris
<?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();
예제 #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();
예제 #6
0
파일: selector.php 프로젝트: phpsong/wxphp
                        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();
예제 #7
0
파일: thread.php 프로젝트: rapulu/wxphp
            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();
예제 #8
0
 public function run()
 {
     \wxApp::SetInstance($this);
     wxEntry();
 }