return myTitleY2Edit->text();
}
+/*!
+ \brief Shows/hides widgets for the main title editing
+ \sa isTitleEditable()
+*/
+void Plot2d_SetupViewDlg::setTitleEditable( bool editable )
+{
+ myTitleCheck->setVisible( editable );
+ myTitleEdit->setVisible( editable );
+}
+
+/*!
+ \brief Get visibility state of the widgets for the main title editing
+ \return true if the widgets are visible
+ \sa setTitleEditable()
+*/
+bool Plot2d_SetupViewDlg::isTitleEditable()
+{
+ return myTitleEdit->isVisible();
+}
+
+/*!
+ \brief Shows/hides widgets for the X axis title editing
+ \sa isXTitleEditable()
+*/
+void Plot2d_SetupViewDlg::setXTitleEditable( bool editable )
+{
+ myTitleXCheck->setVisible( editable );
+ myTitleXEdit->setVisible( editable );
+}
+
+/*!
+ \brief Get visibility state of the widgets for the X axis title editing
+ \return true if the widgets are visible
+ \sa setXTitleEditable()
+*/
+bool Plot2d_SetupViewDlg::isXTitleEditable()
+{
+ return myTitleXEdit->isVisible();
+}
+
+/*!
+ \brief Shows/hides widgets for the Y axis title editing
+ \sa isYTitleEditable()
+*/
+void Plot2d_SetupViewDlg::setYTitleEditable( bool editable )
+{
+ myTitleYCheck->setVisible( editable );
+ myTitleYEdit->setVisible( editable );
+}
+
+/*!
+ \brief Get visibility state of the widgets for the Y axis title editing
+ \return true if the widgets are visible
+ \sa setYTitleEditable()
+*/
+bool Plot2d_SetupViewDlg::isYTitleEditable()
+{
+ return myTitleYEdit->isVisible();
+}
+
+/*!
+ \brief Shows/hides widgets for the second Y axis title editing
+ \sa isY2TitleEditable()
+*/
+void Plot2d_SetupViewDlg::setY2TitleEditable( bool editable )
+{
+ myTitleY2Check->setVisible( editable );
+ myTitleY2Edit->setVisible( editable );
+}
+
+/*!
+ \brief Get visibility state of the widgets for the second Y axis title editing
+ \return true if the widgets are visible
+ \sa setY2TitleEditable()
+*/
+bool Plot2d_SetupViewDlg::isY2TitleEditable()
+{
+ return myTitleY2Edit->isVisible();
+}
+
/*!
\brief Set curve type.
\param type curve type: 0 (points), 1 (lines) or 2 (splines)
QString getYTitle();
QString getY2Title();
+ void setTitleEditable( bool );
+ bool isTitleEditable();
+ void setXTitleEditable( bool );
+ bool isXTitleEditable();
+ void setYTitleEditable( bool );
+ bool isYTitleEditable();
+ void setY2TitleEditable( bool );
+ bool isY2TitleEditable();
+
void setCurveType( const int );
int getCurveType();
}
}
+/*!
+ Protected virtual method called by onSettings() slot,
+ can be redefined to customize the dialog box appearance.
+ \param theDlg a pointer to the 2D plot settings dialog box instance
+ \sa onSettings()
+*/
+void Plot2d_ViewFrame::setupSettingsDlg( Plot2d_SetupViewDlg* /*theDlg*/ )
+{
+}
+
/*!
"Settings" toolbar action slot
*/
#endif
Plot2d_SetupViewDlg* dlg = new Plot2d_SetupViewDlg( this, true, mySecondY );
+
+ // Allow derived classes to customize the dialog box appearance
+ setupSettingsDlg( dlg );
+
dlg->setMainTitle( myTitleEnabled, myTitle );
dlg->setXTitle( myXTitleEnabled, myXTitle );
dlg->setYTitle( myYTitleEnabled, myYTitle );