CreateArrayDialog Class Reference

Public Member Functions

 CreateArrayDialog (BinaryViewRef data, BNAddressRange selection, QWidget *parent=nullptr)
 
void setInitialState ()
 
uint64_t startAddress () const
 Get the desired start address from the accepted dialog. More...
 
TypeRef elementType () const
 
uint64_t elementCount () const
 Get the desired element count from the accepted dialog. More...
 
void accept () override
 
void reject () override
 

Constructor & Destructor Documentation

◆ CreateArrayDialog()

CreateArrayDialog::CreateArrayDialog ( BinaryViewRef  data,
BNAddressRange  selection,
QWidget *  parent = nullptr 
)
explicit

Member Function Documentation

◆ setInitialState()

void CreateArrayDialog::setInitialState ( )

Set the initial start address, element type, and element count for the dialog. The element type may be null if no default is desired; a default will be chosen by the dialog.

◆ startAddress()

uint64_t CreateArrayDialog::startAddress ( ) const

Get the desired start address from the accepted dialog.

◆ elementType()

TypeRef CreateArrayDialog::elementType ( ) const

Get the desired array element type from the accepted dialog.

The returned value will NOT be of `Type::ArrayType(...)`, but rather the element inside.

◆ elementCount()

uint64_t CreateArrayDialog::elementCount ( ) const

Get the desired element count from the accepted dialog.

◆ accept()

void CreateArrayDialog::accept ( )
override

◆ reject()

void CreateArrayDialog::reject ( )
override