Helper class to read/write tree view options. More...
#include <Tree.h>
Public Member Functions | |
bool | getTreeViewStretchDescription () const |
void | OnChange (Base::Subject< const char * > &, const char *sReason) |
TreeParams () | |
Static Public Member Functions | |
static TreeParams * | Instance () |
Helper class to read/write tree view options.
The parameters are stored under group "User parameter:BaseApp/Preferences/TreeView". Call TreeParams::Instance()->ParamName/setParamName() to get/set parameter. To add a new parameter, add a new line under FC_TREEPARAM_DEFS using macro
If there is special handling on parameter change, use FC_TREEPARAM_DEF2() instead, and add a function with the following signature in Tree.cpp,
TreeParams::TreeParams | ( | ) |
References Base::Subject< _MessageType >::Attach(), App::GetApplication(), and App::Application::GetParameterGroupByPath().
Referenced by Instance().
bool TreeParams::getTreeViewStretchDescription | ( | ) | const |
References ParameterGrp::GetBool().
|
static |
References TreeParams().
Referenced by Gui::TreeWidget::dropEvent(), Gui::DocumentItem::findRootIndex(), Gui::TreeWidget::leaveEvent(), Gui::TreeWidget::onPreSelectTimer(), Gui::TreeWidget::onSelectionChanged(), Gui::TreeWidget::onSelectTimer(), Gui::TreeWidget::selectAll(), Gui::TreeWidget::showEvent(), Gui::TreeWidget::syncView(), Gui::TreePanel::TreePanel(), and Gui::TreeWidget::TreeWidget().
FC_TREEPARAM_DEFS void TreeParams::OnChange | ( | Base::Subject< const char * > & | , |
const char * | sReason | ||
) |