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

Represents a Dialog
Created in NX6.0.0. More...

Inheritance diagram for NXOpen::BlockStyler::BlockDialog:
NXOpen::TransientObject

Public Types

typedef NXOpen::Callback0< int > Apply
 Apply callback
Created in NX6.0.0. More...
 
typedef NXOpen::Callback0< int > Cancel
 Cancel callback
Created in NX6.0.0. More...
 
typedef NXOpen::Callback0< int > Close
 Close callback
Created in NX8.5.0. More...
 
enum  DialogMode { DialogModeCreate, DialogModeEdit }
 Datatype containing options for showing the dialog. More...
 
typedef NXOpen::Callback0< void > DialogShown
 Dialog Shown callback
Created in NX6.0.0. More...
 
typedef NXOpen::Callback0< bool > EnableOKButton
 Callback to enable OK and Apply buttons of the dialog. More...
 
typedef NXOpen::Callback2< int,
NXOpen::BlockStyler::UIBlock
*, NXOpen::TaggedObject * > 
Filter
 Filter callback
Created in NX6.0.0. More...
 
typedef NXOpen::Callback2
< void,
NXOpen::BlockStyler::UIBlock
*, bool > 
FocusNotify
 Focus notify callback. More...
 
typedef NXOpen::Callback0< void > Initialize
 Initialize callback
Created in NX6.0.0. More...
 
typedef NXOpen::Callback2
< void,
NXOpen::BlockStyler::UIBlock
*, bool > 
KeyboardFocusNotify
 Keyboard focus notify callback. More...
 
typedef NXOpen::Callback0< int > Ok
 Ok callback
Created in NX6.0.0. More...
 
typedef NXOpen::Callback1< int,
NXOpen::BlockStyler::UIBlock * > 
Update
 Update callback
Created in NX6.0.0. More...
 

Public Member Functions

void AddApplyHandler (const NXOpen::BlockStyler::BlockDialog::Apply &applyCb)
 Adds Apply callback handler to the dialog. More...
 
void AddCancelHandler (const NXOpen::BlockStyler::BlockDialog::Cancel &cancelCb)
 Adds Cancel callback handler to the dialog. More...
 
void AddCloseHandler (const NXOpen::BlockStyler::BlockDialog::Close &closeCb)
 Adds Close callback handler to the dialog. More...
 
void AddDialogShownHandler (const NXOpen::BlockStyler::BlockDialog::DialogShown &cb)
 Adds Dialog Shown callback handler to the dialog. More...
 
void AddEnableOKButtonHandler (const NXOpen::BlockStyler::BlockDialog::EnableOKButton &cb)
 Adds enable-ok-button callback handler to the dialog. More...
 
void AddFilterHandler (const NXOpen::BlockStyler::BlockDialog::Filter &cb)
 Adds Filter callback handler to the dialog. More...
 
void AddFocusNotifyHandler (const NXOpen::BlockStyler::BlockDialog::FocusNotify &cb)
 Adds focus notify callback handler to the dialog. More...
 
void AddInitializeHandler (const NXOpen::BlockStyler::BlockDialog::Initialize &cb)
 Adds Initialize callback handler to the dialog. More...
 
void AddKeyboardFocusNotifyHandler (const NXOpen::BlockStyler::BlockDialog::KeyboardFocusNotify &cb)
 Adds keyboard focus notify callback handler to the dialog. More...
 
void AddOkHandler (const NXOpen::BlockStyler::BlockDialog::Ok &okCb)
 Adds Ok callback handler to the dialog. More...
 
void AddUpdateHandler (const NXOpen::BlockStyler::BlockDialog::Update &cb)
 Adds Update callback handler to the dialog. More...
 
NXOpen::BlockStyler::PropertyListGetBlockProperties (const NXString &blockName)
 Gets the properties of a block. More...
 
NXOpen::BlockStyler::PropertyListGetBlockProperties (const char *blockName)
 Gets the properties of a block. More...
 
void PerformApply ()
 Performs an Apply and restarts the dialog. More...
 
void RegisterUserDefinedUIBlock (NXOpen::BlockStyler::BlockDialog *blockDialog, const NXString &blockId)
 Registers the reusable block with the dialog
Created in NX8.0.0. More...
 
