1 #include <creaImageIOWxPACSConnectionPanel.h>
2 #include <creaImageIOPACSConnection.h>
3 #include <creaImageIOSystem.h>
8 WxPACSConnectionPanel::WxPACSConnectionPanel(wxWindow *parent, wxDialog* dial, WxGimmickView* view)
10 -1, wxDefaultPosition,
22 GimmickDebugMessage(1,"WxPACSConnectionPanel::WxPACSConnectionPanel"
24 wxStaticText * dicId=new wxStaticText(this,-1,_T(" DICOM Identification: "), wxPoint(5,5));
25 wxStaticText * aet=new wxStaticText(this,-1,_T(" AETitle: "), wxPoint(5,25));
26 aeTitle=new wxTextCtrl(this, wxID_ANY, _T("MyAeTitle"), wxPoint(75,25), wxSize(220,20));
28 wxStaticText * pn=new wxStaticText(this,-1,_T(" Port Number: "), wxPoint(5,53));
29 pNumber=new wxTextCtrl(this, wxID_ANY, _T("3306"), wxPoint(75,50), wxSize(220,20));
30 wxStaticText * adv1=new wxStaticText(this,-1,_T(" (1 - 131072) "), wxPoint(300,53));
32 wxStaticText * ad=new wxStaticText(this,-1,_T(" Address: "), wxPoint(5,80));
33 address=new wxTextCtrl(this, wxID_ANY, _T("localhost"), wxPoint(75,75), wxSize(220,20));
35 wxButton *query = new wxButton(this,wxID_ANY,_T("Query PACS Server"), wxPoint(5,110) );
36 Connect( query->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxPACSConnectionPanel::OnQueryPACS );
42 WxPACSConnectionPanel::~WxPACSConnectionPanel()
44 GimmickDebugMessage(1,"WxPACSConnectionPanel::~WxPACSConnectionPanel"
48 void WxPACSConnectionPanel::OnQueryPACS(wxCommandEvent& event)
50 PACSConnection* pc=new PACSConnection(crea::wx2std(aeTitle->GetValue()));
51 //mView->OnListenerCallback(crea::wx2std(drives->GetValue()),addFiles, removeFiles);
55 //======================================================================
57 //======================================================================
59 } // EO namespace creaImageIO