Rhino C++ API
8.5
|
#include <RhinoSdkUiOptionsListCtrlItem.h>
Public Member Functions | |
CRhinoUiOptionsListCtrlPrintWidthComboBox (LPCTSTR lpsLabel=NULL, LPCTSTR lpsText=NULL, int iIndentLevel=0, CRhinoUiComboBoxItemData::class_type ct=CRhinoUiComboBoxItemData::ct_linetype) | |
virtual | ~CRhinoUiOptionsListCtrlPrintWidthComboBox () |
bool | IncludeByLayer () const |
bool | IncludeByParent () const |
bool | IncludeDefault () const |
bool | IncludeHairline () const |
bool | IncludeNoPrint () const |
afx_msg void | OnCbnSelchange () |
afx_msg void | OnEditKillFocus () |
void | OnItemComboBoxSelChanged () |
bool | PopulateComboBox () |
bool | SetIncludeByLayer (bool b) |
bool | SetIncludeByParent (bool b) |
bool | SetIncludeDefault (bool b) |
bool | SetIncludeHairline (bool b) |
bool | SetIncludeNoPrint (bool b) |
Public Member Functions inherited from CRhinoUiOptionsListCtrlComboBox | |
CRhinoUiOptionsListCtrlComboBox (LPCTSTR lpsLabel=NULL, LPCTSTR lpsText=NULL, int iIndentLevel=0, CRhinoUiComboBoxItemData::class_type ct=CRhinoUiComboBoxItemData::ct_strings) | |
virtual | ~CRhinoUiOptionsListCtrlComboBox () |
virtual bool | BeginEditItem (CRhinoUiOptionsListCtrl &list_ctrl, const CRect rEdit, begin_edit_item_reason eir) |
bool | DrawDownArrow () const |
virtual void | MeasureItem (LPMEASUREITEMSTRUCT) |
void | MoveItemWindow (CRhinoUiOptionsListCtrl &list_ctrl, const CRect rEdit) |
virtual bool | OnComboBoxPopulated () |
virtual void | OnDrawDownArrow (CDC &dc, CRect &rItem, const CRect &rDeflate) const |
virtual void | OnDrawItem (CDC &dc, const CRect &rItem, const CRect &rDeflate) const |
afx_msg BOOL32 | OnMouseWheel (UINT nFlags, short zDelta, CPoint pt) |
virtual BOOL32 | PreTranslateMessage (MSG *pMsg) |
virtual overrides More... | |
bool | SetDrawDownArrow (bool b) |
bool | SetShowDropDownOnBeginEdit (bool b) |
void | SetText (LPCTSTR lps) |
bool | ShowDropDownOnBeginEdit () const |
Public Member Functions inherited from CRhinoUiComboBox | |
CRhinoUiComboBox () | |
virtual | ~CRhinoUiComboBox () |
int | AddColorItem (LPCTSTR lpsColorName, COLORREF color, bool link_to_color_dialog=false) |
int | AddFontItem (const LOGFONT &lf) |
int | AddLayer (const CRhinoLayer &layer) |
int | AddLinetype (const ON_Linetype &linetype) |
int | AddPrintWidthItem (double cx) |
COLORREF | ColorFromListIndex (int iIndex, COLORREF crError=CRhinoUiPaintManager::error_color) const |
bool | ColorIsByLayer (COLORREF cr) const |
bool | ColorIsByParent (COLORREF cr) const |
ON_wString | ColorNameFromColorRef (COLORREF cr) |
color_swatch_draw_style | ColorSwatchDrawStyle () const |
virtual int | CompareItem (LPCOMPAREITEMSTRUCT) |
bool | CreateAsOwnerDraw () const |
virtual void | DeleteItem (LPDELETEITEMSTRUCT) |
virtual void | DrawItem (LPDRAWITEMSTRUCT) |
int | FillLayerList (CRhinoDoc *doc, bool bUseSortedList, int(*compare)(const CRhinoLayer *, const CRhinoLayer *, void *)=NULL, int(*cull)(const CRhinoLayer *, void *)=NULL, void *p=0) |
int | FillLinetypeList (CRhinoDoc *doc, bool bUseSortedList, bool bIncludeByLayer, bool bIncludeByParent, bool bReadDefaultLinetypeFile, int(*compare)(const CRhinoLinetype *, const CRhinoLinetype *, void *)=NULL, int(*cull)(const CRhinoLinetype *, void *)=NULL, void *p=NULL) |
int | FillUsingInstalledFonts (bool bIncludeTrueType=true, bool bIncludeNonTrueType=true) |
int | FillUsingStandardColorList (bool bIncludeByLayerColor=true, bool bIncludeCustomColor=true, bool bIncludeByParentColor=true, bool bIncludeByDisplayColor=false) |
int | FillUsingStandardPrintWidths (bool bIncludeByLayer, bool bIncludeDefault, bool bIncludeByParent, bool bIncludeNoPrint, bool bIncludeHairline) |
CRhinoUiComboBoxItemData * | GetComboBoxItemData (int iIndex) const |
COLORREF | GetCurColor () const |
int | GetCurColor (COLORREF &color) const |
int | GetCurFont (LOGFONT &lf_out) |
const RhinoUiLayerComboBoxItemData * | GetCurLayer () const |
const RhinoUiLinetypeComboBoxItemData * | GetCurLinetype () const |
const RhinoUiPrintWidthComboBoxItemData * | GetCurPrintWidth () const |
int | GetFontIndex (const LOGFONT &lf) |
int | GetFontIndex (LPCTSTR lpsFontFace) |
bool | GetTextFromListIndex (int iIndex, CString &sResult) const |
class CRhinoUiPopDownLayerWnd * | LayerPopDownWindow () const |
UUID | LayerUUIDFromListIndex (int iIndex) const |
RhinoUiLinetypeComboBoxItemData * | LinetypeDataFromListIndex (int iIndex) const |
const ON_Linetype * | LinetypeReadFromFile (const UUID &uuiid) const |
UUID | LinetypeUUIDFromListIndex (int iIndex) const |
int | ListIndexFromLayerUUID (const UUID &uuid) const |
int | ListIndexFromLinetypeUUID (const UUID &uuid) const |
int | ListIndexFromPrintWidth (double cx) const |
virtual CRhinoUiComboBoxItemData * | NewCRhinoUiComboBoxItemData (CRhinoUiComboBoxItemData::class_type ct) const |
afx_msg void | OnCbnDropDown () |
afx_msg void | OnCbnSelchange () |
afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
virtual void | OnCustomColorChanged (COLORREF cr, int iItemIndex) |
afx_msg void | OnDestroy () |
afx_msg void | OnEditKillFocus () |
afx_msg void | OnEditUpdate () |
afx_msg void | OnLButtonDblClk (UINT nFlags, CPoint point) |
afx_msg void | OnLButtonDown (UINT nFlags, CPoint point) |
void | OnPrintWidthEditKillFocus () |
void | OnPrintWidthEditUpdate () |
RhinoUiPrintWidthComboBoxItemData * | PrintWidthDataFromListIndex (int iIndex) const |
double | PrintWidthFromString () |
color_swatch_draw_style | SetColorSwatchDrawStyle (color_swatch_draw_style style) |
bool | SetCreateAsOwnerDraw (bool b) |
COLORREF | SetCurColor (COLORREF cr) |
int | SetCurFont (const LOGFONT &lf) |
int | SetCurFont (LPCTSTR lpsFontFace) |
UUID | SetCurLayer (UUID uuid, COLORREF cr) |
UUID | SetCurLinetype (UUID uuid) |
double | SetCurPrintWidth (double cx) |
bool | SetCustomColor (COLORREF cr) |
Public Member Functions inherited from CRhinoUiOptionsListCtrlItem | |
CRhinoUiOptionsListCtrlItem (const CRhinoUiOptionsListCtrlItem &) | |
CRhinoUiOptionsListCtrlItem (control_type ct=ct_invalid, LPCTSTR lpsLabel=NULL, LPCTSTR lpsText=NULL, int iIndentLevel=0) | |
virtual | ~CRhinoUiOptionsListCtrlItem () |
bool | AutoDelete () const |
control_type | ControlType () const |
void | DrawItemText (CDC &dc, const CString &s, const CRect &rItem, const CRect &rDeflate) const |
bool | GetItemProperty (item_property iprop) const |
bool | GetItemState (item_state istate) const |
CRhinoUiOptionsListCtrl * | GetListCtrl () const |
int | IndentLevel () const |
bool | IsEnabled () const |
bool | IsFullRowItem () const |
bool | IsItemExpandable () const |
bool | IsItemHidden () const |
bool | IsReadOnly () const |
virtual int | ItemHeight () const |
unsigned int | ItemID () const |
LPCTSTR | Label () const |
COLORREF | LabelBackGroundColor () const |
COLORREF | LabelTextColor () const |
const CRhinoUiOptionsListCtrlItem & | operator= (const CRhinoUiOptionsListCtrlItem &) |
int | ParentIndex () const |
bool | SetAutoDelete (bool b) |
int | SetIndentLevel (int iIndentLevel) |
bool | SetIsEnabled (bool b) |
bool | SetIsFullRowItem (bool b) |
bool | SetIsReadOnly (bool b) |
bool | SetItemProperty (item_property iprop, bool bEnabled) |
bool | SetItemState (item_state istate, bool bEnabled) |
bool | SetLabel (LPCTSTR lpsLabel) |
COLORREF | SetLabelBackGroundColor (COLORREF cr) |
COLORREF | SetLabelTextColor (COLORREF cr) |
bool | SetParentIndex (int iItem) |
bool | SetUseLabelColors (bool b) |
virtual LPCTSTR | Text () const |
bool | UseLabelColors () const |
CRhinoUiOptionsListCtrlPrintWidthComboBox
Description: This control will display a simple combo box containing a list loaded line types.
CRhinoUiOptionsListCtrlPrintWidthComboBox::CRhinoUiOptionsListCtrlPrintWidthComboBox | ( | 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 CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeByLayer | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding width options to combo box.
Returns: Returns true if "By Layer" option should be added to width list; otherwise false.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeByLayer()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::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 width list; otherwise false.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeByParent()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeDefault | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding plot width options to combo box.
Returns: Returns true if default plot width option should be added to the width list; otherwise false.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeDefault()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeHairline | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding plot width options to combo box.
Returns: Returns true if "Hairline" option should be added to the width list; otherwise false.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeNoPrint()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeNoPrint | ( | ) | const |
Description: This method is called by PopulateComboBox() when adding plot width options to combo box.
Returns: Returns true if "No Print" option should be added to the end of the width list; otherwise false.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeNoPrint()
afx_msg void CRhinoUiOptionsListCtrlPrintWidthComboBox::OnCbnSelchange | ( | ) |
afx_msg void CRhinoUiOptionsListCtrlPrintWidthComboBox::OnEditKillFocus | ( | ) |
|
virtual |
Description: CRhinoUiOptionsListCtrlComboBox override, calls base class.
Overridden to save currently selected plot width option
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() CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeByLayer() CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeByLayer()
Reimplemented from CRhinoUiOptionsListCtrlComboBox.
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeByLayer | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of "By Layer" width 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: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeByLayer()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeByParent | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of "By Parent" width 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: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeByLayer() CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeByParent()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeDefault | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of the default option to the width list
Parameters: b [in] If true then default option is added to the width list; otherwise is is not.
Returns: Returns the previous value.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeDefault()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeHairline | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of the "Hairline" option to the width list
Parameters: b [in] If true then "Hairline" option is added to the width list; otherwise is is not.
Returns: Returns the previous value.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeNoPrint()
bool CRhinoUiOptionsListCtrlPrintWidthComboBox::SetIncludeNoPrint | ( | bool | b | ) |
Description: Call this method to allow or disallow adding of the "No Print" option to the end of the width list
Parameters: b [in] If true then "No Print" option is added to the end of the width list; otherwise is is not.
Returns: Returns the previous value.
See Also: CRhinoUiOptionsListCtrlPrintWidthComboBox::PopulateComboBox() CRhinoUiOptionsListCtrlPrintWidthComboBox::IncludeNoPrint()