-
Notifications
You must be signed in to change notification settings - Fork 0
/
i_container_edit_part.h
55 lines (40 loc) · 1.68 KB
/
i_container_edit_part.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef ICONTAINEREDITPART_H
#define ICONTAINEREDITPART_H
#include <i_edit_part.h> // Base class: cppgef::IEditPart
#include <boost/shared_ptr.hpp>
#include <vector>
using boost::shared_ptr;
namespace cppgef
{
class IContainerEditPart : public cppgef::IEditPart
{
public:
typedef std::vector< shared_ptr< IEditPart > > children_container_t;
typedef children_container_t::iterator iterator;
typedef children_container_t::const_iterator const_iterator;
typedef children_container_t::reverse_iterator reverse_iterator;
typedef children_container_t::const_reverse_iterator const_reverse_iterator;
typedef children_container_t::size_type size_type;
public:
IContainerEditPart() {}
virtual ~IContainerEditPart() {}
virtual shared_ptr< Figure > getClientFigure() = 0;
virtual void clearSelection() = 0;
virtual void selectAll() = 0;
virtual shared_ptr< IEditPart > getChildAt(int index) = 0;
virtual iterator getChildrenBegin() = 0;
virtual const_iterator getChildrenBegin() const = 0;
virtual iterator getChildrenEnd() = 0;
virtual const_iterator getChildrenEnd() const = 0;
virtual size_type getChildrenSize() const = 0;
virtual iterator getSelectedChildrenBegin() = 0;
virtual const_iterator getSelectedChildrenBegin() const = 0;
virtual iterator getSelectedChildrenEnd() = 0;
virtual const_iterator getSelectedChildrenEnd() const = 0;
virtual size_type getSelectedChildrenSize() const = 0;
virtual bool hasLayoutManager() const = 0;
virtual void setLayoutConstraint(shared_ptr< ModelElementBase > element, const Rectangle& bounds) = 0;
virtual shared_ptr< ICommand > createInsertModelElementCommand(shared_ptr< ModelElementBase > element) = 0;
};
}
#endif // ICONTAINEREDITPART_H