source: libs/QtGui/inc/SgObject.h @ 445

Revision 445, 1.1 KB checked in by lmalek, 10 years ago (diff)

Samgar edition by WRUT. Based on Qt. Initial import.

Line 
1#ifndef SGOBJECT_H
2#define SGOBJECT_H
3
4#include <string>
5
6namespace Sg
7{
8    typedef std::string SgNameType;
9
10    class SgObject
11    {
12    public:
13        SgObject(SgNameType objectName="", const SgObject* parentObject=0);
14
15        //SgObject(const SgObject& org);
16
17        virtual ~SgObject();
18
19        /** \breif Seting name of the port
20         *
21         *  \param newName new name of the port
22         */
23        virtual void setName(SgNameType);
24
25        /** \brief Obtaining the name of the port
26         *
27         *  \return Returns the name of the port
28         */
29        virtual const SgNameType getName() const;
30
31        virtual const SgNameType getFullName() const;
32
33        virtual void refresh() const;
34
35        const SgObject* parent;
36
37    protected:
38        /** \breif Executed when changes appear
39         *
40         *  By the default this method does nothing.
41         */
42        virtual void modified() const;
43
44        /** \breif Port name
45         */
46        SgNameType name;
47        SgNameType fullName;
48    };
49} // namespace Sg (END)
50
51#endif // SGOBJECT_H
Note: See TracBrowser for help on using the repository browser.