Adapter class to the parameter of FreeCAD for all windows Retrieve the parameter group of the specific window by the windowname. More...
#include <Window.h>
Public Member Functions | |
ParameterGrp::handle | getWindowParameter (void) |
return the parameter group of this window | |
void | OnChange (Base::Subject< const char * > &rCaller, const char *sReason) |
bool | setGroupName (const char *name) |
Sets the group of the window to name. | |
WindowParameter (const char *name) | |
virtual | ~WindowParameter () |
Static Public Member Functions | |
static ParameterGrp::handle | getDefaultParameter (void) |
get the parameters |
Adapter class to the parameter of FreeCAD for all windows Retrieve the parameter group of the specific window by the windowname.
Definition at line 37 of file Window.h.
WindowParameter::WindowParameter | ( | const char * | name | ) |
Definition at line 42 of file Window.cpp.
References getDefaultParameter().
WindowParameter::~WindowParameter | ( | ) | [virtual] |
Definition at line 53 of file Window.cpp.
ParameterGrp::handle WindowParameter::getDefaultParameter | ( | void | ) | [static] |
get the parameters
Returns a handle to the parameter group to the user parameter under BaseApp/Preferences.
Definition at line 87 of file Window.cpp.
References App::GetApplication(), ParameterGrp::GetGroup(), and App::Application::GetUserParameter().
Referenced by Gui::SoFCUnifiedSelection::applySettings(), MeshGui::ViewProviderMeshNode::attach(), MeshGui::ViewProviderMeshFaceSet::attach(), MeshGui::ViewProviderMeshObject::attach(), MeshGui::ViewProviderIndexedFaceSet::attach(), Gui::ViewProviderGeometryObject::createFromSettings(), MeshGui::ViewProviderMesh::fillHole(), MeshGui::DlgSettingsMeshView::loadSettings(), Gui::Dialog::DlgGeneralImp::loadSettings(), Gui::Dialog::DlgSettingsEditorImp::loadSettings(), Gui::Dialog::DlgCustomKeyboardImp::on_buttonAssign_clicked(), Gui::Dialog::DlgCustomKeyboardImp::on_buttonReset_clicked(), Gui::Dialog::DlgCustomKeyboardImp::on_buttonResetAll_clicked(), Gui::PythonConsole::onSaveHistoryAs(), Gui::DockWnd::ReportOutput::ReportOutput(), Gui::DockWnd::ReportView::ReportView(), Gui::Application::runApplication(), Gui::Dialog::DlgGeneralImp::saveSettings(), Gui::Dialog::DlgSettingsEditorImp::saveSettings(), setGroupName(), MeshGui::ViewProviderMesh::ViewProviderMesh(), MeshGui::ViewProviderMeshNode::ViewProviderMeshNode(), and WindowParameter().
ParameterGrp::handle WindowParameter::getWindowParameter | ( | void | ) |
return the parameter group of this window
Definition at line 78 of file Window.cpp.
Referenced by Gui::Dialog::DlgMacroExecuteImp::DlgMacroExecuteImp(), Gui::Dialog::DlgMacroRecordImp::DlgMacroRecordImp(), Gui::Dialog::DlgTipOfTheDayImp::DlgTipOfTheDayImp(), Gui::EditorView::EditorView(), Gui::TextEditor::keyPressEvent(), Gui::Dialog::DlgMacroExecuteImp::on_fileChooser_fileNameChanged(), Gui::Dialog::DlgMacroRecordImp::on_pushButtonChooseDir_clicked(), Gui::TextEditor::OnChange(), Gui::PythonConsole::OnChange(), Gui::EditorView::OnChange(), Gui::PrefWidget::onRestore(), Gui::PrefWidget::onSave(), Gui::DockWnd::ReportOutput::onToggleError(), Gui::DockWnd::ReportOutput::onToggleGoToEnd(), Gui::DockWnd::ReportOutput::onToggleLogging(), Gui::DockWnd::ReportOutput::onToggleRedirectPythonStderr(), Gui::DockWnd::ReportOutput::onToggleRedirectPythonStdout(), Gui::DockWnd::ReportOutput::onToggleWarning(), Gui::PythonConsole::PythonConsole(), Gui::DockWnd::ReportOutput::ReportOutput(), Gui::PrefColorButton::restorePreferences(), Gui::PrefSlider::restorePreferences(), Gui::PrefRadioButton::restorePreferences(), Gui::PrefCheckBox::restorePreferences(), Gui::PrefComboBox::restorePreferences(), Gui::PrefFileChooser::restorePreferences(), Gui::PrefLineEdit::restorePreferences(), Gui::PrefDoubleSpinBox::restorePreferences(), Gui::PrefSpinBox::restorePreferences(), Gui::PrefColorButton::savePreferences(), Gui::PrefSlider::savePreferences(), Gui::PrefRadioButton::savePreferences(), Gui::PrefCheckBox::savePreferences(), Gui::PrefComboBox::savePreferences(), Gui::PrefFileChooser::savePreferences(), Gui::PrefLineEdit::savePreferences(), Gui::PrefDoubleSpinBox::savePreferences(), Gui::PrefSpinBox::savePreferences(), Gui::PrefWidget::setParamGrpPath(), Gui::StatusBarObserver::StatusBarObserver(), Gui::TextEditor::TextEditor(), Gui::Dialog::DlgTipOfTheDayImp::~DlgTipOfTheDayImp(), Gui::EditorView::~EditorView(), Gui::PrefWidget::~PrefWidget(), Gui::PythonConsole::~PythonConsole(), Gui::PythonEditor::~PythonEditor(), Gui::DockWnd::ReportOutput::~ReportOutput(), Gui::StatusBarObserver::~StatusBarObserver(), and Gui::TextEditor::~TextEditor().
void WindowParameter::OnChange | ( | Base::Subject< const char * > & | rCaller, | |
const char * | sReason | |||
) |
Reimplemented in Gui::EditorView, Gui::StatusBarObserver, Gui::PrefWidget, Gui::PythonConsole, Gui::DockWnd::ReportOutput, Gui::TextEditor, and WebGui::BrowserView.
Definition at line 73 of file Window.cpp.
References Base::Console().
bool WindowParameter::setGroupName | ( | const char * | name | ) |
Sets the group of the window to name.
Definition at line 58 of file Window.cpp.
References App::GetApplication(), getDefaultParameter(), App::Application::GetParameterGroupByPath(), and Base::Reference< T >::isValid().
Referenced by Gui::PrefWidget::setParamGrpPath().