Rhino C++ API
8.20
|
#include <RhinoSdkUiOptionsListCtrlItem.h>
CRhinoUiOptionsListCtrlLinetypeComboBox
Description: This control will display a simple combo box containing a list loaded line types.
CRhinoUiOptionsListCtrlLinetypeComboBox::CRhinoUiOptionsListCtrlLinetypeComboBox | ( | LPCTSTR | lpsLabel = NULL , |
LPCTSTR | lpsText = NULL , |
||
int | iIndentLevel = 0 , |
||
CRhinoUiComboBoxItemData::class_type | ct = CRhinoUiComboBoxItemData::ct_linetype |
||
) |
Description: Constructor
Parameters: lpsLabel [in] Label for this item, appears in left column of options list lpsText [in] Text associated with this item, appears in right column of options list
|
virtual |
Description: Destructor
bool CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeByLayer | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding linetype options to combo box.
Returns: Returns true if "By Layer" option should be added to linetype list; otherwise false.
See Also: CRhinoUiOptionsListCtrlLinetypeComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlLinetypeComboBox::SetIncludeByLayer()
bool CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeByParent | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding linetypes to combo box.
Returns: Returns true if "By Parent" option should be added to linetype list; otherwise false.
See Also: CRhinoUiOptionsListCtrlLinetypeComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlLinetypeComboBox::SetIncludeByParent()
bool CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeDefaults | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding linetype options to combo box.
Returns: Returns true if default linetypes option should be added to linetype list; otherwise false.
See Also: CRhinoUiOptionsListCtrlLinetypeComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlLinetypeComboBox::SetIncludeDefaults()
bool CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeDeletedLinetypes | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding linetypes to the combo box.
Returns: Returns true if deleted linetype names should be added to the combo box; otherwise false.
See Also: CRhinoUiOptionsListCtrlLinetypeComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlLinetypeComboBox::SetIncludeDeletedLinetypes()
bool CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeReferenceLinetypes | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding linetypes to the combo box.
Returns: Returns true if reference linetype names should be added to the combo box; otherwise false.
See Also: CRhinoUiOptionsListCtrlLinetypeComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlLinetypeComboBox::SetIncludeReferenceLinetypes()
afx_msg void CRhinoUiOptionsListCtrlLinetypeComboBox::OnCbnSelchange | ( | ) |
|
virtual |
Description: CRhinoUiOptionsListCtrlComboBox override, calls base class.
Overridden to save currently selected linetype
See Also: CRhinoUiOptionsListCtrlComboBox::OnItemComboBoxSelChanged()
Reimplemented from CRhinoUiOptionsListCtrlComboBox.
|
virtual |
Description: CRhinoUiOptionsListCtrlComboBox virtual override
Overridden to fill combo box with loaded linetypes
Returns: Returns true if combo box is filled with one or more of the loaded linetypes; otherwise false.
See Also: CRhinoUiOptionsListCtrlComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlLinetypeComboBox::SetIncludeByLayer() CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeByLayer()
Reimplemented from CRhinoUiOptionsListCtrlComboBox.
bool CRhinoUiOptionsListCtrlLinetypeComboBox::SetIncludeByLayer | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of "By Layer" linetype option to combo box.
Parameters: b [in] If truen then "By Layer" option is added to combo box; otherwise it is not.
Returns: Returns the previous value.
See Also: CRhinoUiOptionsListCtrlLinetypeComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeByLayer()
bool CRhinoUiOptionsListCtrlLinetypeComboBox::SetIncludeByParent | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of "By Parent" linetype option to combo box.
Parameters: b [in] If truen then "By Parent" option is added to combo box; otherwise it is not.
Returns: Returns the previous value.
See Also: CRhinoUiOptionsListCtrlLinetypeComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeByLayer() CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeByParent()
bool CRhinoUiOptionsListCtrlLinetypeComboBox::SetIncludeDefaults | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of default linetypes option to combo box.
Parameters: b [in] If truen then default linetypes are added to combo box; otherwise they are not.
Returns: Returns the previous value.
See Also: CRhinoUiOptionsListCtrlLinetypeComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeDefaults()
bool CRhinoUiOptionsListCtrlLinetypeComboBox::SetIncludeDeletedLinetypes | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of deleted linetypes to the combo box.
Parameters: b [in] If truen then deleted linetype names are added to combo box; otherwise they are not.
Returns: Returns the previous value.
See Also: CRhinoUiOptionsListCtrlColorComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeDeletedLinetypes()
bool CRhinoUiOptionsListCtrlLinetypeComboBox::SetIncludeReferenceLinetypes | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of reference linetypes to the combo box.
Parameters: b [in] If truen then reference linetype names are added to combo box; otherwise they are not.
Returns: Returns the previous value.
See Also: CRhinoUiOptionsListCtrlLinetypeComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeReferenceLinetypes()
bool CRhinoUiOptionsListCtrlLinetypeComboBox::SetUseSortedList | ( | bool | b | ) |
Description: Call this method to control what linetypes get added to the combo box. If this is set to true then the sorted and culled list displayed in the linetype dialog is used. If this set set to false then the entire linetype list is used. SetIncludeReferenceLinetypes() and SetIncludeDeletedLinetypes() are used in either case to filter the display of those linetypes.
Parameters: b [in] If true then the linetype dialog list is used.
Returns: Returns the previous value.
See Also: CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeDeletedLinetypes() CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeReferenceLinetypes() CRhinoUiOptionsListCtrlLinetypeComboBox::PopulateComboBox()
bool CRhinoUiOptionsListCtrlLinetypeComboBox::UseSortedList | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding linetypes to the combo box. If this is set to true then CRhinoLinetypeTable::GetSortedList is called otherwise all linetypes are included.
Returns: Returns true if sorted linetype list should be used; otherwise complete linetype list will be used.
See Also: CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeDeletedLinetypes() CRhinoUiOptionsListCtrlLinetypeComboBox::IncludeReferenceLinetypes() CRhinoUiOptionsListCtrlLinetypeComboBox::PopulateComboBox()