From 44185d327a227435374f9d5f07649ad7100138c8 Mon Sep 17 00:00:00 2001 From: asl Date: Mon, 4 Jul 2005 04:20:37 +0000 Subject: [PATCH] *** empty log message *** --- src/SMESHGUI/Makefile.in | 2 ++ src/SMESHGUI/SMESHGUI.cxx | 2 +- src/SMESHGUI/SMESHGUI_Dialog.cxx | 17 +++++++++++++++++ src/SMESHGUI/SMESHGUI_Dialog.h | 18 ++++++++++++++++++ 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/SMESHGUI/SMESHGUI_Dialog.cxx create mode 100644 src/SMESHGUI/SMESHGUI_Dialog.h diff --git a/src/SMESHGUI/Makefile.in b/src/SMESHGUI/Makefile.in index 76b193bf3..6b0f10e38 100644 --- a/src/SMESHGUI/Makefile.in +++ b/src/SMESHGUI/Makefile.in @@ -107,6 +107,7 @@ LIB_SRC = SMESHGUI.cxx \ SMESHGUI_VTKUtils.cxx \ SMESHGUI_Selection.cxx \ SMESHGUI_CreatePolyhedralVolumeDlg.cxx \ + SMESHGUI_Dialog.cxx \ SMESHGUI_Operation.cxx LIB_MOC = \ @@ -150,6 +151,7 @@ LIB_MOC = \ SMESHGUI_SewingDlg.h \ SMESHGUI_PrecisionDlg.h \ SMESHGUI_MergeNodesDlg.h \ + SMESHGUI_Dialog.h \ SMESHGUI_CreatePolyhedralVolumeDlg.h \ SMESHGUI_Operation.h diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 028e489b3..b2e72a8ad 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -2473,7 +2473,7 @@ void SMESHGUI::createPopupItem( const int id, if( pId!=-1 ) parentId = popupMgr()->actionId( action( pId ) ); - if( !popupMgr()->contains( popupMgr()->actionId( action( id ) ) ) ) +// if( !popupMgr()->contains( popupMgr()->actionId( action( id ) ) ) ) popupMgr()->insert( action( id ), parentId, 0 ); QChar lc = QtxPopupMgr::Selection::defEquality(); diff --git a/src/SMESHGUI/SMESHGUI_Dialog.cxx b/src/SMESHGUI/SMESHGUI_Dialog.cxx new file mode 100644 index 000000000..0d8d7eb78 --- /dev/null +++ b/src/SMESHGUI/SMESHGUI_Dialog.cxx @@ -0,0 +1,17 @@ + +#include +#include +#include + +#include + +SMESHGUI_Dialog::SMESHGUI_Dialog( SMESHGUI* theModule, const bool modal, const bool allowResize, + const int flags ) +: SalomeApp_Dialog( SMESH::GetDesktop( theModule ), "", modal, allowResize, flags ) +{ +} + +SMESHGUI_Dialog::~SMESHGUI_Dialog() +{ +} + diff --git a/src/SMESHGUI/SMESHGUI_Dialog.h b/src/SMESHGUI/SMESHGUI_Dialog.h new file mode 100644 index 000000000..62deb9a74 --- /dev/null +++ b/src/SMESHGUI/SMESHGUI_Dialog.h @@ -0,0 +1,18 @@ + +#ifndef SMESHGUI_DIALOG_H +#define SMESHGUI_DIALOG_H + +#include + +class SMESHGUI; + +class SMESHGUI_Dialog : public SalomeApp_Dialog +{ + Q_OBJECT + +public: + SMESHGUI_Dialog( SMESHGUI*, const bool = false, const bool = false, const int = OK | Cancel | Apply ); + virtual ~SMESHGUI_Dialog(); +}; + +#endif -- 2.39.2