-
Notifications
You must be signed in to change notification settings - Fork 0
/
diagram.h
79 lines (62 loc) · 1.31 KB
/
diagram.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef DIAGRAM_H
#define DIAGRAM_H
#include <model_element_base.h> // Base class
#include <complex_model_element_base.h>
#include <vector>
#include <boost/shared_ptr.hpp>
#include <boost/serialization/access.hpp>
#include <glibmm/ustring.h>
#include <sigc++/sigc++.h>
#include <shape_base.h>
#include <error.h>
using std::vector;
using boost::shared_ptr;
namespace cppgef
{
/**
* @class Diagram
* @author vincenzo.cappello
* @date 12/03/10
* @file diagram.h
*
* @brief The root model element
*/
class Diagram : public cppgef::ComplexModelElementBase
{
public:
Diagram();
virtual ~Diagram();
/**
* @brief Diagram title
*
* The signalTitleChange was raised
*
* @param value the new diagram title
*/
void setTitle(const Glib::ustring& value);
/**
* @brief Diagram title
* @return the diagram title
*/
Glib::ustring getTitle() const;
/**
* @name Signals
*/
/*@{*/
/**
* @brief Signal emitted when the Title property change value
* @return the signal
*/
signal_property_changed_t signalTitleChanged();
/*@}*/
protected:
Glib::ustring title_;
signal_property_changed_t signal_title_changed_;
private:
// Serialization
friend class boost::serialization::access;
template< class Archive >
void serialize(Archive & ar, const unsigned int version);
};
}
#endif // DIAGRAM_H