1107 :
1108wxDialog(pParent, wxID_ANY, _T("View Tag"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
1109{
1113
1115
1117 wxString sTagType;
1118 std::string desc;
1119
1120 if (pTag) {
1122 sTagType = _T("Array of ");
1123 }
1124 else {
1125 sTagType.Empty();
1126 }
1128
1129 wxBeginBusyCursor();
1131 wxEndBusyCursor();
1132 }
1133 else if (pIcc) {
1135 sTagType = "***Invalid Tag!***";
1136
1137 if (pIO) {
1138 std::string dump;
1140 delete pIO;
1141 desc = "Data contents of tag:\n\n";
1142 desc += dump;
1143 }
1144 else {
1145 desc = "Invalid Tag Directory Entry!\n";
1146 }
1147 }
1148 else {
1149 desc = "Invalid Tag Entry!\n";
1150 sTagType = "***Invalid Tag***";
1151 }
1152
1153 wxSizer *sizer = new wxBoxSizer(wxVERTICAL);
1154
1155 wxSizer *sizerRow1 = new wxBoxSizer(wxHORIZONTAL);
1156 wxSize winSize = wxDefaultSize;
1157
1158 winSize.SetWidth(100);
1159 wxStaticText *labelSig = new wxStaticText(this, wxID_ANY, _T("Tag Signature:"), wxDefaultPosition, winSize, wxALIGN_RIGHT);
1160
1161 winSize.SetWidth(400);
1162 wxStaticText *textSig = new wxStaticText(this, wxID_ANY, sTagSignature, wxDefaultPosition, winSize, wxSTATIC_BORDER|wxTE_RIGHT);
1163
1164 sizerRow1->Add(labelSig, 0, wxALL | wxALIGN_CENTRE_VERTICAL, 5);
1165 sizerRow1->Add(textSig, 1, wxALL | wxALIGN_CENTRE_VERTICAL, 5);
1166
1167 sizer->Add(sizerRow1, wxSizerFlags().Expand());
1168
1169 wxSizer *sizerRow2 = new wxBoxSizer(wxHORIZONTAL);
1170 winSize = wxDefaultSize;
1171
1172 winSize.SetWidth(100);
1173 wxStaticText *labelType = new wxStaticText(this, wxID_ANY, _T("Tag Type:"), wxDefaultPosition, winSize, wxALIGN_RIGHT);
1174
1175 winSize.SetWidth(400);
1176 wxStaticText *textType = new wxStaticText(this, wxID_ANY, sTagType, wxDefaultPosition, winSize, wxSTATIC_BORDER|wxTE_RIGHT);
1177
1178 sizerRow2->Add(labelType, 0, wxALL | wxALIGN_CENTRE_VERTICAL, 5);
1179 sizerRow2->Add(textType, 1, wxALL | wxALIGN_CENTRE_VERTICAL, 5);
1180
1181 sizer->Add(sizerRow2, wxSizerFlags().Expand());
1182
1183 winSize = wxSize(500, 400);
1184 wxTextCtrl *textReport = new wxTextCtrl(this, wxID_ANY, wxString(desc.c_str()), wxDefaultPosition, winSize,
1185 wxTE_MULTILINE |wxTE_READONLY | wxTE_RICH| wxTE_DONTWRAP);
1186
1187 sizer->Add(textReport, wxSizerFlags(1).Expand());
1188
1189 SetSizer(sizer);
1190 sizer->Fit(this);
1191}
void icMemDump(std::string &sDump, void *pBuf, icUInt32Number nNum)
const icChar * GetTagSigName(icTagSignature sig)
const icChar * GetTagTypeSigName(icTagTypeSignature sig)
icUInt8Number * GetData()
virtual icInt32Number GetLength()
virtual icTagTypeSignature GetType() const
Function: GetType()
virtual void Describe(std::string &sDescription, int nVerboseness=0)
Function: Describe(sDescription) Each derived tag will implement it's own Describe() function.
virtual bool IsArrayType()