void RegisterUserDefinedUIBlock (NXOpen::BlockStyler::BlockDialog *blockDialog, const char *blockId)
 Registers the reusable block with the dialog
Created in NX8.0.0. More...
 
NXOpen::Selection::Response Show ()
 Shows the dialog in BlockStyler::BlockDialog::DialogModeCreate mode. More...
 
NXOpen::Selection::Response Show (NXOpen::BlockStyler::BlockDialog::DialogMode dialogMode)
 Shows the dialog based upon the mode specified in BlockStyler::BlockDialog::DialogMode . More...
 
NXOpen::BlockStyler::CompositeBlockTopBlock ()
 Returns a composite block that contains all the blocks in the dialog
Created in NX6.0.0. More...
 
virtual ~BlockDialog ()
 Frees the object from memory. More...
 
- Public Member Functions inherited from NXOpen::TransientObject
void * GetHandle ()
 Handle of the internal object represented by this object. More...
 

Detailed Description

Represents a Dialog
Created in NX6.0.0.


Member Typedef Documentation

Apply callback
Created in NX6.0.0.



License requirements : None

Cancel callback
Created in NX6.0.0.



License requirements : None

Close callback
Created in NX8.5.0.



License requirements : None

Dialog Shown callback
Created in NX6.0.0.



License requirements : None

Callback to enable OK and Apply buttons of the dialog.

Return True or False to enable or disable the buttons respectively.
Created in NX7.5.3.

License requirements : None

Filter callback
Created in NX6.0.0.



License requirements : None

Focus notify callback.

This is invoked when any selection block on the dialog receives focus.


Created in NX6.0.2.

License requirements : None

Initialize callback
Created in NX6.0.0.



License requirements : None

Keyboard focus notify callback.

This is invoked when any block having keyboard input such as Integer block receives focus.


Created in NX7.5.0.

License requirements : None

Ok callback
Created in NX6.0.0.



License requirements : None

Update callback
Created in NX6.0.0.



License requirements : None

Member Enumeration Documentation

Datatype containing options for showing the dialog.

Enumerator
DialogModeCreate 

When the user presses Ok or Apply on the dialog, the user's inputs are saved in dialog memory and the next time that the dialog is shown in Create mode, the dialog is initialized using the user's previous inputs.

DialogModeEdit 

The Apply button is not shown.

The user's inputs are not saved in dialog memory and the dialog is not initialized with the user's previous inputs.

Constructor & Destructor Documentation

virtual NXOpen::BlockStyler::BlockDialog::~BlockDialog ( )
virtual

Frees the object from memory.

After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.


Created in NX6.0.0.

License requirements : None

Member Function Documentation

void NXOpen::BlockStyler::BlockDialog::AddApplyHandler ( const NXOpen::BlockStyler::BlockDialog::Apply applyCb)

Adds Apply callback handler to the dialog.


Created in NX6.0.0.

License requirements : None

Parameters
applyCbapply cb
void NXOpen::BlockStyler::BlockDialog::AddCancelHandler ( const NXOpen::BlockStyler::BlockDialog::Cancel cancelCb)

Adds Cancel callback handler to the dialog.


Created in NX6.0.0.

License requirements : None

Parameters
cancelCbcancel cb
void NXOpen::BlockStyler::BlockDialog::AddCloseHandler ( const NXOpen::BlockStyler::BlockDialog::Close closeCb)

Adds Close callback handler to the dialog.


Created in NX8.5.0.

License requirements : None

Parameters
closeCbclose cb
void NXOpen::BlockStyler::BlockDialog::AddDialogShownHandler ( const NXOpen::BlockStyler::BlockDialog::DialogShown cb)

Adds Dialog Shown callback handler to the dialog.

The callback function is called before the dialog is shown. The callback can be used to overwrite changes that are made during dialog initialization when user inputs saved in dialog memory are applied to the dialog.
Created in NX6.0.0.

License requirements : None

Parameters
cbcb
void NXOpen::BlockStyler::BlockDialog::AddEnableOKButtonHandler ( const NXOpen::BlockStyler::BlockDialog::EnableOKButton cb)

Adds enable-ok-button callback handler to the dialog.


Created in NX7.5.3.

License requirements : None

Parameters
cbcb
void NXOpen::BlockStyler::BlockDialog::AddFilterHandler ( const NXOpen::BlockStyler::BlockDialog::Filter cb)

