2013-03-19 08:48:50 +00:00
|
|
|
@interface CocoaHexEdit : NSScrollView {
|
|
|
|
@public
|
|
|
|
phoenix::HexEdit *hexEdit;
|
|
|
|
}
|
2013-03-21 12:59:01 +00:00
|
|
|
-(id) initWith:(phoenix::HexEdit&)hexEdit;
|
2013-03-19 08:48:50 +00:00
|
|
|
@end
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
namespace phoenix {
|
|
|
|
|
|
|
|
struct pHexEdit : public pWidget {
|
|
|
|
HexEdit &hexEdit;
|
2013-03-21 12:59:01 +00:00
|
|
|
CocoaHexEdit *cocoaHexEdit = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
void setColumns(unsigned columns);
|
|
|
|
void setLength(unsigned length);
|
|
|
|
void setOffset(unsigned offset);
|
|
|
|
void setRows(unsigned rows);
|
|
|
|
void update();
|
|
|
|
|
|
|
|
pHexEdit(HexEdit &hexEdit) : pWidget(hexEdit), hexEdit(hexEdit) {}
|
|
|
|
void constructor();
|
2013-03-19 08:48:50 +00:00
|
|
|
void destructor();
|
2013-03-15 13:11:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|