NX Open C++ Reference Guide
Public Types | Public Member Functions | List of all members
NXOpen::UIStyler::OptionToggle Class Reference

Represents a OptionToggle for UI Styler
Created in NX5.0.0. More...

Inheritance diagram for NXOpen::UIStyler::OptionToggle:
NXOpen::UIStyler::StylerItem NXOpen::TransientObject

Public Types

typedef NXOpen::Callback1
< NXOpen::UIStyler::DialogState,
NXOpen::UIStyler::StylerEvent * > 
Activate
 Called when a dialog user selects an option from the menu
Created in NX5.0.0. More...
 
typedef NXOpen::Callback1
< NXOpen::UIStyler::DialogState,
NXOpen::UIStyler::StylerEvent * > 
ValueChanged
 Called when a dialog user clicks on the button or presses the spacebar when the button has keyboard focus. More...
 
- Public Types inherited from NXOpen::UIStyler::StylerItem
enum  ItemType {
  ItemTypeInvalidType = -1, ItemTypeActionButton, ItemTypeDialog, ItemTypeRadioBox,
  ItemTypeReal, ItemTypeScaleReal, ItemTypeBitmap, ItemTypeRowColumn,
  ItemTypeButtonLayout, ItemTypeScrolledWindow, ItemTypeColorTool, ItemTypeSelectionBox,
  ItemTypeSeparator, ItemTypeSingleSelectionList, ItemTypeString, ItemTypeBeginGroup,
  ItemTypeInteger, ItemTypeScaleInteger, ItemTypeMultiList, ItemTypeLabel,
  ItemTypeMultiLineText, ItemTypeTabControl, ItemTypeOptionMenu, ItemTypeToggle,
  ItemTypeOptionToggle, ItemTypeToolPalette, ItemTypeWideString, ItemTypePropertyPage,
  ItemTypeCollapsibleGroup
}
 Describes kind of action to be taken from callbac. More...
 

Public Member Functions

void AddActivateHandler (const NXOpen::UIStyler::OptionToggle::Activate &activateevent, bool isDialogLaunchingEvent)
 Registers activate callback. More...
 
void AddValueChangedHandler (const NXOpen::UIStyler::OptionToggle::ValueChanged &valuechangedevent, bool isDialogLaunchingEvent)
 Registers value change callback. More...
 
std::vector< NXStringGetItems ()
 Returns the items. More...
 
int GetItemValue (bool *setCheck)
 Returns item value. More...
 
bool GetSensitivity ()
 Returns the sesitivity. More...
 
void SetBitmaps (std::vector< NXString > &bitmaps)
 Set bitmaps
Created in NX5.0.0. More...
 
void SetDefaultAction ()
 Sets default action
Created in NX5.0.0. More...
 
void SetItems (std::vector< NXString > &strListArray)
 Sets items in the array
Created in NX5.0.0. More...
 
void SetItemValue (int subitemIndex, bool setCheck)
 Sets item value
Created in NX5.0.0. More...
 
void SetLabel (const NXString &strLabel)
 Sets label
Created in NX5.0.0. More...
 
void SetLabel (const char *strLabel)
 Sets label
Created in NX5.0.0. More...
 
void SetSensitivity (int subitemIndex, bool type)
 Set the sesitivity
Created in NX5.0.0. More...
 
void SetVisibility (bool type)
 Sets the visibility
Created in NX5.0.0. More...
 
bool Visibility ()
 Returns the visibility
Created in NX5.0.0. More...
 
- Public Member Functions inherited from NXOpen::UIStyler::StylerItem
NXOpen::UIStyler::StylerItem::ItemType GetItemType ()
 Gets the dialog item type. More...
 
NXOpen::UIStyler::AttachmentInitializeAttachment ()
 Returns initialized dialog item attachment information. More...
 
bool IsEqualTo (NXOpen::UIStyler::StylerItem *itemToCompare)
 Equates two styler items. More...
 
void SetAttachment (NXOpen::UIStyler::Attachment *attachment)
 Specifies the updated dialog item attachment information
Created in NX5.0.0. More...
 
virtual ~StylerItem ()
 Free resources associated with the instance. More...
 
- Public Member Functions inherited from NXOpen::TransientObject
void * GetHandle ()
 Handle of the internal object represented by this object. More...
 

Detailed Description

Represents a OptionToggle for UI Styler
Created in NX5.0.0.


Member Typedef Documentation

Called when a dialog user selects an option from the menu
Created in NX5.0.0.



