~ubuntu-branches/ubuntu/maverick/freecad/maverick

« back to all changes in this revision

Viewing changes to src/App/Document.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2010-01-11 08:48:33 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100111084833-4g9vgdqbkw8u34zb
Tags: 0.9.2646.5-1
* New upstream version (closes: #561696).
* Added swig to Build-Depends (closes: #563523, #563772).
* Removed python-opencv from Build-Depends and Recommends (closes: #560768).

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#define APP_DOCUMENT_H
25
25
 
26
26
#include <CXX/Objects.hxx>
27
 
#include <Base/PyExport.h>
28
27
#include <Base/Observer.h>
29
28
#include <Base/Persistence.h>
30
29
#include <Base/Type.h>
84
83
    /** @name Signals of the document */
85
84
    //@{
86
85
    /// signal on new Object
87
 
    boost::signal<void (App::DocumentObject&)> signalNewObject;
 
86
    boost::signal<void (const App::DocumentObject&)> signalNewObject;
88
87
    //boost::signal<void (const App::DocumentObject&)>     m_sig;
89
88
    /// signal on deleted Object
90
 
    boost::signal<void (App::DocumentObject&)> signalDeletedObject;
 
89
    boost::signal<void (const App::DocumentObject&)> signalDeletedObject;
91
90
    /// signal on changed Object
92
 
    boost::signal<void (App::DocumentObject&, App::Property&)> signalChangedObject;
 
91
    boost::signal<void (const App::DocumentObject&, const App::Property&)> signalChangedObject;
93
92
    /// signal on renamed Object
94
 
    boost::signal<void (App::DocumentObject&)> signalRenamedObject;
 
93
    boost::signal<void (const App::DocumentObject&)> signalRenamedObject;
95
94
    /// signal on activated Object
96
 
    boost::signal<void (App::DocumentObject&)> signalActivatedObject;
 
95
    boost::signal<void (const App::DocumentObject&)> signalActivatedObject;
97
96
    /** signal on load/save document
98
97
     * this signal is given when the document gets streamed.
99
98
     * you can use this hook to write additional information in 
115
114
    //void open (void);
116
115
    /// Is the document already saved to a file
117
116
    bool isSaved() const;
118
 
    /// Get the document name of a saved document 
 
117
    /// Get the document name
119
118
    const char* getName() const;
120
 
    /// Get the path of a saved document 
121
 
    //const char* getPath() const;
122
119
    //@}
123
120
 
124
121
    virtual void Save (Base::Writer &writer) const;