]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
refs #30 - Sketch base GUI: create, draw lines
authornds <natalia.donis@opencascade.com>
Tue, 6 May 2014 07:53:59 +0000 (11:53 +0400)
committernds <natalia.donis@opencascade.com>
Tue, 6 May 2014 07:53:59 +0000 (11:53 +0400)
Correction for the property panel controls. The repaint() call.
Test case: Activate sketch operation, activate line creation, select first point, move it. The property control spin boxes should be updated immediatelly by the mouse move. Without repaint, the controls are updated with a delay.

src/Events/Events_Error.cpp
src/XGUI/XGUI_PropertyPanel.cpp
src/XGUI/XGUI_PropertyPanel.h

index ae5d83c375c5182736ba73aa3fe4e1ca19f18535..ff3fd58e82ee0c7fad634b73c4ed86a8445bb5a2 100644 (file)
@@ -37,5 +37,5 @@ void Events_Error::send(char* theDescription, const void* theSender)
 
 void Events_Error::send(std::string theDescription, const void* theSender)
 {
-  Events_Error::send(theDescription.c_str(), theSender);
+  Events_Error::send((char*)theDescription.c_str(), theSender);
 }
index 09a6c727ebe6041d521876455d977f1bb13a0e53..2f4cca0ed18d5b4f1d9d8b78145fe35addbf3c81 100644 (file)
@@ -76,4 +76,6 @@ void XGUI_PropertyPanel::updateContentWidget(boost::shared_ptr<ModelAPI_Feature>
   foreach(ModuleBase_ModelWidget* eachWidget, myWidgets) {
     eachWidget->restoreValue(theFeature);
   }
+  // the repaint is used here to immediatelly react in GUI to the values change.
+  repaint();
 }
index 9229b8756644a5ccf5336f0d35a57e3121a0edf5..546ae19b780fe7e2c62d30b3d3f90bc6b5a9a3b0 100644 (file)
@@ -8,12 +8,14 @@
 #ifndef XGUI_PROPERTYPANEL_H_
 #define XGUI_PROPERTYPANEL_H_
 
+#include "XGUI.h"
+
 #include <ModuleBase_ModelWidget.h>
 
 #include <QDockWidget>
 #include <QList>
 
-class XGUI_PropertyPanel: public QDockWidget
+class XGUI_EXPORT XGUI_PropertyPanel: public QDockWidget
 {
   Q_OBJECT
 public: