From: <hug...@li...> - 2012-05-21 16:07:34
|
branch: gui_overhaul details: http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/hgroot/hugin/hugin/rev/5cd003be6eb4 changeset: 5816:5cd003be6eb4 user: tmodes date: Mon May 21 18:08:22 2012 +0200 description: Allow opening fast preview window also when project contains no images For easier access to assistant in advanced/expert interface diffstat: src/hugin1/hugin/MainFrame.cpp | 27 +++++++++------------------ 1 files changed, 9 insertions(+), 18 deletions(-) diffs (37 lines): diff -r edc5ff153785 -r 5cd003be6eb4 src/hugin1/hugin/MainFrame.cpp --- a/src/hugin1/hugin/MainFrame.cpp Sun May 20 19:09:47 2012 +0200 +++ b/src/hugin1/hugin/MainFrame.cpp Mon May 21 18:08:22 2012 +0200 @@ -1747,24 +1747,15 @@ void MainFrame::enableTools(bool option) { - { - wxToolBar* theToolBar = GetToolBar(); - theToolBar->EnableTool(XRCID("action_optimize"), option); - theToolBar->EnableTool(XRCID("ID_SHOW_PREVIEW_FRAME"), option); - theToolBar->EnableTool(XRCID("ID_SHOW_GL_PREVIEW_FRAME"), option); - //theToolBar->EnableTool(XRCID("action_save_project"), option); - //theToolBar->EnableTool(XRCID("action_save_as_project"), option); - } - { - wxMenuBar* theMenuBar = GetMenuBar(); - theMenuBar->Enable(XRCID("action_optimize"), option); - theMenuBar->Enable(XRCID("action_finetune_all_cp"), option); - theMenuBar->Enable(XRCID("ID_SHOW_PREVIEW_FRAME"), option); - theMenuBar->Enable(XRCID("ID_SHOW_GL_PREVIEW_FRAME"), option); - //theMenuBar->Enable(XRCID("action_save_project"), option); - //theMenuBar->Enable(XRCID("action_save_as_project"), option); - //theMenuBar->Enable(XRCID("action_save_as_ptstitcher"), option); - } + wxToolBar* theToolBar = GetToolBar(); + theToolBar->EnableTool(XRCID("action_optimize"), option); + theToolBar->EnableTool(XRCID("ID_SHOW_PREVIEW_FRAME"), option); + //theToolBar->EnableTool(XRCID("ID_SHOW_GL_PREVIEW_FRAME"), option); + wxMenuBar* theMenuBar = GetMenuBar(); + theMenuBar->Enable(XRCID("action_optimize"), option); + theMenuBar->Enable(XRCID("action_finetune_all_cp"), option); + theMenuBar->Enable(XRCID("ID_SHOW_PREVIEW_FRAME"), option); + //theMenuBar->Enable(XRCID("ID_SHOW_GL_PREVIEW_FRAME"), option); } |