DlgRef_3Radio* GroupPattern;
GEOM::pattern myPattern;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
int myOrientation;
GEOM::pattern myPattern;
-private slots:
+private Q_SLOTS:
void ConstructorsClicked ( int );
void ClickOnOk();
bool ClickOnApply();
bool myOkPoint1, myOkPoint2, myOkPoint3;
ObjectList pipeTShapeGroupObjects;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
{
TopTools_IndexedMapOfShape aMap;
- foreach (GEOM::GeomObjPtr anObj, myPoints) {
+ Q_FOREACH (GEOM::GeomObjPtr anObj, myPoints) {
TopoDS_Shape aShape;
if(anObj && GEOMBase::GetShape(anObj.get(), aShape) && !aShape.IsNull()) {
QList<GEOM::GeomObjPtr> points = getSelected( aTypes, -1 );
// Check the selected compounds if they consist of points only.
- foreach (GEOM::GeomObjPtr anObj, points) {
+ Q_FOREACH (GEOM::GeomObjPtr anObj, points) {
TopoDS_Shape aShape;
if(anObj && GEOMBase::GetShape(anObj.get(), aShape) && !aShape.IsNull()) {
SalomeApp_IntSpinBox *myDegMaxSpin;
SalomeApp_DoubleSpinBox *myDMaxSpin;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
DlgRef_3Sel1Check* Group3Pnts2;
DlgRef_3Sel* Group3Pnts3;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
DlgRef_3Sel* Group3Pnts;
DlgRef_3Sel* GroupCenter2Pnts;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
QList<GEOM::GeomObjPtr> myPoints;
GEOM::GeomObjPtr myVec1, myVec2;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
DlgRef_3Sel2Spin* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
DlgRef_2Sel* GroupPoints;
DlgRef_2Sel* GroupFaces;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
GEOM::GeomObjPtr myVectorX;
GEOM::GeomObjPtr myVectorY;
-private slots:
+private Q_SLOTS:
void onOk();
bool onApply();
void onActivate();
DlgRef_2Sel1Spin* Group2Vec;
DlgRef_3Radio1Sel1Spin* GroupLCS;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
TopAbs_ShapeEnum myNeedType;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_2Sel* GroupPoints;
DlgRef_3Spin1Check* GroupDimensions;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
gp_Ax3 myWPlane;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
DlgRef_2Sel* Group2F;
DlgRef_6Sel* Group6F;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_1Sel2Spin1View1Check* myGrp1;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
virtual bool execute( ObjectList& );
virtual GEOM::GEOM_Object_ptr getFather( GEOM::GEOM_Object_ptr );
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
QMap<int, QPushButton*> mySelBtn;
QMap<int, QLineEdit*> mySelName;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
QMap<int, QLineEdit*> mySelName;
QMap<int, SalomeApp_IntSpinBox*> mySpinBox;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_2Sel2Spin3Check* myGroup;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void SetEditCurrentArgument();
DlgRef_1Sel* GroupShapes;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_1Sel2Spin* GroupWire;
DlgRef_2Sel1Spin* GroupOnCurve;
-private slots:
+private Q_SLOTS:
void ConstructorsClicked (int);
void ClickOnOk();
bool ClickOnApply();
DlgRef_1Sel1Check* GroupWire;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_1Sel* GroupShell;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void SetEditCurrentArgument();
DlgRef_1Sel1Check* GroupSolid;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void SetEditCurrentArgument();
DlgRef_1Sel1Spin* GroupArgs;
DlgRef_3Radio* GroupType;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
myZ->setValue(aZ);
}
if( isInstantSketchingEnabled() )
- emit addPoint();
+ Q_EMIT addPoint();
}
bool CurveCreator_NewPointDlg::isInstantSketchingEnabled() const
void setDimension(CurveCreator::Dimension theDim);
bool isInstantSketchingEnabled() const;
void setInstantSketchingEnabled( const bool theState );
-signals:
+Q_SIGNALS:
void addPoint();
void modifyPoint();
void cancelPoint();
-public slots:
-protected slots:
+public Q_SLOTS:
+protected Q_SLOTS:
protected:
void updateTitle();
void initSpinBox(QDoubleSpinBox *theSpinBox);
void clear();
void setEditMode( bool isEdit );
-signals:
+Q_SIGNALS:
void addSection();
void modifySection();
void cancelSection();
-public slots:
-protected slots:
+public Q_SLOTS:
+protected Q_SLOTS:
protected:
void updateTitle();
private:
return;
int aSect = aModel->getSection(theIndx);
if( aModel->isSection(theIndx) ){
- emit sectionEntered( aSect );
+ Q_EMIT sectionEntered( aSect );
return;
}
int aPointNum = aModel->getPoint( theIndx );
- emit pointEntered( aSect, aPointNum );
+ Q_EMIT pointEntered( aSect, aPointNum );
}
void CurveCreator_TreeView::setCurve( CurveCreator_Curve* theCurve )
void setCurve( CurveCreator_Curve* theCurve );
-signals:
+Q_SIGNALS:
void selectionChanged();
void sectionEntered(int);
void pointEntered(int,int);
-public slots:
-protected slots:
+public Q_SLOTS:
+protected Q_SLOTS:
void onActivated( QModelIndex theIndx );
protected:
void setIndexState( const QModelIndex& theIndx, bool& isExpanded, bool& isSelected, bool& isCurrent );
void setTabOrder();
-private slots:
+private Q_SLOTS:
void optionChanged(int theId);
}
}
}
- emit selectionChanged();
+ Q_EMIT selectionChanged();
}
void CurveCreator_Widget::onAdditionMode(bool checked)
myNewPointEditor->setSectionName(aSectName);
myNewPointEditor->setDimension(myCurve->getDimension());
*/
-// emit subOperationStarted( myNewPointEditor );
+// Q_EMIT subOperationStarted( myNewPointEditor );
}
void CurveCreator_Widget::onModificationMode(bool checked)
myNewSectionEditor->setEditMode(false);
QString aSectName = QString( myCurve->getUnicSectionName().c_str() );
myNewSectionEditor->setSectionParameters(aSectName, true, CurveCreator::Polyline );
- emit subOperationStarted( myNewSectionEditor );
+ Q_EMIT subOperationStarted( myNewSectionEditor );
}
void CurveCreator_Widget::onAddNewSection()
void CurveCreator_Widget::onCancelPoint()
{
- emit subOperationFinished( myNewPointEditor );
+ Q_EMIT subOperationFinished( myNewPointEditor );
}
void CurveCreator_Widget::onCancelSection()
{
- emit subOperationFinished( myNewSectionEditor );
+ Q_EMIT subOperationFinished( myNewSectionEditor );
}
QAction* CurveCreator_Widget::createAction( ActionId theId, const QString& theName, const QPixmap& theImage,
myNewSectionEditor->setEditMode(true);
myNewSectionEditor->setSectionParameters( aSectName, isClosed, aType );
- emit subOperationStarted( myNewSectionEditor );
+ Q_EMIT subOperationStarted( myNewSectionEditor );
}
void CurveCreator_Widget::onModifySection()
myNewPointEditor->setDimension( myCurve->getDimension() );
CurveCreator::Coordinates aCoords = myCurve->getCoordinates(theSection,thePoint);
myNewPointEditor->setCoordinates(aCoords);
- emit subOperationStarted( myNewPointEditor );
+ Q_EMIT subOperationStarted( myNewPointEditor );
}
void CurveCreator_Widget::onModifyPoint()
bool isInstantSketchingEnabled() const;
void setInstantSketchingEnabled( const bool theState );
-signals:
+Q_SIGNALS:
void selectionChanged();
void subOperationStarted( QWidget* );
void subOperationFinished( QWidget* );
-public slots:
+public Q_SLOTS:
-protected slots:
+protected Q_SLOTS:
void onAdditionMode(bool checked);
void onModificationMode(bool checked);
void onDetectPoints(bool checked);
DependencyTree_Object* getObjectByEntry( const std::string& );
-public slots:
+public Q_SLOTS:
void onRebuildModel();
-private slots:
+private Q_SLOTS:
void onUpdateModel();
void onMoveNodes( bool );
virtual void contextMenuPopup( QMenu* );
-private slots:
+private Q_SLOTS:
void onShowSelected();
void onShowOnlySelected();
TopoDS_Shape& theLastSegment)
{
QList<gp_Pnt> points;
- foreach (XYZ xyz, myPointsList) {
+ Q_FOREACH (XYZ xyz, myPointsList) {
gp_Pnt p(xyz.x, xyz.y, xyz.z);
if (points.isEmpty() || points.last().Distance(p) > gp::Resolution())
points << p;
else if (points.count() > 1) {
// wire is created
BRepBuilderAPI_MakePolygon mkWire;
- foreach(gp_Pnt p, points)
+ Q_FOREACH(gp_Pnt p, points)
mkWire.Add(p);
theApplyedWire = mkWire.Shape();
}
bool myIsUndoRedo;
XYZ myWorkPoint;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
void ClickOnAddPoint();
bool ClickOnApply();
ShapeRec_Parameters* parametersChanged();
-private slots:
+private Q_SLOTS:
void SelectionIntoArgument();
void ConstructorsClicked( int );
// void onViewClicked( int );
QTableWidgetItem* anItem;
QList<int> rows;
- foreach( anItem, selItems ) {
+ Q_FOREACH( anItem, selItems ) {
int r = row( anItem );
if ( !rows.contains( r ) ) rows.append( r );
}
virtual bool isValid (QString&);
virtual bool execute ();
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
GEOM::GEOM_FieldStep_var getStep() { return myStep; }
void setValues(GEOM::GEOM_FieldStep_var& step);
-public slots:
+public Q_SLOTS:
void setIsChanged() { myIsChanged = true; }
void headerDblClicked( int );
};
GEOM::GeomObjPtr myFace;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
QPushButton* myPushButton;
QLineEdit* myLineEdit;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
//
DIR_TAN_LENGTH, DIR_TAN_X, DIR_TAN_Y,
DIR_DXDY_LENGTH, DIR_DXDY_X, DIR_DXDY_Y };
-private slots:
+private Q_SLOTS:
void ClickOnEnd();
void ClickOnCancel();
bool ClickOnApply();
void closeEvent (QCloseEvent*);
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
views.append( SUIT_Session::session()->activeApplication()->desktop()->activeWindow() );
else
views = SUIT_Session::session()->activeApplication()->desktop()->windows();
- foreach ( SUIT_ViewWindow* view, views ) {
+ Q_FOREACH ( SUIT_ViewWindow* view, views ) {
if ( view && view->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
Handle(AIS_InteractiveContext) ic = ((OCCViewer_Viewer*)view->getViewManager()->getViewModel())->getAISContext();
views.append( SUIT_Session::session()->activeApplication()->desktop()->activeWindow() );
else
views = SUIT_Session::session()->activeApplication()->desktop()->windows();
- foreach ( SUIT_ViewWindow* view, views ) {
+ Q_FOREACH ( SUIT_ViewWindow* view, views ) {
if ( view && view->getViewManager()->getType() == SVTK_Viewer::Type() ) {
SVTK_ViewWindow* aVTKViewWindow = dynamic_cast<SVTK_ViewWindow*>( view );
if( !aVTKViewWindow )
else
views = SUIT_Session::session()->activeApplication()->desktop()->windows();
- foreach ( SUIT_ViewWindow* view, views ) {
+ Q_FOREACH ( SUIT_ViewWindow* view, views ) {
if ( view && view->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
OCCViewer_Viewer* occViewer=(OCCViewer_Viewer*)view->getViewManager()->getViewModel();
SOCC_Viewer* soccViewer = dynamic_cast<SOCC_Viewer*>(occViewer);
QButtonGroup* myRBGroup; //!< radio button group
DlgRef_Skeleton* myMainFrame; //!< dialog box's mainframe widgetx
-protected slots:
+protected Q_SLOTS:
virtual void ClickOnCancel();
virtual void processPreview();
void LineEditReturnPressed();
void ActivateThisDialog();
void ClickOnHelp();
-signals:
+Q_SIGNALS:
void constructorsClicked( int );
};
SALOME_View* view;
ViewManagerList vmans = app->viewManagers();
SUIT_ViewManager* vman;
- foreach ( vman, vmans ) {
+ Q_FOREACH ( vman, vmans ) {
SUIT_ViewModel* vmod = vman->getViewModel();
view = dynamic_cast<SALOME_View*> ( vmod );
if ( view )
//Erase childrens w/o update views
DataObjectList listObj = parent->children( true );
SUIT_DataObject* obj;
- foreach( obj, listObj ) {
+ Q_FOREACH( obj, listObj ) {
LightApp_DataObject* l_obj = dynamic_cast<LightApp_DataObject*>(obj);
if(l_obj)
- foreach ( view, views ) {
+ Q_FOREACH ( view, views ) {
Handle(SALOME_InteractiveObject) anIO =
new SALOME_InteractiveObject(qPrintable(l_obj->entry()), "GEOM", "");
Erase(anIO, false, false, view);
}
//Erase parent with view update or repaint views
- foreach ( view, views ) {
+ Q_FOREACH ( view, views ) {
if(!eraseOnlyChildren)
Erase(theIO, false, true, view);
else
//=======================================================================
void GeometryGUI::EmitSignalDeactivateDialog()
{
- emit SignalDeactivateActiveDialog();
+ Q_EMIT SignalDeactivateActiveDialog();
}
//=======================================================================
//=======================================================================
void GeometryGUI::EmitSignalCloseAllDialogs()
{
- emit SignalCloseAllDialogs();
+ Q_EMIT SignalCloseAllDialogs();
}
//=======================================================================
//=======================================================================
void GeometryGUI::EmitSignalDefaultStepValueChanged(double newVal)
{
- emit SignalDefaultStepValueChanged(newVal);
+ Q_EMIT SignalDefaultStepValueChanged(newVal);
}
//=======================================================================
{
if ( !application() )
return;
- foreach ( GEOMGUI* lib, myGUIMap )
+ Q_FOREACH ( GEOMGUI* lib, myGUIMap )
lib->OnKeyPress( e, application()->desktop(), w );
}
{
if ( !application() )
return;
- foreach ( GEOMGUI* lib, myGUIMap )
+ Q_FOREACH ( GEOMGUI* lib, myGUIMap )
lib->OnMouseMove( e, application()->desktop(), w );
}
{
if ( !application() )
return;
- foreach ( GEOMGUI* lib, myGUIMap )
+ Q_FOREACH ( GEOMGUI* lib, myGUIMap )
lib->OnMouseRelease( e, application()->desktop(), w );
}
{
if ( !application() )
return;
- foreach ( GEOMGUI* lib, myGUIMap )
+ Q_FOREACH ( GEOMGUI* lib, myGUIMap )
lib->OnMousePress( e, application()->desktop(), w );
}
QString() /*shortcutAction*/);
int menuId = -1;
- foreach (QString subMenu, smenus) {
+ Q_FOREACH (QString subMenu, smenus) {
subMenu = subMenu.toUpper().prepend("MEN_");
menuId = createMenu(tr(subMenu.toLatin1().constData()), menuId, -1);
}
// get list of all predefined materials
QStringList materials = Material_ResourceMgr::resourceMgr()->materials();
bool found = false;
- foreach ( QString material, materials )
+ Q_FOREACH ( QString material, materials )
{
QAction* menAct = matMenu->addAction( material );
connect(menAct, SIGNAL( toggled( bool ) ), signalMapper, SLOT( map() ) );
aDisplayer.UpdateViewer();
}
else if ( param.startsWith( "dependency_tree") )
- emit SignalDependencyTreeParamChanged( section, param );
+ Q_EMIT SignalDependencyTreeParamChanged( section, param );
}
}
GEOM::GEOM_Object_var anObj = GEOM::GEOM_Object::_narrow(GeometryGUI::ClientSObjectToObject(obj));
if (!CORBA::is_nil(anObj)) {
anObj->SetName( name.toLatin1().data() ); // Rename the corresponding GEOM_Object
- emit SignalDependencyTreeRenameObject( anObj->GetEntry() );
+ Q_EMIT SignalDependencyTreeRenameObject( anObj->GetEntry() );
}
result = true;
}
SUIT_DataObject* where,
const int row, Qt::DropAction action );
-public slots:
+public Q_SLOTS:
virtual bool deactivateModule( SUIT_Study* );
virtual bool activateModule( SUIT_Study* );
virtual void OnKeyPress ( SUIT_ViewWindow*, QKeyEvent* );
virtual void OnMouseMove ( SUIT_ViewWindow*, QMouseEvent* );
virtual void OnMouseRelease ( SUIT_ViewWindow*, QMouseEvent* );
-protected slots:
+protected Q_SLOTS:
virtual void onViewManagerAdded( SUIT_ViewManager* );
virtual void onViewManagerRemoved( SUIT_ViewManager* );
-private slots:
+private Q_SLOTS:
void OnGUIEvent();
void onWindowActivated( SUIT_ViewWindow* );
void onViewAboutToShow();
void onAutoBringToFront();
void updateFieldColorScale();
-signals :
+Q_SIGNALS:
void SignalDeactivateActiveDialog();
void SignalCloseAllDialogs();
void SignalDefaultStepValueChanged( double newVal );
SALOME_View* view;
ViewManagerList vmans = app->viewManagers();
SUIT_ViewManager* vman;
- foreach ( vman, vmans ) {
+ Q_FOREACH ( vman, vmans ) {
SUIT_ViewModel* vmod = vman->getViewModel();
view = dynamic_cast<SALOME_View*> ( vmod ); // must work for OCC and VTK views
if ( view )
double getTheDC() const;
void setTheDC( const double );
-private slots:
+private Q_SLOTS:
void ClickOnHelp();
private:
int getTheLW() const;
void setTheLW( const int );
-private slots:
+private Q_SLOTS:
void ClickOnHelp();
private:
void addTexture( int, bool = false ) const;
SalomeApp_Study* getStudy() const;
-private slots:
+private Q_SLOTS:
void browse();
void help();
*/
void GEOMToolsGUI_MaterialList::contextMenuEvent( QContextMenuEvent* e )
{
- emit contextMenu( e );
+ Q_EMIT contextMenu( e );
}
/*!
item->setData( TypeRole, QVariant( Current ) );
myMaterials->addItem( item );
// - global materials
- foreach( QString material, globalMaterials ) {
+ Q_FOREACH( QString material, globalMaterials ) {
item = new QListWidgetItem( material );
item->setForeground( QColor( Qt::blue ) );
item->setData( TypeRole, QVariant( Global ) );
myMaterials->addItem( item );
}
// - user materials
- foreach ( QString material, userMaterials ) {
+ Q_FOREACH ( QString material, userMaterials ) {
item = new QListWidgetItem( material );
item->setData( TypeRole, QVariant( User ) );
item->setData( NameRole, QVariant( material ) );
QListWidgetItem* = 0,
bool = false );
-signals:
+Q_SIGNALS:
void changed();
-private slots:
+private Q_SLOTS:
void onChanged();
void onMaterialChanged();
void onItemChanged( QListWidgetItem* );
GEOMToolsGUI_MaterialList( QWidget* parent );
protected:
void contextMenuEvent( QContextMenuEvent* e );
-signals:
+Q_SIGNALS:
void contextMenu( QContextMenuEvent* );
};
void setU( const int );
void setV( const int );
-private slots:
+private Q_SLOTS:
void ClickOnHelp();
private:
void getDrawableList(QTreeWidgetItem* theItem, QList<QTreeWidgetItem*>& theList);
void getTails(QTreeWidgetItem* theItem, QList<QTreeWidgetItem*>& theList);
-protected slots:
+protected Q_SLOTS:
void clickOnOk();
void clickOnApply();
void clickOnSelectAll();
GEOMToolsGUI_ReduceStudyDlg( QWidget* );
~GEOMToolsGUI_ReduceStudyDlg();
-private slots:
+private Q_SLOTS:
void onItemClicked(QTreeWidgetItem*, int );
void onHeaderClicked( int );
QLabel* myValueLab;
QString myHelpFileName;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
void ClickOnClose();
void ClickOnHelp();
GEOM::GeomObjPtr myCompound; /* compound of curves */
DlgRef_1Sel5Spin1Check* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_3Sel1Check* GroupPoints;
DlgRef_3Sel2Check3Spin* GroupMakePoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_3Sel1Check* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_1Sel3Spin2Check1Spin* GroupDXDYDZ;
DlgRef_1Check1Spin1Check* GroupThickening;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_2Sel1Spin2Check* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
void Init();
void enterEvent (QEvent*);
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void SetEditCurrentArgument();
void closeEvent (QCloseEvent*);
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
QPushButton* btnShapeSelect;
QPushButton* btnFileSelect;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
QPushButton* btnFileSelect;
GEOM::GEOM_Object_var m_mainShape;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
// parse material properties
QStringList propList = props.split( ":", QString::SkipEmptyParts );
- foreach ( QString prop, propList )
+ Q_FOREACH ( QString prop, propList )
{
QStringList pdata = prop.split( "=" );
if ( pdata.count() < 2 ) continue;
void Material_ResourceMgr::update()
{
Updater( this ).wait();
- emit changed();
+ Q_EMIT changed();
}
QStringList materials( MaterialType = All, bool = true );
-signals:
+Q_SIGNALS:
void changed();
private:
void watchUserFile( bool );
void saved();
-private slots:
+private Q_SLOTS:
void update();
private:
void ChangeDimensionsVisibility( const bool theIsVisible );
private:
QDialog* myManageDimensionDlg;
-private slots:
+private Q_SLOTS:
void onFinished(int);
};
GEOM::GEOM_Object_var myObj;
MeasureGUI_1Sel6LineEdit* myGrp;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void SelectionIntoArgument();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
virtual bool execute( ObjectList& );
virtual void processObject();
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
// redefined from GEOMBase_Helper and MeasureGUI_Skeleton
virtual void processObject();
-private slots:
+private Q_SLOTS:
void onErrorsListSelectionChanged();
void onSubShapesListSelectionChanged();
virtual bool isValid( QString& );
virtual bool extractPrefix() const;
-private slots:
+private Q_SLOTS:
void SelectionIntoArgument();
void ClickOnOk();
bool ClickOnApply();
if ( !isApplyAndClose() )
{
- emit applyClicked();
+ Q_EMIT applyClicked();
Init();
ConstructTypeChanged( getConstructorId() );
}
mySelectionButtons[myCurrentSelector]->setDown( false );
// every selector is populated - construct presentation
- emit StopSelection();
- emit SelectionDone();
+ Q_EMIT StopSelection();
+ Q_EMIT SelectionDone();
}
//=================================================================================
aButton->setDown( isClickedOnes );
}
- emit StartSelection( mySelectionModes[myCurrentSelector] );
+ Q_EMIT StartSelection( mySelectionModes[myCurrentSelector] );
}
//=================================================================================
mySelectionButtons[aFirstSelector]->click();
- emit TabChanged();
+ Q_EMIT TabChanged();
}
//=================================================================================
void Init();
-signals:
+Q_SIGNALS:
void applyClicked();
/* User event logics */
-protected slots:
+protected Q_SLOTS:
void ConstructTypeChanged( int theType );
void OnArgumentTabChanged();
void OnStartSelection( const QList<TopAbs_ShapeEnum>& theModes );
public:
BaseSelectorPane( QWidget* theParent );
-signals:
+Q_SIGNALS:
void StartSelection( const QList<TopAbs_ShapeEnum>& theModes );
void StopSelection();
void SelectionDone();
void SelectionIntoArguments( const GEOM::GeomObjPtr& theSelected );
GEOM::GeomObjPtr GetSelection( QLineEdit* theSelector ) const;
-public slots:
+public Q_SLOTS:
void OnSelectorClicked();
void OnTabChanged();
anAISContext->ClearSelected( Standard_False );
anAISContext->AddOrRemoveSelected( aDetectedOwner );
- emit InteractionStarted( myInteractedIO );
+ Q_EMIT InteractionStarted( myInteractedIO );
return true;
}
myOperation = Operation_None;
- emit InteractionFinished( myInteractedIO );
+ Q_EMIT InteractionFinished( myInteractedIO );
return true;
}
*/
void MoveText( const Handle(V3d_View)& theView, const int theX, const int theY );
-signals:
+Q_SIGNALS:
void InteractionStarted( Handle_AIS_InteractiveObject theIO );
void InteractionFinished( Handle_AIS_InteractiveObject theIO );
*/
virtual bool eventFilter( QObject*, QEvent* );
-protected slots:
+protected Q_SLOTS:
void OnViewCreated( SUIT_ViewWindow* );
void OnViewRemoved( SUIT_ViewWindow* );
MeasureGUI_DistanceGroup* myGrp;
GEOM::ListOfDouble_var myDbls;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
virtual bool execute (ObjectList&);
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
};
/* User event logics */
-protected slots:
+protected Q_SLOTS:
void StartObjectSelection() { StartSelection( Selection_Object ); }
void StartSelection( const Selection theSelection );
void StopSelection();
DlgRef_2Sel* GroupArgs;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
MeasureGUI_Skeleton( GeometryGUI*, QWidget* = 0, bool = false, Qt::WindowFlags = 0 );
~MeasureGUI_Skeleton();
-protected slots:
+protected Q_SLOTS:
virtual void ClickOnCancel();
virtual void ClickOnHelp();
virtual void DeactivateActiveDialog();
// redefined from GEOMBase_Helper and MeasureGUI_Skeleton
virtual void processObject();
-protected slots:
+protected Q_SLOTS:
virtual void ClickOnProperties();
private:
DlgRef_1Sel3Spin* GroupPoints;
double myStep;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
QPushButton* resetButton;
QComboBox* TypeCB;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void onActivate();
DlgRef_2Sel2Spin2Push* myGroup;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_2Sel2List* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void SetEditCurrentArgument();
DlgRef_2Sel1List1Check* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_1List1Spin1Btn* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
void ActivateThisDialog();
void SelectionIntoArgument();
DlgRef_2Sel1List2Check* GroupPoints;
QCheckBox *mySelfInte;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_2Sel* GroupPoints;
DlgRef_3Spin* GroupDimensions;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_2Sel3Spin* GroupPoints;
DlgRef_3Spin* GroupDimensions;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_2Sel3Spin1Check* GroupPoints;
DlgRef_3Spin1CheckCyl* GroupDimensions;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_1Spin* GroupDimensions;
DlgRef_3Radio* GroupOrientation;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
DlgRef_3Radio* GroupOrientation;
DlgRef_3Radio* GroupType;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
DlgRef_1Sel1Spin* GroupPoints;
DlgRef_1Spin* GroupDimensions;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_2Sel2Spin* GroupPoints;
DlgRef_2Spin* GroupDimensions;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_1Sel1Check* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_2SelExt* GroupPoints;
QButtonGroup* myIsVertexGr;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
QButtonGroup* myIsParameterGr;
SalomeApp_DoubleSpinBox* myValEdt;
-protected slots:
+protected Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
int myNbOpen;
int myCurrObj;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void SelectionIntoArgument();
void activateSelection();
GEOM_Displayer* getDisplayer();
-private slots:
+private Q_SLOTS:
void onClose();
void onHelp();
void onDeactivate();
virtual bool execute (ObjectList&);
virtual void addSubshapesToStudy();
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
TopAbs_ShapeEnum myGlueMode;
-protected slots:
+protected Q_SLOTS:
virtual void ClickOnCancel();
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
DlgRef_1SelExt* GroupPoints;
SalomeApp_DoubleSpinBox* myTolEdt;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
DlgRef_1Sel1Check* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
int myClosed; // Number of free closed boundaries detected. Calculated in execute(), used in onDetect().
int myOpen; // Number of free open boundaries detected. Calculated in execute(), used in onDetect().
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
DlgRef_1Sel1Check1Sel* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
DlgRef_1Sel* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
int myClosed; // Number of free closed boundaries detected. Calculated in execute(), used in onDetect().
int myOpen; // Number of free open boundaries detected. Calculated in execute(), used in onDetect().
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
SalomeApp_DoubleSpinBox* mySameParameterTol3D;
-private slots:
+private Q_SLOTS:
void onOk();
bool onApply();
DlgRef_2Sel* GroupArgs;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
DlgRef_1Sel* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
DlgRef_2Sel1Spin2Check* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
TransformationGUI_2Sel4Spin1Check* GroupArgs;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_2Sel2Spin1Check* GroupPoints;
DlgRef_3Sel4Spin2Check* GroupDimensions;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_1Sel1Spin1Check* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_4Sel1Spin3Check* Group1;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_2Sel* myGroup;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void SetEditCurrentArgument();
DlgRef_4Sel1Spin2Check* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
SalomeApp_DoubleSpinBox* SpinBox_FZ;
QCheckBox* CheckBoxCopy;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();
DlgRef_3Sel3Spin2Check* GroupPoints;
-private slots:
+private Q_SLOTS:
void ClickOnOk();
bool ClickOnApply();
void ActivateThisDialog();