Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Exlude the user input during process events by application (Bug #325).
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_GeoreferencementDlg.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_GeoreferencementDlg.cxx
b/src/HYDROGUI/HYDROGUI_GeoreferencementDlg.cxx
index aa73cd03a19a37f64f9c28b0562e04e14539611f..7bb035f06bf3e14b3a461239f8b7386c395859a2 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_GeoreferencementDlg.cxx
+++ b/
src/HYDROGUI/HYDROGUI_GeoreferencementDlg.cxx
@@
-24,7
+24,7
@@
#include "HYDROGUI_Tool.h"
#include "HYDROGUI_Tool.h"
-#include <
GEOMUtils.hxx
>
+#include <
CurveCreator_Utils.h
>
#include <OCCViewer_ViewWindow.h>
#include <OCCViewer_ViewManager.h>
#include <OCCViewer_ViewWindow.h>
#include <OCCViewer_ViewManager.h>
@@
-240,10
+240,12
@@
void HYDROGUI_GeoreferencementDlg::setData( const ProfilesGeoDataList& theData )
// "Profile" column
QTableWidgetItem* aNameItem = new QTableWidgetItem( aGeoData.Name );
// "Profile" column
QTableWidgetItem* aNameItem = new QTableWidgetItem( aGeoData.Name );
- aNameItem->setFlags( Qt::ItemIsEnabled );
+ aNameItem->setFlags( aNameItem->flags() & ~Qt::ItemIsEnabled );
+ /* Bold font is not used in other tables. Keep the common style.
QFont aFont = aNameItem->font();
aFont.setBold( true );
QFont aFont = aNameItem->font();
aFont.setBold( true );
- aNameItem->setFont( aFont );
+ aNameItem->setFont( aFont );
+ */
myTable->setItem( aRow, 0, aNameItem );
// "Xg" column
myTable->setItem( aRow, 0, aNameItem );
// "Xg" column
@@
-307,8
+309,8
@@
void HYDROGUI_GeoreferencementDlg::onMousePress(
// Get the selected point coordinates
OCCViewer_ViewPort3d* aViewPort = anOCCViewWindow->getViewPort();
// Get the selected point coordinates
OCCViewer_ViewPort3d* aViewPort = anOCCViewWindow->getViewPort();
- gp_Pnt aPnt =
GEOM
Utils::ConvertClickToPoint( theEvent->x(), theEvent->y(),
- aViewPort->getView() );
+ gp_Pnt aPnt =
CurveCreator_
Utils::ConvertClickToPoint( theEvent->x(), theEvent->y(),
+
aViewPort->getView() );
// Set the coordinates to the corresponding cells of the table
int aColumnX = aColumn < 3 ? 1 : 3;
// Set the coordinates to the corresponding cells of the table
int aColumnX = aColumn < 3 ? 1 : 3;