2232
2243
m_pWorkspacePanel->Layout();
2233
2244
bSizer1102->Fit( m_pWorkspacePanel );
2234
2245
m_pMainNoteBook->AddPage( m_pWorkspacePanel, _("Workspace"), false );
2235
m_pVisualizationPanel = new wxPanel( m_pMainNoteBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
2247
bSizer11->Add( m_pMainNoteBook, 1, wxEXPAND|wxTOP, 5 );
2249
m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
2250
wxBoxSizer* bSizer31;
2251
bSizer31 = new wxBoxSizer( wxHORIZONTAL );
2254
bSizer31->Add( 0, 0, 1, wxEXPAND, 5 );
2256
m_button37 = new wxButton( m_pFooter, wxID_OK, _("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
2257
bSizer31->Add( m_button37, 0, wxALL, 5 );
2259
m_button38 = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
2260
bSizer31->Add( m_button38, 0, wxALL, 5 );
2262
m_pFooter->SetSizer( bSizer31 );
2263
m_pFooter->Layout();
2264
bSizer31->Fit( m_pFooter );
2265
bSizer11->Add( m_pFooter, 0, wxEXPAND, 5 );
2267
this->SetSizer( bSizer11 );
2270
this->Centre( wxBOTH );
2273
m_pNoteBookWindows->Connect( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, wxAuiNotebookEventHandler( EditHangingProtocolDialogBase::OnPageChanging ), NULL, this );
2274
m_pNoteBookWindows->Connect( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE, wxAuiNotebookEventHandler( EditHangingProtocolDialogBase::OnPageClose ), NULL, this );
2275
m_button37->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditHangingProtocolDialogBase::OnOkClick ), NULL, this );
2276
m_button38->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditHangingProtocolDialogBase::OnCancelClick ), NULL, this );
2279
EditHangingProtocolDialogBase::~EditHangingProtocolDialogBase()
2281
// Disconnect Events
2282
m_pNoteBookWindows->Disconnect( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, wxAuiNotebookEventHandler( EditHangingProtocolDialogBase::OnPageChanging ), NULL, this );
2283
m_pNoteBookWindows->Disconnect( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE, wxAuiNotebookEventHandler( EditHangingProtocolDialogBase::OnPageClose ), NULL, this );
2284
m_button37->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditHangingProtocolDialogBase::OnOkClick ), NULL, this );
2285
m_button38->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditHangingProtocolDialogBase::OnCancelClick ), NULL, this );
2289
DefaultModalitySettingsConfigurationPanelBase::DefaultModalitySettingsConfigurationPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
2236
2291
wxBoxSizer* bSizer120;
2237
2292
bSizer120 = new wxBoxSizer( wxVERTICAL );
2239
m_splitter4 = new wxSplitterWindow( m_pVisualizationPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );
2240
m_splitter4->Connect( wxEVT_IDLE, wxIdleEventHandler( EditHangingProtocolDialogBase::m_splitter4OnIdle ), NULL, this );
2294
m_splitter4 = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );
2295
m_splitter4->Connect( wxEVT_IDLE, wxIdleEventHandler( DefaultModalitySettingsConfigurationPanelBase::m_splitter4OnIdle ), NULL, this );
2241
2296
m_splitter4->SetMinimumPaneSize( 100 );
2243
2298
m_panel90 = new wxPanel( m_splitter4, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
2244
2299
wxBoxSizer* bSizer121;
2245
2300
bSizer121 = new wxBoxSizer( wxVERTICAL );
2247
m_pTreeNavigation = new wxTreeCtrl( m_panel90, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_DEFAULT_STYLE );
2302
m_pTreeNavigation = new wxTreeCtrl( m_panel90, wxID_ANY, wxDefaultPosition, wxSize( 130,-1 ), wxTR_DEFAULT_STYLE );
2248
2303
bSizer121->Add( m_pTreeNavigation, 1, wxEXPAND, 5 );
2250
2305
m_panel90->SetSizer( bSizer121 );
2268
2323
m_splitter4->SplitVertically( m_panel90, m_pTitledPanelModalities, 150 );
2269
2324
bSizer120->Add( m_splitter4, 1, wxEXPAND|wxTOP, 5 );
2271
m_pVisualizationPanel->SetSizer( bSizer120 );
2272
m_pVisualizationPanel->Layout();
2273
bSizer120->Fit( m_pVisualizationPanel );
2274
m_pMainNoteBook->AddPage( m_pVisualizationPanel, _("Visualization"), false );
2276
bSizer11->Add( m_pMainNoteBook, 1, wxEXPAND|wxTOP, 5 );
2278
m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
2279
wxBoxSizer* bSizer31;
2280
bSizer31 = new wxBoxSizer( wxHORIZONTAL );
2283
bSizer31->Add( 0, 0, 1, wxEXPAND, 5 );
2285
m_button37 = new wxButton( m_pFooter, wxID_OK, _("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
2286
bSizer31->Add( m_button37, 0, wxALL, 5 );
2288
m_button38 = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
2289
bSizer31->Add( m_button38, 0, wxALL, 5 );
2291
m_pFooter->SetSizer( bSizer31 );
2292
m_pFooter->Layout();
2293
bSizer31->Fit( m_pFooter );
2294
bSizer11->Add( m_pFooter, 0, wxEXPAND, 5 );
2296
this->SetSizer( bSizer11 );
2326
this->SetSizer( bSizer120 );
2297
2327
this->Layout();
2299
this->Centre( wxBOTH );
2301
2329
// Connect Events
2302
m_pNoteBookWindows->Connect( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, wxAuiNotebookEventHandler( EditHangingProtocolDialogBase::OnPageChanging ), NULL, this );
2303
m_pNoteBookWindows->Connect( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE, wxAuiNotebookEventHandler( EditHangingProtocolDialogBase::OnPageClose ), NULL, this );
2304
m_pTreeNavigation->Connect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( EditHangingProtocolDialogBase::OnNavigationChanged ), NULL, this );
2305
m_button37->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditHangingProtocolDialogBase::OnOkClick ), NULL, this );
2306
m_button38->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditHangingProtocolDialogBase::OnCancelClick ), NULL, this );
2330
m_pTreeNavigation->Connect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( DefaultModalitySettingsConfigurationPanelBase::OnNavigationChanged ), NULL, this );
2309
EditHangingProtocolDialogBase::~EditHangingProtocolDialogBase()
2333
DefaultModalitySettingsConfigurationPanelBase::~DefaultModalitySettingsConfigurationPanelBase()
2311
2335
// Disconnect Events
2312
m_pNoteBookWindows->Disconnect( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, wxAuiNotebookEventHandler( EditHangingProtocolDialogBase::OnPageChanging ), NULL, this );
2313
m_pNoteBookWindows->Disconnect( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE, wxAuiNotebookEventHandler( EditHangingProtocolDialogBase::OnPageClose ), NULL, this );
2314
m_pTreeNavigation->Disconnect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( EditHangingProtocolDialogBase::OnNavigationChanged ), NULL, this );
2315
m_button37->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditHangingProtocolDialogBase::OnOkClick ), NULL, this );
2316
m_button38->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditHangingProtocolDialogBase::OnCancelClick ), NULL, this );
2336
m_pTreeNavigation->Disconnect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( DefaultModalitySettingsConfigurationPanelBase::OnNavigationChanged ), NULL, this );
2541
EditCornerAnnotationsDialogBase::EditCornerAnnotationsDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
2543
this->SetSizeHints( wxSize( 700,520 ), wxDefaultSize );
2545
wxBoxSizer* bSizer15;
2546
bSizer15 = new wxBoxSizer( wxVERTICAL );
2548
m_pBody = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
2549
wxBoxSizer* bSizer7;
2550
bSizer7 = new wxBoxSizer( wxVERTICAL );
2552
m_pMainPanel = new TitledPanel( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
2553
m_pMainPanel->SetToolTip( _("Edit corner annotations") );
2555
wxBoxSizer* bSizer130;
2556
bSizer130 = new wxBoxSizer( wxVERTICAL );
2558
wxBoxSizer* bSizer131;
2559
bSizer131 = new wxBoxSizer( wxHORIZONTAL );
2561
wxBoxSizer* bSizer136;
2562
bSizer136 = new wxBoxSizer( wxVERTICAL );
2564
m_staticText84 = new wxStaticText( m_pMainPanel, wxID_ANY, _("To setup corner annotations you can use dicom tags with syntax ${GGGG|EEEE:DefaultValue} where GGGG is the tag's group in hexadecimal and EEEE is the tag's element."), wxDefaultPosition, wxDefaultSize, 0 );
2565
m_staticText84->Wrap( 600 );
2566
bSizer136->Add( m_staticText84, 1, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
2568
m_staticText85 = new wxStaticText( m_pMainPanel, wxID_ANY, _("You can also use special tags listed in the tooltip over the question button."), wxDefaultPosition, wxDefaultSize, 0 );
2569
m_staticText85->Wrap( 600 );
2570
bSizer136->Add( m_staticText85, 0, wxALL, 5 );
2572
bSizer131->Add( bSizer136, 1, wxEXPAND, 5 );
2574
m_pHelpBitmap = new wxStaticBitmap( m_pMainPanel, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
2575
m_pHelpBitmap->SetToolTip( _("${NEWLINE}\n${GINKGO.VERSION.FULLTEXT}\n${GINKGO.ARCH} \n\n${VOLUME.IDX}\n${SLICE.WIDTH}\n${SLICE.HEIGHT}\n${SLICE.WL.FULLTEXT}\n${SLICE.IDX}\n${SLICE.COUNT}\n${SLICE.IDX.FULLTEXT}\n${SLICE.LATERALITY}\n${SLICE.VOXEL.SIZE}\n${SLICE.THICKNESS}\n${SLICE.THICKNESS.FULLTEXT}\n${SLICE.LOCATION}\n${SLICE.LOCATION.FULLTEXT}\n${VIEW.SCALE}") );
2577
bSizer131->Add( m_pHelpBitmap, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
2579
bSizer130->Add( bSizer131, 0, wxEXPAND, 5 );
2581
wxStaticBoxSizer* sbSizer10;
2582
sbSizer10 = new wxStaticBoxSizer( new wxStaticBox( m_pMainPanel, wxID_ANY, wxEmptyString ), wxVERTICAL );
2584
m_pCornerAnnotationsSizer = new wxGridSizer( 2, 2, 0, 0 );
2586
sbSizer10->Add( m_pCornerAnnotationsSizer, 1, wxEXPAND, 5 );
2588
bSizer130->Add( sbSizer10, 1, wxEXPAND, 5 );
2590
m_pMainPanel->SetSizer( bSizer130 );
2591
m_pMainPanel->Layout();
2592
bSizer130->Fit( m_pMainPanel );
2593
bSizer7->Add( m_pMainPanel, 1, wxEXPAND, 5 );
2595
m_pBody->SetSizer( bSizer7 );
2597
bSizer7->Fit( m_pBody );
2598
bSizer15->Add( m_pBody, 1, wxEXPAND, 5 );
2600
m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
2601
wxBoxSizer* bSizer16;
2602
bSizer16 = new wxBoxSizer( wxHORIZONTAL );
2604
m_button70 = new wxButton( m_pFooter, wxID_ANY, _("Reset"), wxDefaultPosition, wxDefaultSize, 0 );
2605
bSizer16->Add( m_button70, 0, 0, 5 );
2608
bSizer16->Add( 0, 0, 1, wxEXPAND, 5 );
2610
m_pOkButton = new wxButton( m_pFooter, wxID_OK, _("Ok"), wxDefaultPosition, wxDefaultSize, 0 );
2611
m_pOkButton->SetDefault();
2612
bSizer16->Add( m_pOkButton, 0, wxRIGHT, 5 );
2614
m_button5 = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
2615
bSizer16->Add( m_button5, 0, wxLEFT, 5 );
2617
m_pFooter->SetSizer( bSizer16 );
2618
m_pFooter->Layout();
2619
bSizer16->Fit( m_pFooter );
2620
bSizer15->Add( m_pFooter, 0, wxEXPAND, 5 );
2622
this->SetSizer( bSizer15 );
2625
this->Centre( wxBOTH );
2628
m_button70->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditCornerAnnotationsDialogBase::OnSetDefaultValues ), NULL, this );
2631
EditCornerAnnotationsDialogBase::~EditCornerAnnotationsDialogBase()
2633
// Disconnect Events
2634
m_button70->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditCornerAnnotationsDialogBase::OnSetDefaultValues ), NULL, this );
2638
CornerAnnotationPanel::CornerAnnotationPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
2640
wxBoxSizer* bSizer126;
2641
bSizer126 = new wxBoxSizer( wxVERTICAL );
2643
m_pLabel = new wxStaticText( this, wxID_ANY, _("Top left corner annotations"), wxDefaultPosition, wxDefaultSize, 0 );
2644
m_pLabel->Wrap( -1 );
2645
bSizer126->Add( m_pLabel, 0, wxALL, 5 );
2647
m_pLine1 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
2648
bSizer126->Add( m_pLine1, 0, wxALL|wxEXPAND, 5 );
2650
m_pLine2 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
2651
bSizer126->Add( m_pLine2, 0, wxALL|wxEXPAND, 5 );
2653
m_pLine3 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
2654
bSizer126->Add( m_pLine3, 0, wxALL|wxEXPAND, 5 );
2656
m_pLine4 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
2657
bSizer126->Add( m_pLine4, 0, wxALL|wxEXPAND, 5 );
2659
this->SetSizer( bSizer126 );
2663
CornerAnnotationPanel::~CornerAnnotationPanel()
2503
2667
StudyWindowBase::StudyWindowBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
2505
2669
wxBoxSizer* bSizer81;