move from deprecated boost.signals to boost.signals2 library
This commit is contained in:
@@ -641,11 +641,12 @@ void OrthoViews::del_view(int rel_x, int rel_y) // remove a view fro
|
||||
|
||||
if (num > 0)
|
||||
{
|
||||
connectDocumentDeletedObject.block();
|
||||
views[num]->deleteme();
|
||||
delete views[num];
|
||||
views.erase(views.begin() + num);
|
||||
connectDocumentDeletedObject.unblock();
|
||||
{
|
||||
boost::signals2::shared_connection_block blocker(connectDocumentDeletedObject);
|
||||
views[num]->deleteme();
|
||||
delete views[num];
|
||||
views.erase(views.begin() + num);
|
||||
}
|
||||
|
||||
min_r_x = max_r_x = 0;
|
||||
min_r_y = max_r_y = 0;
|
||||
@@ -667,14 +668,13 @@ void OrthoViews::del_view(int rel_x, int rel_y) // remove a view fro
|
||||
|
||||
void OrthoViews::del_all()
|
||||
{
|
||||
connectDocumentDeletedObject.block();
|
||||
boost::signals2::shared_connection_block blocker(connectDocumentDeletedObject);
|
||||
for (int i = views.size() - 1; i >= 0; i--) // count downwards to delete from back
|
||||
{
|
||||
views[i]->deleteme();
|
||||
delete views[i];
|
||||
views.pop_back();
|
||||
}
|
||||
connectDocumentDeletedObject.unblock();
|
||||
}
|
||||
|
||||
int OrthoViews::is_Ortho(int rel_x, int rel_y) // is the view at r_x, r_y an ortho or axo one?
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
|
||||
#include <gp_Ax2.hxx>
|
||||
#include <vector>
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
|
||||
#include <Mod/Drawing/App/FeatureViewPart.h>
|
||||
#include <Mod/Drawing/App/FeatureViewPart.h>
|
||||
|
||||
|
||||
|
||||
@@ -148,8 +148,8 @@ private:
|
||||
|
||||
bool hidden, smooth;
|
||||
bool autodims;
|
||||
boost::BOOST_SIGNALS_NAMESPACE::scoped_connection connectDocumentDeletedObject;
|
||||
boost::BOOST_SIGNALS_NAMESPACE::scoped_connection connectApplicationDeletedDocument;
|
||||
boost::signals2::scoped_connection connectDocumentDeletedObject;
|
||||
boost::signals2::scoped_connection connectApplicationDeletedDocument;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
#include <Base/Parameter.h>
|
||||
#include <App/PropertyLinks.h>
|
||||
#include "ViewProviderFemPostFunction.h"
|
||||
#include <boost/signals.hpp>
|
||||
|
||||
class QComboBox;
|
||||
class Ui_TaskPostDisplay;
|
||||
@@ -139,15 +138,15 @@ public:
|
||||
~TaskPostBox();
|
||||
|
||||
virtual void applyPythonCode() = 0;
|
||||
virtual bool isGuiTaskOnly() {return false;}; //return true if only gui properties are manipulated
|
||||
virtual bool isGuiTaskOnly() {return false;} //return true if only gui properties are manipulated
|
||||
|
||||
protected:
|
||||
App::DocumentObject* getObject() {return m_object;};
|
||||
App::DocumentObject* getObject() {return m_object;}
|
||||
template<typename T>
|
||||
T* getTypedObject() {return static_cast<T*>(m_object);};
|
||||
Gui::ViewProviderDocumentObject* getView() {return m_view;};
|
||||
T* getTypedObject() {return static_cast<T*>(m_object);}
|
||||
Gui::ViewProviderDocumentObject* getView() {return m_view;}
|
||||
template<typename T>
|
||||
T* getTypedView() {return static_cast<T*>(m_view);};
|
||||
T* getTypedView() {return static_cast<T*>(m_view);}
|
||||
|
||||
bool autoApply();
|
||||
void recompute();
|
||||
@@ -203,7 +202,7 @@ public:
|
||||
~TaskPostDisplay();
|
||||
|
||||
virtual void applyPythonCode();
|
||||
virtual bool isGuiTaskOnly() {return true;};
|
||||
virtual bool isGuiTaskOnly() {return true;}
|
||||
|
||||
private Q_SLOTS:
|
||||
void on_Representation_activated(int i);
|
||||
|
||||
@@ -28,28 +28,7 @@
|
||||
#include <Mod/Fem/App/FemPostFunction.h>
|
||||
#include <Inventor/SbMatrix.h>
|
||||
#include <QWidget>
|
||||
|
||||
|
||||
#if defined(signals) && defined(QOBJECTDEFS_H) && \
|
||||
!defined(QT_MOC_CPP)
|
||||
# undef signals
|
||||
# define signals signals
|
||||
#endif
|
||||
|
||||
#include <boost/signal.hpp>
|
||||
namespace boost
|
||||
{
|
||||
namespace signalslib = signals;
|
||||
}
|
||||
|
||||
#if defined(signals) && defined(QOBJECTDEFS_H) && \
|
||||
!defined(QT_MOC_CPP)
|
||||
# undef signals
|
||||
// Restore the macro definition of "signals", as it was
|
||||
// defined by Qt's <qobjectdefs.h>.
|
||||
# define signals protected
|
||||
#endif
|
||||
|
||||
#include <boost/signals2.hpp>
|
||||
|
||||
class SoScale;
|
||||
class SoSurroundScale;
|
||||
@@ -70,19 +49,19 @@ class FemGuiExport FunctionWidget : public QWidget {
|
||||
|
||||
Q_OBJECT
|
||||
public:
|
||||
FunctionWidget() {};
|
||||
virtual ~FunctionWidget() {};
|
||||
FunctionWidget() {}
|
||||
virtual ~FunctionWidget() {}
|
||||
|
||||
virtual void applyPythonCode() = 0;
|
||||
virtual void setViewProvider(ViewProviderFemPostFunction* view);
|
||||
void onObjectsChanged(const App::DocumentObject& obj, const App::Property&);
|
||||
|
||||
protected:
|
||||
ViewProviderFemPostFunction* getView() {return m_view;};
|
||||
Fem::FemPostFunction* getObject(){return m_object;};
|
||||
ViewProviderFemPostFunction* getView() {return m_view;}
|
||||
Fem::FemPostFunction* getObject(){return m_object;}
|
||||
|
||||
bool blockObjectUpdates() {return m_block;};
|
||||
void setBlockObjectUpdates(bool val) {m_block = val;};
|
||||
bool blockObjectUpdates() {return m_block;}
|
||||
void setBlockObjectUpdates(bool val) {m_block = val;}
|
||||
|
||||
virtual void onChange(const App::Property& p) = 0;
|
||||
|
||||
@@ -90,7 +69,7 @@ private:
|
||||
bool m_block;
|
||||
ViewProviderFemPostFunction* m_view;
|
||||
Fem::FemPostFunction* m_object;
|
||||
boost::signalslib::scoped_connection m_connection;
|
||||
boost::signals2::scoped_connection m_connection;
|
||||
};
|
||||
|
||||
class FemGuiExport ViewProviderFemPostFunctionProvider : public Gui::ViewProviderDocumentObject
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
#include <QFutureWatcher>
|
||||
#include <QtConcurrentMap>
|
||||
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#include <Base/Console.h>
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include "ui_DlgEvaluateMesh.h"
|
||||
#include "DlgEvaluateSettings.h"
|
||||
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#include <Base/Interpreter.h>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#include <QObject>
|
||||
#include <Mod/Mesh/Gui/ViewProvider.h>
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
|
||||
class SoCoordinate3;
|
||||
class SoFaceSet;
|
||||
@@ -139,7 +139,7 @@ private Q_SLOTS:
|
||||
|
||||
private:
|
||||
typedef std::vector<unsigned long> TBoundary;
|
||||
typedef boost::BOOST_SIGNALS_NAMESPACE::connection Connection;
|
||||
typedef boost::signals2::connection Connection;
|
||||
|
||||
static void fileHoleCallback(void * ud, SoEventCallback * n);
|
||||
void createPolygons();
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
#include <map>
|
||||
|
||||
// Boost
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#include <boost/tuple/tuple.hpp>
|
||||
@@ -73,10 +73,10 @@
|
||||
#include <boost/program_options.hpp>
|
||||
//namespace po = boost::program_options;
|
||||
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <boost/filesystem/exception.hpp>
|
||||
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <boost/filesystem/exception.hpp>
|
||||
|
||||
#include "OpenCascadeAll.h"
|
||||
|
||||
#elif defined(FC_OS_WIN32)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#include <Gui/TaskView/TaskDialog.h>
|
||||
#include <Gui/TaskView/TaskView.h>
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
|
||||
class QTreeWidgetItem;
|
||||
|
||||
@@ -35,7 +35,7 @@ class Property;
|
||||
}
|
||||
namespace PartGui {
|
||||
|
||||
typedef boost::signals::connection Connection;
|
||||
typedef boost::signals2::connection Connection;
|
||||
class Ui_DlgBooleanOperation;
|
||||
class DlgBooleanOperation : public QWidget
|
||||
{
|
||||
|
||||
@@ -207,7 +207,7 @@ namespace PartGui {
|
||||
std::vector<int> edge_ids;
|
||||
TopTools_IndexedMapOfShape all_edges;
|
||||
TopTools_IndexedMapOfShape all_faces;
|
||||
typedef boost::signals::connection Connection;
|
||||
typedef boost::signals2::connection Connection;
|
||||
Connection connectApplicationDeletedObject;
|
||||
Connection connectApplicationDeletedDocument;
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ private:
|
||||
Attacher::SuggestResult lastSuggestResult;
|
||||
bool completed;
|
||||
|
||||
typedef boost::BOOST_SIGNALS_NAMESPACE::connection Connection;
|
||||
typedef boost::signals2::connection Connection;
|
||||
Connection connectDelObject;
|
||||
};
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
# include <Inventor/nodes/SoSeparator.h>
|
||||
#endif
|
||||
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#include "ui_TaskFaceColors.h"
|
||||
@@ -94,7 +94,7 @@ namespace PartGui {
|
||||
class FaceColors::Private
|
||||
{
|
||||
public:
|
||||
typedef boost::signals::connection Connection;
|
||||
typedef boost::signals2::connection Connection;
|
||||
Ui_TaskFaceColors* ui;
|
||||
Gui::View3DInventorViewer* view;
|
||||
ViewProviderPartExt* vp;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <App/PropertyStandard.h>
|
||||
#include <Mod/Part/App/BodyBase.h>
|
||||
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
|
||||
namespace App {
|
||||
class Origin;
|
||||
@@ -145,7 +145,7 @@ protected:
|
||||
virtual void unsetupObject () override;
|
||||
|
||||
private:
|
||||
boost::signals::scoped_connection connection;
|
||||
boost::signals2::scoped_connection connection;
|
||||
};
|
||||
|
||||
} //namespace PartDesign
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#define PARTDESIGN_DATUMSHAPE_H
|
||||
|
||||
#include <QString>
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
#include <App/PropertyLinks.h>
|
||||
#include <Mod/Part/App/DatumFeature.h>
|
||||
|
||||
@@ -67,7 +67,7 @@ private:
|
||||
void slotChangedObject(const App::DocumentObject& Obj, const App::Property& Prop);
|
||||
virtual void onSettingDocument();
|
||||
|
||||
typedef boost::signals::connection Connection;
|
||||
typedef boost::signals2::connection Connection;
|
||||
Connection connectDocumentChangedObject;
|
||||
};
|
||||
|
||||
|
||||
@@ -49,7 +49,6 @@ TaskFeatureParameters::TaskFeatureParameters(PartDesignGui::ViewProvider *vp, QW
|
||||
{
|
||||
Gui::Document* doc = vp->getDocument();
|
||||
this->attachDocument(doc);
|
||||
this->enableNotifications(DocumentObserver::Delete);
|
||||
}
|
||||
|
||||
void TaskFeatureParameters::slotDeletedObject(const Gui::ViewProviderDocumentObject& Obj)
|
||||
|
||||
@@ -121,7 +121,7 @@ private:
|
||||
|
||||
private:
|
||||
|
||||
typedef boost::BOOST_SIGNALS_NAMESPACE::scoped_connection Connection;
|
||||
typedef boost::signals2::scoped_connection Connection;
|
||||
Connection connectPropChanged;
|
||||
|
||||
std::unique_ptr<Observer> observer;
|
||||
|
||||
@@ -183,7 +183,6 @@ TaskBoxPrimitives::TaskBoxPrimitives(ViewProviderPrimitive* vp, QWidget* parent)
|
||||
|
||||
Gui::Document* doc = vp->getDocument();
|
||||
this->attachDocument(doc);
|
||||
this->enableNotifications(DocumentObserver::Delete);
|
||||
|
||||
//show the parts coordinate system axis for selection
|
||||
PartDesign::Body * body = PartDesign::Body::findBodyOf(vp->getObject());
|
||||
|
||||
@@ -48,8 +48,6 @@ class ViewProvider;
|
||||
|
||||
namespace PartDesignGui {
|
||||
|
||||
namespace s = boost::signals;
|
||||
|
||||
class TaskBoxPrimitives : public Gui::TaskView::TaskBox,
|
||||
public Gui::DocumentObserver
|
||||
{
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
#define GUI_TASKVIEW_TaskTransformedMessages_H
|
||||
|
||||
#include <Gui/TaskView/TaskView.h>
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
|
||||
class Ui_TaskTransformedMessages;
|
||||
typedef boost::signals::connection Connection;
|
||||
typedef boost::signals2::connection Connection;
|
||||
|
||||
namespace App {
|
||||
class Property;
|
||||
|
||||
@@ -76,7 +76,6 @@ TaskTransformedParameters::TaskTransformedParameters(ViewProviderTransformed *Tr
|
||||
if (TransformedView) {
|
||||
Gui::Document* doc = TransformedView->getDocument();
|
||||
this->attachDocument(doc);
|
||||
this->enableNotifications(DocumentObserver::Delete);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -96,8 +96,8 @@ protected:
|
||||
private:
|
||||
static const char* BodyModeEnum[];
|
||||
|
||||
boost::signals::connection connectChangedObjectApp;
|
||||
boost::signals::connection connectChangedObjectGui;
|
||||
boost::signals2::connection connectChangedObjectApp;
|
||||
boost::signals2::connection connectChangedObjectGui;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
virtual bool onDelete(const std::vector<std::string> &);
|
||||
|
||||
/// signals if the transformation contains errors
|
||||
boost::signal<void (QString msg)> signalDiagnosis;
|
||||
boost::signals2::signal<void (QString msg)> signalDiagnosis;
|
||||
|
||||
// The feature name of the subclass
|
||||
std::string featureName;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef WORKFLOWMANAGER_H_PB7A5GCM
|
||||
#define WORKFLOWMANAGER_H_PB7A5GCM
|
||||
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
#include <map>
|
||||
|
||||
namespace App {
|
||||
@@ -98,9 +98,9 @@ private:
|
||||
private:
|
||||
std::map<const App::Document*, Workflow> dwMap;
|
||||
|
||||
boost::signals::connection connectNewDocument;
|
||||
boost::signals::connection connectFinishRestoreDocument;
|
||||
boost::signals::connection connectDeleteDocument;
|
||||
boost::signals2::connection connectNewDocument;
|
||||
boost::signals2::connection connectFinishRestoreDocument;
|
||||
boost::signals2::connection connectDeleteDocument;
|
||||
|
||||
static WorkflowManager* _instance;
|
||||
};
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#define SANDBOX_DOCUMENTPROTECTOR_H
|
||||
|
||||
#include <string>
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <App/DocumentObserver.h>
|
||||
|
||||
@@ -49,9 +48,9 @@ public:
|
||||
void recompute();
|
||||
|
||||
private:
|
||||
/** Checks if the given document is about to be closed */
|
||||
void slotDeletedDocument(const App::Document& Doc);
|
||||
void validate();
|
||||
/** Checks if the given document is about to be closed */
|
||||
void slotDeletedDocument(const App::Document& Doc);
|
||||
void validate();
|
||||
};
|
||||
|
||||
class AbstractCallable
|
||||
@@ -80,8 +79,8 @@ public:
|
||||
|
||||
virtual void operator()() const
|
||||
{
|
||||
T* v = static_cast<T*>(obj);
|
||||
(v->*method)();
|
||||
T* v = static_cast<T*>(obj);
|
||||
(v->*method)();
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -101,8 +100,8 @@ public:
|
||||
|
||||
virtual void operator()() const
|
||||
{
|
||||
T* v = static_cast<T*>(obj);
|
||||
(v->*method)(arg);
|
||||
T* v = static_cast<T*>(obj);
|
||||
(v->*method)(arg);
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -122,7 +121,7 @@ public:
|
||||
void purgeTouched();
|
||||
|
||||
private:
|
||||
void validate();
|
||||
void validate();
|
||||
|
||||
private:
|
||||
App::DocumentObject* obj;
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include <App/Property.h>
|
||||
#include <Mod/Part/App/Geometry.h>
|
||||
#include "Constraint.h"
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
#include <boost/unordered/unordered_map.hpp>
|
||||
|
||||
namespace Base {
|
||||
@@ -129,8 +129,8 @@ public:
|
||||
|
||||
typedef std::pair<int, const Constraint*> ConstraintInfo ;
|
||||
|
||||
boost::signal<void (const std::map<App::ObjectIdentifier, App::ObjectIdentifier> &)> signalConstraintsRenamed;
|
||||
boost::signal<void (const std::set<App::ObjectIdentifier> &)> signalConstraintsRemoved;
|
||||
boost::signals2::signal<void (const std::map<App::ObjectIdentifier, App::ObjectIdentifier> &)> signalConstraintsRenamed;
|
||||
boost::signals2::signal<void (const std::set<App::ObjectIdentifier> &)> signalConstraintsRemoved;
|
||||
|
||||
static std::string getConstraintName(const std::string &name, int i);
|
||||
|
||||
|
||||
@@ -437,8 +437,8 @@ private:
|
||||
std::vector<int> lastConflicting;
|
||||
std::vector<int> lastRedundant;
|
||||
|
||||
boost::signals::scoped_connection constraintsRenamedConn;
|
||||
boost::signals::scoped_connection constraintsRemovedConn;
|
||||
boost::signals2::scoped_connection constraintsRenamedConn;
|
||||
boost::signals2::scoped_connection constraintsRemovedConn;
|
||||
|
||||
bool AutoLockTangencyAndPerpty(Constraint* cstr, bool bForce = false, bool bLock = true);
|
||||
|
||||
|
||||
@@ -32,9 +32,9 @@
|
||||
#include "TaskSketcherGeneral.h"
|
||||
#include "TaskSketcherMessages.h"
|
||||
#include "TaskSketcherSolverAdvanced.h"
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
|
||||
typedef boost::signals::connection Connection;
|
||||
typedef boost::signals2::connection Connection;
|
||||
|
||||
namespace SketcherGui {
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#include <Gui/TaskView/TaskView.h>
|
||||
#include <Gui/Selection.h>
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
#include <QListWidget>
|
||||
|
||||
namespace App {
|
||||
@@ -92,7 +92,7 @@ public Q_SLOTS:
|
||||
protected:
|
||||
void changeEvent(QEvent *e);
|
||||
ViewProviderSketch *sketchView;
|
||||
typedef boost::BOOST_SIGNALS_NAMESPACE::connection Connection;
|
||||
typedef boost::signals2::connection Connection;
|
||||
Connection connectionConstraintsChanged;
|
||||
|
||||
private:
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#include <Gui/TaskView/TaskView.h>
|
||||
#include <Gui/Selection.h>
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
#include <QListWidget>
|
||||
|
||||
namespace App {
|
||||
@@ -116,7 +116,7 @@ protected:
|
||||
void changeEvent(QEvent *e);
|
||||
void leaveEvent ( QEvent * event );
|
||||
ViewProviderSketch *sketchView;
|
||||
typedef boost::BOOST_SIGNALS_NAMESPACE::connection Connection;
|
||||
typedef boost::signals2::connection Connection;
|
||||
Connection connectionElementsChanged;
|
||||
|
||||
private:
|
||||
|
||||
@@ -26,10 +26,10 @@
|
||||
|
||||
#include <Gui/TaskView/TaskView.h>
|
||||
#include <Gui/Selection.h>
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
|
||||
class Ui_TaskSketcherMessages;
|
||||
typedef boost::signals::connection Connection;
|
||||
typedef boost::signals2::connection Connection;
|
||||
|
||||
namespace App {
|
||||
class Property;
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
|
||||
#include <Gui/TaskView/TaskView.h>
|
||||
#include <Gui/Selection.h>
|
||||
#include <boost/signals.hpp>
|
||||
|
||||
class Ui_TaskSketcherSolverAdvanced;
|
||||
|
||||
|
||||
@@ -33,11 +33,10 @@
|
||||
#include <Gui/Selection.h>
|
||||
#include <Gui/GLPainter.h>
|
||||
#include <App/Part.h>
|
||||
#include <boost/signals.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
#include <QCoreApplication>
|
||||
#include <Gui/Document.h>
|
||||
|
||||
#include <boost/signals.hpp>
|
||||
|
||||
class TopoDS_Shape;
|
||||
class TopoDS_Face;
|
||||
@@ -234,13 +233,13 @@ public:
|
||||
friend struct ::EditData;
|
||||
|
||||
/// signals if the constraints list has changed
|
||||
boost::signal<void ()> signalConstraintsChanged;
|
||||
boost::signals2::signal<void ()> signalConstraintsChanged;
|
||||
/// signals if the sketch has been set up
|
||||
boost::signal<void (QString msg)> signalSetUp;
|
||||
boost::signals2::signal<void (QString msg)> signalSetUp;
|
||||
/// signals if the sketch has been solved
|
||||
boost::signal<void (QString msg)> signalSolved;
|
||||
boost::signals2::signal<void (QString msg)> signalSolved;
|
||||
/// signals if the elements list has changed
|
||||
boost::signal<void ()> signalElementsChanged;
|
||||
boost::signals2::signal<void ()> signalElementsChanged;
|
||||
|
||||
protected:
|
||||
virtual bool setEdit(int ModNum);
|
||||
@@ -269,8 +268,8 @@ protected:
|
||||
void slotRedoDocument(const Gui::Document&);
|
||||
|
||||
protected:
|
||||
boost::signals::connection connectUndoDocument;
|
||||
boost::signals::connection connectRedoDocument;
|
||||
boost::signals2::connection connectUndoDocument;
|
||||
boost::signals2::connection connectRedoDocument;
|
||||
|
||||
/// Return display string for constraint including hiding units if
|
||||
//requested.
|
||||
|
||||
@@ -170,13 +170,13 @@ public:
|
||||
|
||||
// Signals
|
||||
|
||||
boost::signal<void (App::CellAddress)> cellUpdated;
|
||||
boost::signals2::signal<void (App::CellAddress)> cellUpdated;
|
||||
|
||||
boost::signal<void (App::CellAddress)> cellSpanChanged;
|
||||
boost::signals2::signal<void (App::CellAddress)> cellSpanChanged;
|
||||
|
||||
boost::signal<void (int, int)> columnWidthChanged;
|
||||
boost::signals2::signal<void (int, int)> columnWidthChanged;
|
||||
|
||||
boost::signal<void (int, int)> rowHeightChanged;
|
||||
boost::signals2::signal<void (int, int)> rowHeightChanged;
|
||||
|
||||
/** @name Access properties */
|
||||
//@{
|
||||
@@ -296,8 +296,8 @@ protected:
|
||||
typedef std::map<std::string, SheetObserver* > ObserverMap;
|
||||
ObserverMap observers;
|
||||
|
||||
boost::BOOST_SIGNALS_NAMESPACE::scoped_connection onRelabledDocumentConnection;
|
||||
boost::BOOST_SIGNALS_NAMESPACE::scoped_connection onRenamedDocumentConnection;
|
||||
boost::signals2::scoped_connection onRelabledDocumentConnection;
|
||||
boost::signals2::scoped_connection onRenamedDocumentConnection;
|
||||
|
||||
friend class SheetObserver;
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
private:
|
||||
void cellUpdated(App::CellAddress address);
|
||||
|
||||
boost::BOOST_SIGNALS_NAMESPACE::scoped_connection cellUpdatedConnection;
|
||||
boost::signals2::scoped_connection cellUpdatedConnection;
|
||||
Spreadsheet::Sheet * sheet;
|
||||
QColor aliasBgColor;
|
||||
QColor textFgColor;
|
||||
|
||||
@@ -79,7 +79,7 @@ protected:
|
||||
QModelIndex currentEditIndex;
|
||||
Spreadsheet::Sheet * sheet;
|
||||
|
||||
boost::BOOST_SIGNALS_NAMESPACE::scoped_connection cellSpanChangedConnection;
|
||||
boost::signals2::scoped_connection cellSpanChangedConnection;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -100,9 +100,9 @@ protected:
|
||||
Spreadsheet::Sheet * sheet;
|
||||
SpreadsheetDelegate * delegate;
|
||||
SheetModel * model;
|
||||
boost::BOOST_SIGNALS_NAMESPACE::scoped_connection columnWidthChangedConnection;
|
||||
boost::BOOST_SIGNALS_NAMESPACE::scoped_connection rowHeightChangedConnection;
|
||||
boost::BOOST_SIGNALS_NAMESPACE::scoped_connection positionChangedConnection;
|
||||
boost::signals2::scoped_connection columnWidthChangedConnection;
|
||||
boost::signals2::scoped_connection rowHeightChangedConnection;
|
||||
boost::signals2::scoped_connection positionChangedConnection;
|
||||
|
||||
QMap<int, int> newColumnSizes;
|
||||
QMap<int, int> newRowSizes;
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#include <QPrinter>
|
||||
#include <QPrintDialog>
|
||||
#include <QPrintPreviewDialog>
|
||||
#include <boost/signal.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#endif // #ifndef _PreComp_
|
||||
|
||||
@@ -125,7 +125,7 @@ protected:
|
||||
|
||||
void onDeleteObject(const App::DocumentObject& obj);
|
||||
|
||||
typedef boost::BOOST_SIGNALS_NAMESPACE::connection Connection;
|
||||
typedef boost::signals2::connection Connection;
|
||||
Connection connectDeletedObject;
|
||||
|
||||
bool compareSelections(std::vector<Gui::SelectionObject> treeSel,QList<QGraphicsItem*> sceneSel);
|
||||
|
||||
Reference in New Issue
Block a user