License requirements : None

Called when a dialog user clicks on the button or presses the spacebar when the button has keyboard focus.

Do not terminate the dialog with a value-changed callback. The dialog should always return UF_UI_CB_CONTINUE_DIALOG.
Created in NX5.0.0.

License requirements : None

Member Function Documentation

void NXOpen::UIStyler::OptionToggle::AddActivateHandler ( const NXOpen::UIStyler::OptionToggle::Activate activateevent,
bool  isDialogLaunchingEvent 
)

Registers activate callback.

This method should be called before calling UIStyler::Dialog::Show or UIStyler::Dialog::RegisterWithUiMenu
Created in NX5.0.0.

License requirements : None

Parameters
activateeventCallback for activate event
isDialogLaunchingEventTRUE if dialog is going to launch, FALSE if not
void NXOpen::UIStyler::OptionToggle::AddValueChangedHandler ( const NXOpen::UIStyler::OptionToggle::ValueChanged valuechangedevent,
bool  isDialogLaunchingEvent 
)

Registers value change callback.

This method should be called before calling UIStyler::Dialog::Show or UIStyler::Dialog::RegisterWithUiMenu
Created in NX5.0.0.

License requirements : None

Parameters
valuechangedeventCallback for value changed event
isDialogLaunchingEventTRUE if dialog is going to launch, FALSE if not
std::vector<NXString> NXOpen::UIStyler::OptionToggle::GetItems ( )

Returns the items.

Returns
An array of items
Created in NX5.0.0.

License requirements : None
int NXOpen::UIStyler::OptionToggle::GetItemValue ( bool *  setCheck)

Returns item value.

Returns
Item value
Created in NX5.0.0.

License requirements : None
Parameters
setCheckset check
bool NXOpen::UIStyler::OptionToggle::GetSensitivity ( )

Returns the sesitivity.

Returns

Created in NX5.0.0.

License requirements : None
void NXOpen::UIStyler::OptionToggle::SetBitmaps ( std::vector< NXString > &  bitmaps)

Set bitmaps
Created in NX5.0.0.



License requirements : None

Parameters
bitmapsAn array of one or more bitmap filenames. If all bitmaps for the option menu reside in the same file, specify an array of just one entry, which contains the bitmap filename for this attribute. All existing choices for the option menu remain intact when this attribute is set. Only the bitmaps are changed. Note that the number of bitmaps must match the number of existing choices.
void NXOpen::UIStyler::OptionToggle::SetDefaultAction ( )

Sets default action
Created in NX5.0.0.



License requirements : None

void NXOpen::UIStyler::OptionToggle::SetItems ( std::vector< NXString > &  strListArray)

Sets items in the array
Created in NX5.0.0.



License requirements : None

Parameters
strListArrayAn array of new choices to be used for the dialog item. Note that this removes all existing choices (both text and bitmaps).
void NXOpen::UIStyler::OptionToggle::SetItemValue ( int  subitemIndex,
bool  setCheck 
)

Sets item value
Created in NX5.0.0.



License requirements : None

Parameters
subitemIndexZero-based index indicating the choice to be selected. It must be in the range of existing choices.
setCheckTRUE if set, FALSE if unset.
void NXOpen::UIStyler::OptionToggle::SetLabel ( const NXString strLabel)

Sets label
Created in NX5.0.0.



License requirements : None

Parameters
strLabelText to be set for the tool tip.
void NXOpen::UIStyler::OptionToggle::SetLabel ( const char *  strLabel)

Sets label
Created in NX5.0.0.



License requirements : None

Parameters
strLabelText to be set for the tool tip.
void NXOpen::UIStyler::OptionToggle::SetSensitivity ( int  subitemIndex,
bool  type 
)

Set the sesitivity
Created in NX5.0.0.



License requirements : None

Parameters
subitemIndexIf the entire dialog item should change to the new Sensitivity state, set this field to UF_STYLER_NO_SUB_INDEX. If only one sub-item should change to the new sensitivity state, set this field to its zero-based index.
typeTRUE if sensitive, FALSE if insensitive
void NXOpen::UIStyler::OptionToggle::SetVisibility ( bool  type)

Sets the visibility
Created in NX5.0.0.



License requirements : None

Parameters
typeTRUE if visible, FALSE if invisible
bool NXOpen::UIStyler::OptionToggle::Visibility ( )

Returns the visibility
Created in NX5.0.0.



License requirements : None


The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.