From: dooglus Date: Tue, 25 Nov 2008 01:22:53 +0000 (+0000) Subject: Add some commented synfig::info() calls to aid debugging the menus of actions. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1399c4c168f10ce3608213eba66f44daaf41606a;p=synfig.git Add some commented synfig::info() calls to aid debugging the menus of actions. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2270 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/synfigapp/action.cpp b/synfig-studio/trunk/src/synfigapp/action.cpp index 5332434..c45a669 100644 --- a/synfig-studio/trunk/src/synfigapp/action.cpp +++ b/synfig-studio/trunk/src/synfigapp/action.cpp @@ -267,12 +267,19 @@ Action::compile_candidate_list(const ParamList& param_list, Category category) if((iter->second.category&category)) { if(iter->second.is_candidate(param_list)) + { + //synfig::info("Action \"%s\" is in",iter->second.name.c_str()); ret.push_back(iter->second); + } else { //synfig::info("Action \"%s\" is not a candidate",iter->second.name.c_str()); } } + else + { + //synfig::info("Action \"%s\" has unsuitable category",iter->second.name.c_str()); + } } return ret; @@ -371,8 +378,10 @@ Super::perform() prepare(); ActionList::const_iterator iter; + //synfig::info("%s:%d actions...", __FILE__, __LINE__); for(iter=action_list_.begin();iter!=action_list_.end();++iter) { + //synfig::info("%s:%d action: '%s'", __FILE__, __LINE__, (*iter)->get_name().c_str()); try { try @@ -395,8 +404,10 @@ Super::perform() } catch(Error x) { + //synfig::info("%s:%d caught exception", __FILE__, __LINE__); throw Error(x.get_type(),((*iter)->get_name()+": "+x.get_desc()).c_str()); } + //synfig::info("%s:%d finished action: '%s'", __FILE__, __LINE__, (*iter)->get_name().c_str()); } }