Loading...
Searching...
No Matches
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.
 
TypeRef elementType () const
 
uint64_t elementCount () const
 Get the desired element count from the accepted dialog.
 
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
nodiscard

Get the desired start address from the accepted dialog.

◆ elementType()

TypeRef CreateArrayDialog::elementType ( ) const
nodiscard

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
nodiscard

Get the desired element count from the accepted dialog.

◆ accept()

void CreateArrayDialog::accept ( )
override

◆ reject()

void CreateArrayDialog::reject ( )
override