1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +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:
dpasukhi
2025-01-25 20:15:22 +00:00
parent dbba6f1289
commit a5a7b3185b
14005 changed files with 1273539 additions and 1195567 deletions

View File

@@ -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_AttributePaneSelector_H
#define DFBrowserPane_AttributePaneSelector_H
@@ -28,22 +28,21 @@
class QItemSelectionModel;
//! \class DFBrowserPane_AttributePaneSelector
//! \brief Container of active selection models. It connects to selection changed signal of the models and
//! emits one signal for any selection.
//! \brief Container of active selection models. It connects to selection changed signal of the
//! models and emits one signal for any selection.
class DFBrowserPane_AttributePaneSelector : public QObject
{
Q_OBJECT
public:
//! Constructor
Standard_EXPORT DFBrowserPane_AttributePaneSelector(QObject* theParent);
//! Destructor
Standard_EXPORT virtual ~DFBrowserPane_AttributePaneSelector();
//! Fills the pane selection by the given models. Disconnect it from the previous model and connect to new models
//! \param theModels a list of selection models
Standard_EXPORT void SetCurrentSelectionModels(const std::list<QItemSelectionModel*>& theModels);
//! Fills the pane selection by the given models. Disconnect it from the previous model and
//! connect to new models \param theModels a list of selection models
Standard_EXPORT void SetCurrentSelectionModels(const std::list<QItemSelectionModel*>& theModels);
//! Clears selection in all selection models using block for selection changed flag
Standard_EXPORT void ClearSelected();
@@ -54,19 +53,20 @@ signals:
//! \param theSelected selected items
//! \param theDeselected deselected items
//! \param theModel a selection model where the selection happens
void tableSelectionChanged (const QItemSelection& theSelected, const QItemSelection& theDeselected,
QItemSelectionModel* theModel);
void tableSelectionChanged(const QItemSelection& theSelected,
const QItemSelection& theDeselected,
QItemSelectionModel* theModel);
protected slots:
//! Listens selectionChanged() of the model and emits signal tableSelectionChanged filled with the selection model
//! \param theSelected selected items
//! \param theDeselected deselected items
void onTableSelectionChanged (const QItemSelection& theSelected, const QItemSelection& theDeselected);
//! Listens selectionChanged() of the model and emits signal tableSelectionChanged filled with the
//! selection model \param theSelected selected items \param theDeselected deselected items
void onTableSelectionChanged(const QItemSelection& theSelected,
const QItemSelection& theDeselected);
private:
std::list<QItemSelectionModel*> mySelectionModels; //!< container of selection models
bool mySendSelectionChangeBlocked; //!< flag is selection processing should not performed, avoid cyclic dependency
bool mySendSelectionChangeBlocked; //!< flag is selection processing should not performed, avoid
//!< cyclic dependency
};
#endif