Adds Filter callback handler to the dialog.


Created in NX6.0.0.

License requirements : None

Parameters
cbcb
void NXOpen::BlockStyler::BlockDialog::AddFocusNotifyHandler ( const NXOpen::BlockStyler::BlockDialog::FocusNotify cb)

Adds focus notify callback handler to the dialog.


Created in NX6.0.2.

License requirements : None

Parameters
cbcb
void NXOpen::BlockStyler::BlockDialog::AddInitializeHandler ( const NXOpen::BlockStyler::BlockDialog::Initialize cb)

Adds Initialize callback handler to the dialog.

The callback function is called while the dialog is being initialized. The callback is called before applying any user inputs saved in dialog memory.
Created in NX6.0.0.

License requirements : None

Parameters
cbcb
void NXOpen::BlockStyler::BlockDialog::AddKeyboardFocusNotifyHandler ( const NXOpen::BlockStyler::BlockDialog::KeyboardFocusNotify cb)

Adds keyboard focus notify callback handler to the dialog.


Created in NX7.5.0.

License requirements : None

Parameters
cbcb
void NXOpen::BlockStyler::BlockDialog::AddOkHandler ( const NXOpen::BlockStyler::BlockDialog::Ok okCb)

Adds Ok callback handler to the dialog.


Created in NX6.0.0.

License requirements : None

Parameters
okCbok cb
void NXOpen::BlockStyler::BlockDialog::AddUpdateHandler ( const NXOpen::BlockStyler::BlockDialog::Update cb)

Adds Update callback handler to the dialog.


Created in NX6.0.0.

License requirements : None

Parameters
cbcb
NXOpen::BlockStyler::PropertyList* NXOpen::BlockStyler::BlockDialog::GetBlockProperties ( const NXString blockName)

Gets the properties of a block.

Returns

Created in NX8.5.0.

License requirements : None
Parameters
blockNameBlockID of the block
NXOpen::BlockStyler::PropertyList* NXOpen::BlockStyler::BlockDialog::GetBlockProperties ( const char *  blockName)

Gets the properties of a block.

Returns

Created in NX8.5.0.

License requirements : None
Parameters
blockNameBlockID of the block
void NXOpen::BlockStyler::BlockDialog::PerformApply ( )

Performs an Apply and restarts the dialog.

This invokes the apply callback on the dialog. This method is meant to be called when the dialog is shown and while inside the update callback.
Created in NX6.0.0.

License requirements : None

void NXOpen::BlockStyler::BlockDialog::RegisterUserDefinedUIBlock ( NXOpen::BlockStyler::BlockDialog blockDialog,
const NXString blockId 
)

Registers the reusable block with the dialog
Created in NX8.0.0.



License requirements : None

Parameters
blockDialogDialog which contains the reusable block
blockId"Block ID" of reusable block
void NXOpen::BlockStyler::BlockDialog::RegisterUserDefinedUIBlock ( NXOpen::BlockStyler::BlockDialog blockDialog,
const char *  blockId 
)

Registers the reusable block with the dialog
Created in NX8.0.0.



License requirements : None

Parameters
blockDialogDialog which contains the reusable block
blockId"Block ID" of reusable block
NXOpen::Selection::Response NXOpen::BlockStyler::BlockDialog::Show ( )

Shows the dialog in BlockStyler::BlockDialog::DialogModeCreate mode.

This method will not return until the dialog is closed, which typically is when the dialog's OK or Cancel button is pressed.

Returns

Created in NX6.0.0.

License requirements : None
NXOpen::Selection::Response NXOpen::BlockStyler::BlockDialog::Show ( NXOpen::BlockStyler::BlockDialog::DialogMode  dialogMode)

Shows the dialog based upon the mode specified in BlockStyler::BlockDialog::DialogMode .

This method will not return until the dialog is closed, which typically is when the dialog's OK or Cancel button is pressed.

Returns

Created in NX6.0.0.

License requirements : None
Parameters
dialogModeDialog mode as Create or Edit. BlockStyler::BlockDialog::DialogMode
NXOpen::BlockStyler::CompositeBlock* NXOpen::BlockStyler::BlockDialog::TopBlock ( )

Returns a composite block that contains all the blocks in the dialog
Created in NX6.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.