~ubuntu-branches/ubuntu/intrepid/blender/intrepid-updates

« back to all changes in this revision

Viewing changes to intern/action/test/action_cpp_test/TestAction.h

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-08-08 02:45:40 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080808024540-kkjp7ekfivzhuw3l
Tags: 2.46+dfsg-4
* Fix python syntax warning in import_dxf.py, which led to nasty output
  in installation/upgrade logs during byte-compilation, using a patch
  provided by the script author (Closes: #492280):
   - debian/patches/45_fix_python_syntax_warning

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * $Id: TestAction.h,v 1.3 2002/10/30 02:06:21 mein Exp $
3
 
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or
6
 
 * modify it under the terms of the GNU General Public License
7
 
 * as published by the Free Software Foundation; either version 2
8
 
 * of the License, or (at your option) any later version. The Blender
9
 
 * Foundation also sells licenses for use in proprietary software under
10
 
 * the Blender License.  See http://www.blender.org/BL/ for information
11
 
 * about this.
12
 
 *
13
 
 * This program is distributed in the hope that it will be useful,
14
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 * GNU General Public License for more details.
17
 
 *
18
 
 * You should have received a copy of the GNU General Public License
19
 
 * along with this program; if not, write to the Free Software Foundation,
20
 
 * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21
 
 *
22
 
 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
23
 
 * All rights reserved.
24
 
 *
25
 
 * The Original Code is: all of this file.
26
 
 *
27
 
 * Contributor(s): none yet.
28
 
 *
29
 
 * ***** END GPL/BL DUAL LICENSE BLOCK *****
30
 
 */
31
 
 
32
 
/**
33
 
 
34
 
 * $Id: TestAction.h,v 1.3 2002/10/30 02:06:21 mein Exp $
35
 
 * Copyright (C) 2001 NaN Technologies B.V.
36
 
 * @author      Maarten Gribnau
37
 
 * @date        March 31, 2001
38
 
 */
39
 
 
40
 
#ifndef _H_ACT_TESTACTION
41
 
#define _H_ACT_TESTACTION
42
 
 
43
 
#include "ACT_Action.h"
44
 
 
45
 
#include <iostream>
46
 
 
47
 
class TestAction : public ACT_Action
48
 
{
49
 
public:
50
 
        TestAction(const STR_String& name) : ACT_Action(name) {}
51
 
        virtual ~TestAction() { cout << m_name.Ptr() << ": deleted\n"; }
52
 
protected:
53
 
        virtual void doApply() { cout << m_name.Ptr() << ": applied\n"; }
54
 
        virtual void doUndo() { cout << m_name.Ptr() << ": undone\n"; }
55
 
};
56
 
 
57
 
#endif // _H_ACT_TESTACTION
58