class QToolButton;
class QtxDblSpinBox;
-
-class VisuGUI_FontWg;
+class SalomeApp_Module;
+class SVTK_FontWidget;
+class VISU_ScalarMapAct;
class VisuGUI_TextPrefDlg: public QDialog
{
{ (isVisible)? myTitleEdt->show() : myTitleEdt->hide(); }
public:
- VisuGUI_FontWg* myTitleFont;
- VisuGUI_FontWg* myLabelFont;
+ SVTK_FontWidget* myTitleFont;
+ SVTK_FontWidget* myLabelFont;
private:
QLineEdit* myTitleEdt;
~VisuGUI_ScalarBarPane() {};
void setRange( double imin, double imax, /*double fmin, double fmax,*/ bool sbRange );
+ void setDefaultRange(double imin, double imax);
bool isIRange() {return RBIrange->isChecked();}
double getMin() {return MinEdit->text().toDouble();}
double getMax() {return MaxEdit->text().toDouble();}
int storeToPrsObject(VISU::ScalarMap_i* thePrs);
bool check();
+ void deletePreview();
protected:
QButtonGroup* RangeGroup;
void changeDefaults( int );
void changeRange( int );
void XYChanged( double );
+ void changeScalarMode( int );
void onTextPref();
+ void onPreviewCheck(bool thePreview);
+ void updatePreview();
+
+ private:
+ void createScalarBar();
+ void deleteScalarBar();
+
+ QCheckBox* myPreviewCheck;
+ VISU_ScalarMapAct* myPreviewActor;
+ VISU::ScalarMap_i* myScalarMap;
+
+ bool myBusy;
};
Q_OBJECT;
public:
- VisuGUI_ScalarBarDlg( QWidget* parent = 0, bool SetPref = FALSE );
+ VisuGUI_ScalarBarDlg (SalomeApp_Module* theModule, bool SetPref = FALSE);
~VisuGUI_ScalarBarDlg() {};
bool isToSave() {return myScalarPane->isToSave();}
protected slots:
void accept();
+ void reject();
protected:
VisuGUI_ScalarBarPane* myScalarPane;