Hi Niklas,

Am Donnerstag, 19. Mai 2016 18:19:41 UTC+2 schrieb Niklas Mischkulnig:
>
> Am Donnerstag, 19. Mai 2016 18:00:18 UTC+2 schrieb T. Modes:
>>
>> Am Mittwoch, 18. Mai 2016 20:55:31 UTC+2 schrieb Niklas Mischkulnig:
>>>
>>> The problem with HuginStitchProject is that MacOpenFile gets called 
>>> AFTER the variable is checked and the file chooser dialog opens and you 
>>> having to open a project file. So sometime after it has already started 
>>> processing the manually specified project file.
>>>
>>
>> Okay, that is explaining it.
>>
>  
> If I comment out the line where the stitching starts (
> frame->StitchProject(scriptFile...), and do a sleep(5) to keep the window 
> from closing then it doesn't get called AT ALL (even with wxYield() in a 
> while loop). And I can't debug using cout since I can't open a file "in the 
> foreground". The only possibility is via wxMessageBox.
>

I had an additional look. It may be easier to make PTBatcherGUI to react on 
apple file open event than to fix hugin_stitch_project (even it you would 
prefer the latter one).
PTBatcherGUI has already code to handle the mac events. But it is commented 
out. The comment mentions a bug in wxWidgets 2.9.3. Maybe the bug has been 
fixed upstreams.
Could you test this?
You need to edit src/hugin1/ptbatcher/PTBatcherGUI.h and .cpp

In PTBatcherGUI.h, decomment line 111 (remove //): 
void MacOpenFile(const wxString& fileName);
in PTBatcherGUI.cpp, you need to edit 2 places: line 329 and 443
change
#if 0 //ifdef __WXMAC__
to
#ifdef __WXMAC__

After this recompile and test. Please test from inside Hugin and from 
finder? if it still works.
To comment mentions that with wxWidgets 2.9.3 a project gets added twice. 
To have a look on the batch queue that the project file is only added once.

Thomas

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/4a5e2a62-3280-40d4-a13d-85b7408b2a48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to