1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
/// DicomViewer.h
/** Displays DICOM header information in a wxFrame.
*/
#ifndef DICOM_VIEWER_H
#define DICOM_VIEWER_H
#include <string>
#include <wx/fdrepdlg.h>
#include "DicomFile.h"
class wxListView;
class CSAViewer : public wxFrame
{
public:
CSAViewer(wxWindow* parent, const wxString& title,
const std::string& header);
private:
wxTextCtrl* mTextCtrl;
void AddHeader(const std::string& header);
void AddNext(std::istream& in);
};
class DicomViewer: public wxFrame
{
public:
DicomViewer(wxWindow* parent, const char* filename);
void OnSave(wxCommandEvent& event);
void OnQuit(wxCommandEvent& event);
void OnCsaImage(wxCommandEvent& event);
void OnCsaSeries(wxCommandEvent& event);
void ShowFindDialog(wxCommandEvent& event);
void OnFindDialog(wxFindDialogEvent& event);
void OnCloseFindDialog(wxFindDialogEvent& event);
protected:
DECLARE_EVENT_TABLE()
private:
jcs::DicomFile mDicomFile;
wxListView* mpDicomList;
void InitList();
int AddElement(jcs::DicomElement& e);
wxString mGetItemText(long index, int column) const;
std::string::size_type mDescLength;
};
#endif
|