mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
Coding - Apply .clang-format formatting #286
Update empty method guards to new style with regex (see PR). Used clang-format 18.1.8. New actions to validate code formatting is added. Update .clang-format with disabling of include sorting. It is temporary changes, then include will be sorted. Apply formatting for /src and /tools folder. The files with .hxx,.cxx,.lxx,.h,.pxx,.hpp,*.cpp extensions.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef DFBrowserPane_HelperExport_H
|
||||
#define DFBrowserPane_HelperExport_H
|
||||
@@ -33,7 +33,7 @@ class DFBrowserPane_HelperExport : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
//! Constructor
|
||||
DFBrowserPane_HelperExport (QObject* theParent) { (void)theParent; }
|
||||
DFBrowserPane_HelperExport(QObject* theParent) { (void)theParent; }
|
||||
|
||||
//! Destructor
|
||||
virtual ~DFBrowserPane_HelperExport() Standard_OVERRIDE {}
|
||||
@@ -44,31 +44,33 @@ public:
|
||||
//! Append a shape to be exported if pressed button on item from the given list
|
||||
//! \param theShape a shape
|
||||
//! \param theIndicies a list of indices for this shape
|
||||
void AddShape (const TopoDS_Shape& theShape, const QModelIndexList& theIndices);
|
||||
void AddShape(const TopoDS_Shape& theShape, const QModelIndexList& theIndices);
|
||||
|
||||
//! Returns whether the map of shapes contains a shape for the index
|
||||
//! \param theIndex a model index
|
||||
//! \return true if the map contains shape
|
||||
bool HasShape (const QModelIndex& theIndex) const { return myShapes.contains (theIndex); }
|
||||
bool HasShape(const QModelIndex& theIndex) const { return myShapes.contains(theIndex); }
|
||||
|
||||
//! Returns shape for the index
|
||||
//! \param theIndex a model view index
|
||||
//! \return a cached shape
|
||||
const TopoDS_Shape& Shape (const QModelIndex& theIndex) { return myShapes[theIndex]; }
|
||||
const TopoDS_Shape& Shape(const QModelIndex& theIndex) { return myShapes[theIndex]; }
|
||||
|
||||
public slots:
|
||||
|
||||
//! Slot that processing button press for the model index
|
||||
//! \param theIndex a model index
|
||||
void OnButtonPressed (const QModelIndex& theIndex);
|
||||
void OnButtonPressed(const QModelIndex& theIndex);
|
||||
|
||||
private:
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push, 0) // 4251: class 'QMap<QModelIndex,TopoDS_Shape>' needs to have dll-interface...
|
||||
#pragma warning( \
|
||||
push, \
|
||||
0) // 4251: class 'QMap<QModelIndex,TopoDS_Shape>' needs to have dll-interface...
|
||||
#endif
|
||||
QMap<QModelIndex, TopoDS_Shape> myShapes; //!< a container of shapes
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user