~ubuntu-branches/ubuntu/trusty/plee-the-bear/trusty-proposed

« back to all changes in this revision

Viewing changes to bear-factory/level-editor/src/bf/history/code/action_group.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Julien Jorge, Julien Jorge
  • Date: 2010-11-17 20:13:34 UTC
  • mfrom: (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101117201334-o4dp7uq437to7oxb
Tags: 0.5.1-1
[ Julien Jorge ]
* New upstream release (Closes: #565062, #546514).
* Add armhf architecture (Closes: #604689).
* Remove patches integrated upstream: rpath-editors.diff, rpath-game.diff,
  editors-menu-section.diff.
* Bump the Standard-Version, no changes.
* Update my email address.
* Set build dependency of libclaw to 1.6.0.
* Add the missing ${misc:Depends} in debian/control.
* List gettext translations in bear-factory.install and plee-the-bear.install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    Bear Engine - Level editor
3
3
 
4
 
    Copyright (C) 2005-2009 Julien Jorge, Sebastien Angibaud
 
4
    Copyright (C) 2005-2010 Julien Jorge, Sebastien Angibaud
5
5
 
6
6
    This program is free software; you can redistribute it and/or modify it
7
7
    under the terms of the GNU General Public License as published by the
31
31
#include <wx/intl.h>
32
32
 
33
33
/*----------------------------------------------------------------------------*/
 
34
/**
 
35
 * \brief Constructor.
 
36
 * \param desc A description of the actions in the group.
 
37
 */
 
38
bf::action_group::action_group( const wxString& desc )
 
39
  : m_description(desc)
 
40
{
 
41
 
 
42
} // action_group::action_group()
 
43
 
 
44
/*----------------------------------------------------------------------------*/
 
45
/**
 
46
 * \brief Destructor.
 
47
 */
34
48
bf::action_group::~action_group()
35
49
{
36
50
  action_collection::iterator it;
40
54
} // action_group::~action_group()
41
55
 
42
56
/*----------------------------------------------------------------------------*/
 
57
/**
 
58
 * \brief Insert an action at the end.
 
59
 * \param a The action to add.
 
60
 */
43
61
void bf::action_group::add_action( level_action* a )
44
62
{
45
63
  m_actions.push_back(a);
46
64
} // action_group::add_action()
47
65
 
48
66
/*----------------------------------------------------------------------------*/
 
67
/**
 
68
 * \brief Move the actions of an other group into this group.
 
69
 * \param g The group from which we take the actions.
 
70
 * \post g.m_actions.empty() == true
 
71
 */
 
72
void bf::action_group::move( action_group& g )
 
73
{
 
74
  m_actions.splice( m_actions.end(), g.m_actions );
 
75
} // action_group::move()
 
76
 
 
77
/*----------------------------------------------------------------------------*/
49
78
void bf::action_group::execute( gui_level& lvl )
50
79
{
51
80
  action_collection::iterator it;
78
107
/*----------------------------------------------------------------------------*/
79
108
wxString bf::action_group::get_description() const
80
109
{
81
 
  return _("Group of actions");
 
110
  return m_description;
82
111
} // action_group::get_description()