Diff of /src/hugin1/ptbatcher/PTBatcherGUI.cpp [9e26cc] .. [832b36]  Maximize  Restore

Switch to unified view

a/src/hugin1/ptbatcher/PTBatcherGUI.cpp b/src/hugin1/ptbatcher/PTBatcherGUI.cpp
...
...
175
#ifdef __WXMSW__
175
#ifdef __WXMSW__
176
        provider->SetHelpController(&m_frame->GetHelpController());
176
        provider->SetHelpController(&m_frame->GetHelpController());
177
        m_frame->GetHelpController().Initialize(m_xrcPrefix+wxT("data/hugin_help_en_EN.chm"));
177
        m_frame->GetHelpController().Initialize(m_xrcPrefix+wxT("data/hugin_help_en_EN.chm"));
178
#endif
178
#endif
179
        SetTopWindow(m_frame);
179
        SetTopWindow(m_frame);
180
        if(!(m_frame->IsStartedMinimized()))
181
        {
180
      m_frame->Show(true);
182
            m_frame->Show(true);
183
        }
181
        m_server = new BatchIPCServer();
184
        m_server = new BatchIPCServer();
182
        if (!m_server->Create(servername))
185
        if (!m_server->Create(servername))
183
        {
186
        {
184
            delete m_server;
187
            delete m_server;
185
            m_server = NULL;
188
            m_server = NULL;
...
...
379
        m_frame->AddToList(fn.GetFullPath());
382
        m_frame->AddToList(fn.GetFullPath());
380
    }
383
    }
381
}
384
}
382
#endif
385
#endif
383
386
387
#if wxCHECK_VERSION(2,9,0)
388
#define RETURNEMPTYSTRING return wxEmptyString
389
const void* BatchIPCConnection::OnRequest(const wxString& topic, const wxString& item, size_t *size, wxIPCFormat format)
390
#else
391
#define RETURNEMPTYSTRING return wxT("")
384
wxChar* BatchIPCConnection::OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format)
392
wxChar* BatchIPCConnection::OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format)
393
#endif
385
{
394
{
395
    *size=wxNO_LEN;
386
    BatchFrame *MyBatchFrame=wxGetApp().GetFrame();
396
    BatchFrame *MyBatchFrame=wxGetApp().GetFrame();
387
    if(item.Left(1)==wxT("A"))
397
    if(item.Left(1)==wxT("A"))
388
    {
398
    {
389
        MyBatchFrame->AddToList(item.Mid(2));
399
        MyBatchFrame->AddToList(item.Mid(2));
390
        return wxT("");
400
        RETURNEMPTYSTRING;
391
    };
401
    };
392
    if(item.Left(1)==wxT("D"))
402
    if(item.Left(1)==wxT("D"))
393
    {
403
    {
394
        MyBatchFrame->AddToList(item.Mid(2),Project::DETECTING);
404
        MyBatchFrame->AddToList(item.Mid(2),Project::DETECTING);
395
        return wxT("");
405
        RETURNEMPTYSTRING;
396
    };
406
    };
397
    if(item.Left(1)==wxT("P"))
407
    if(item.Left(1)==wxT("P"))
398
    {
408
    {
399
        MyBatchFrame->ChangePrefix(-1,item.Mid(2));
409
        MyBatchFrame->ChangePrefix(-1,item.Mid(2));
400
        return wxT("");
410
        RETURNEMPTYSTRING;
401
    };
411
    };
402
    wxCommandEvent event;
412
    wxCommandEvent event;
403
    event.SetInt(1);
413
    event.SetInt(1);
404
    if(item==wxT("SetDeleteCheck"))
414
    if(item==wxT("SetDeleteCheck"))
405
        if(!MyBatchFrame->GetCheckDelete())
415
        if(!MyBatchFrame->GetCheckDelete())
...
...
436
    if(item==wxT("RunBatch"))
446
    if(item==wxT("RunBatch"))
437
    {
447
    {
438
        wxCommandEvent myEvent(wxEVT_COMMAND_TOOL_CLICKED ,XRCID("tool_start"));
448
        wxCommandEvent myEvent(wxEVT_COMMAND_TOOL_CLICKED ,XRCID("tool_start"));
439
        MyBatchFrame->GetEventHandler()->AddPendingEvent(myEvent);
449
        MyBatchFrame->GetEventHandler()->AddPendingEvent(myEvent);
440
    };
450
    };
441
  return wxT("");
451
    RETURNEMPTYSTRING;
442
};
452
};
443
453
444
wxConnectionBase* BatchIPCServer::OnAcceptConnection (const wxString& topic)
454
wxConnectionBase* BatchIPCServer::OnAcceptConnection (const wxString& topic)
445
{
455
{
446
    if(topic==IPC_START)
456
    if(topic==IPC_START)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks