#include "utilities.h"
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
+
// OCCT Includes
#include <TColStd_MapOfInteger.hxx>
#include <TColStd_IndexedMapOfInteger.hxx>
#include "utilities.h"
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
+
// OCCT Includes
#include <TColStd_MapOfInteger.hxx>
#include <TColStd_IndexedMapOfInteger.hxx>
#include "LightApp_UpdateFlags.h"
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
+
//================================================================================
/*!
* \brief Constructor
// IDL Headers
#include "SALOMEconfig.h"
#include CORBA_SERVER_HEADER(SMESH_Group)
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
using namespace std;
#include "utilities.h"
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
+
// QT Includes
#include <qapplication.h>
#include <qbuttongroup.h>
// IDL Headers
#include "SALOMEconfig.h"
#include CORBA_SERVER_HEADER(SMESH_Group)
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
using namespace std;
QLabel* StartPointLab;
QToolButton* SelectStartPointButton;
QLineEdit* StartPointLineEdit;
+ QCheckBox* LinearAnglesCheck;
QCheckBox* AnglesCheck;
QGroupBox* AnglesGrp;
QListBox* AnglesList;
// IDL Headers
#include "SALOMEconfig.h"
#include CORBA_SERVER_HEADER(SMESH_Group)
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
using namespace std;
#include "utilities.h"
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
+
// OCCT Includes
#include <TColStd_MapOfInteger.hxx>
// IDL Headers
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SMESH_Mesh)
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
#define MARGIN 10
#define SPACING 5
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SMESH_Mesh)
#include CORBA_SERVER_HEADER(SMESH_Filter)
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
class SMESHGUI;
class SMESHGUI_FilterDlg;
#include <qvalidator.h>
#include <qevent.h>
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
+
using namespace std;
using namespace std;
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
+
//=================================================================================
// class : SMESHGUI_RemoveElementsDlg()
// purpose :
using namespace std;
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
+
//=================================================================================
// class : SMESHGUI_RemoveNodesDlg()
// purpose :
using namespace std;
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
+
//=================================================================================
// class : SMESHGUI_RenumberingDlg()
// purpose :
// IDL Headers
#include "SALOMEconfig.h"
#include CORBA_SERVER_HEADER(SMESH_Group)
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
using namespace std;
#include <qlayout.h>
#include <qpixmap.h>
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
+
using namespace std;
+
//=================================================================================
// class : SMESHGUI_SewingDlg()
// purpose :
//================================================================================
/*!
* \brief Constructor
- * \param theToCreate - if this parameter is true then operation is used for creation,
- * for editing otherwise
- *
- * Initialize operation
*/
//================================================================================
SMESHGUI_ShapeByMeshOp::SMESHGUI_ShapeByMeshOp(bool isMultipleAllowed):
private:
-// void closeEvent (QCloseEvent* e);
-// void enterEvent (QEvent*);
-
-private:
-
- //QFrame* createButtonFrame (QWidget*);
QFrame* createMainFrame (QWidget*);
- //void displayPreview();
- //void erasePreview();
-private:
QButtonGroup* myElemTypeGroup;
QLineEdit* myElementId;
QLineEdit* myGeomName;
-private:
bool myIsMultipleAllowed;
void setMultipleAllowed(bool isAllowed) {myIsMultipleAllowed = isAllowed;};
-// QPushButton* myOkBtn;
-// QPushButton* myCloseBtn;
-
-// SMESHGUI* mySMESHGUI;
-// LightApp_SelectionMgr* mySelectionMgr;
-// SVTK_ViewWindow* myViewWindow;
-
friend class SMESHGUI_ShapeByMeshOp;
};
+/*!
+ * \brief Operation to publish a sub-shape of the mesh main shape
+ * by selecting mesh elements
+ */
class SMESHGUI_ShapeByMeshOp: public SMESHGUI_SelectionOp
{
Q_OBJECT
virtual void commitOperation();
virtual void startOperation();
- //virtual void selectionDone();
- //virtual SUIT_SelectionFilter* createFilter( const int ) const;
- //virtual bool isValid( SUIT_Operation* ) const;
void activateSelection();
void setElementID(const QString&);
-/* signals: */
-
-/* void PublishShape(); */
-/* void Close(); */
-
protected slots:
virtual bool onApply() { return true; }
-/* void onCreateHyp( const int theHypType, const int theIndex ); */
-/* void onEditHyp( const int theHypType, const int theIndex ); */
-/* void onHypoSet( const QString& theSetName ); */
-/* void onGeomSelectionByMesh( bool ); */
-/* void onPublishShapeByMeshDlg(); */
-/* void onCloseShapeByMeshDlg(); */
private slots:
-// void onOk();
-// void onClose();
-
-// void onDeactivate();
-
void onSelectionDone();
void onTypeChanged (int);
void onElemIdChanged (const QString&);
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SMESH_Mesh)
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
class QCloseEvent;
class QFrame;
// IDL Headers
#include "SALOMEconfig.h"
#include CORBA_SERVER_HEADER(SMESH_Group)
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
using namespace std;
// IDL Headers
#include "SALOMEconfig.h"
#include CORBA_SERVER_HEADER(SMESH_Group)
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
using namespace std;
// IDL Headers
#include "SALOMEconfig.h"
#include CORBA_SERVER_HEADER(SMESH_Group)
+#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
using namespace std;
#include <qstring.h>
#include "SMESHGUI_Utils.h"
+#include "SMESHGUI.h"
#include "OB_Browser.h"
#include "SUIT_Desktop.h"
#include "SUIT_Application.h"
#include "SUIT_Session.h"
+#include "SUIT_MessageBox.h"
#include "LightApp_SelectionMgr.h"
#include "SalomeApp_Application.h"
}
}
+ void ShowHelpFile (QString theHelpFileName)
+ {
+ LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app) {
+ SMESHGUI* gui = SMESHGUI::GetSMESHGUI();
+ app->onHelpContextModule(gui ? app->moduleName(gui->moduleName()) : QString(""),
+ theHelpFileName);
+ }
+ else {
+ SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
+ QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
+ arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(theHelpFileName),
+ QObject::tr("BUT_OK"));
+ }
+ }
+
// void UpdateObjBrowser (bool)
// {
// //SMESHGUI::activeStudy()->updateObjBrowser(true);
void ModifiedMesh (_PTR(SObject) theSObject, bool theIsRight);
-// void UpdateObjBrowser (bool);
+ void ShowHelpFile (QString theHelpFileName);
}
#endif