Add some commented synfig::info() calls to aid debugging the menus of actions.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 25 Nov 2008 01:22:53 +0000 (01:22 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 25 Nov 2008 01:22:53 +0000 (01:22 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2270 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/synfigapp/action.cpp

index 5332434..c45a669 100644 (file)
@@ -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());
        }
 }