File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,9 @@ class CreateArrayDialog : public QDialog
12
12
BinaryViewRef m_data;
13
13
14
14
uint64_t m_startAddress;
15
+ size_t m_size;
15
16
TypeRef m_elementType;
16
- uint64_t m_elementCount;
17
+ uint64_t m_elementCount{} ;
17
18
18
19
QLineEdit* m_startField;
19
20
QComboBox* m_typeDropdown;
@@ -22,15 +23,16 @@ class CreateArrayDialog : public QDialog
22
23
QPushButton* m_cancelButton;
23
24
QPushButton* m_createButton;
24
25
25
- void validate ();
26
+ void update ();
27
+ size_t guessElementCount (size_t elementWidth);
26
28
27
29
public:
28
- explicit CreateArrayDialog (BinaryViewRef data, QWidget* parent = nullptr );
30
+ explicit CreateArrayDialog (BinaryViewRef data, BNAddressRange selection, QWidget* parent = nullptr );
29
31
30
32
// / Set the initial start address, element type, and element count for
31
33
// / the dialog. The element type may be null if no default is desired; a
32
34
// / default will be chosen by the dialog.
33
- void setInitialState (uint64_t start, const TypeRef& elementType, uint64_t count );
35
+ void setInitialState ();
34
36
35
37
// / Get the desired start address from the accepted dialog.
36
38
[[nodiscard]] uint64_t startAddress () const ;
You can’t perform that action at this time.
0 commit comments