~ubuntu-branches/ubuntu/lucid/synfigstudio/lucid

« back to all changes in this revision

Viewing changes to src/synfigapp/action.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Zacchiroli
  • Date: 2010-01-26 11:20:50 UTC
  • mfrom: (1.1.5 upstream) (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100126112050-e43u17c5zpc5hse4
Tags: 0.62.00-1
* QA upload
* Properly orphan the package (set Maintainer to QA, empty Uploaders)
* New upstream release
* Bump build-dep on (lib)synfig to most recent version
* Bump standards-version to 3.8.3, no changes needed
* Change section of the "-dbg" package to debug, thanks lintian

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/*!     \file action.cpp
3
3
**      \brief Template File
4
4
**
5
 
**      $Id: action.cpp 1923 2008-03-26 20:04:43Z dooglus $
 
5
**      $Id$
6
6
**
7
7
**      \legal
8
8
**      Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
74
74
#include "actions/waypointset.h"
75
75
#include "actions/waypointsetsmart.h"
76
76
#include "actions/waypointremove.h"
 
77
#include "actions/waypointconnect.h"
 
78
#include "actions/waypointdisconnect.h"
77
79
// #include "actions/waypointsimpleadd.h"
78
80
 
79
81
#include "actions/activepointadd.h"
192
194
        ADD_ACTION(Action::WaypointSet);
193
195
        ADD_ACTION(Action::WaypointSetSmart);
194
196
        ADD_ACTION(Action::WaypointRemove);
 
197
        ADD_ACTION(Action::WaypointConnect);
 
198
        ADD_ACTION(Action::WaypointDisconnect);
195
199
//      ADD_ACTION(Action::WaypointSimpleAdd);
196
200
 
197
201
        ADD_ACTION(Action::ActivepointAdd);
222
226
        ADD_ACTION(Action::BLinePointTangentSplit);
223
227
 
224
228
        ADD_ACTION(Action::GradientSet);
225
 
        ADD_ACTION(Action::ColorSet);
 
229
        ADD_ACTION(Action::ColorSetFromOC);
 
230
        ADD_ACTION(Action::ColorSetFromFC);
226
231
 
227
232
        ADD_ACTION(Action::TimepointsMove);
228
233
        ADD_ACTION(Action::TimepointsCopy);
267
272
                if((iter->second.category&category))
268
273
                {
269
274
                        if(iter->second.is_candidate(param_list))
 
275
                        {
 
276
                                //synfig::info("Action \"%s\" is in",iter->second.name.c_str());
270
277
                                ret.push_back(iter->second);
 
278
                        }
271
279
                        else
272
280
                        {
273
281
                                //synfig::info("Action \"%s\" is not a candidate",iter->second.name.c_str());
274
282
                        }
275
283
                }
 
284
                else
 
285
                {
 
286
                        //synfig::info("Action \"%s\" has unsuitable category",iter->second.name.c_str());
 
287
                }
276
288
        }
277
289
 
278
290
        return ret;
373
385
        ActionList::const_iterator iter;
374
386
        for(iter=action_list_.begin();iter!=action_list_.end();++iter)
375
387
        {
 
388
                //// debug actions
 
389
                // synfig::info("%s:%d action: '%s'", __FILE__, __LINE__, (*iter)->get_name().c_str());
376
390
                try
377
391
                {
378
392
                        try
395
409
                }
396
410
                catch(Error x)
397
411
                {
398
 
                        throw Error(x.get_type(),((*iter)->get_name()+": "+x.get_desc()).c_str());
 
412
                        //synfig::info("%s:%d caught exception", __FILE__, __LINE__);
 
413
                        throw Error(x.get_type(),((*iter)->get_local_name()+": "+x.get_desc()).c_str());
399
414
                }
 
415
                //synfig::info("%s:%d finished action: '%s'", __FILE__, __LINE__, (*iter)->get_name().c_str());
400
416
        }
401
417
}
402
418