#include <wxQuantificationWidget_base.h>
Public Member Functions | |
wxPanelSizeHealthyRegion (wxWindow *parent, wxQuantificationWidget_base *quantificationWidget_base) | |
Private Member Functions | |
void | OnButtonRefresh (wxScrollEvent &event) |
Private Attributes | |
wxQuantificationWidget_base * | _quantificationWidget_base |
wxSlider * | _sl_Size |
Definition at line 188 of file wxQuantificationWidget_base.h.
wxPanelSizeHealthyRegion::wxPanelSizeHealthyRegion | ( | wxWindow * | parent, | |
wxQuantificationWidget_base * | quantificationWidget_base | |||
) |
Definition at line 651 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, _sl_Size, wxQuantificationWidget_base::GetSizeHealthyRegion(), marDictionary::GetString(), and OnButtonRefresh().
00652 : wxPanel(parent,-1){ 00653 marDictionary marDict; 00654 //EEDxx 2.6 00655 // this->SetBackgroundColour(*wxLIGHT_GREY); 00656 _quantificationWidget_base = quantificationWidget_base; 00657 int maxSliderSize = 30; 00658 int sizeHealthyRegion = 0; 00659 sizeHealthyRegion = _quantificationWidget_base->GetSizeHealthyRegion(); 00660 00661 wxFlexGridSizer *sizer = new wxFlexGridSizer(1); 00662 wxFlexGridSizer *sizer1 = new wxFlexGridSizer(1); 00663 wxFlexGridSizer *sizer2 = new wxFlexGridSizer(2); 00664 00665 //EEDxx 2.6 00666 // wxStaticText *st_Blank = new wxStaticText( this, -1," ",wxPoint(0,0)); 00667 00668 wxStaticText *st_Title = new wxStaticText( this, -1,wxString(marDict.GetString(370), wxConvUTF8),wxPoint(0,0));//"Size of the Healty Region:" 00669 wxStaticText *st_Size = new wxStaticText( this, -1, wxString(marDict.GetString(373), wxConvUTF8) ); //"n : " 00670 _sl_Size = new wxSlider( this, -1, sizeHealthyRegion, 0, maxSliderSize, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL | wxSL_LABELS ); 00671 wxButton *buttonRefresh = new wxButton( this, -1, wxString(marDict.GetString(375), wxConvUTF8));//"Refresh healthy region" 00672 wxStaticText *title = new wxStaticText( this, -1,wxString(marDict.GetString(365), wxConvUTF8));//"Healthy region size " 00673 00674 00675 wxFont font(12,wxDEFAULT ,wxNORMAL,wxBOLD); 00676 title ->SetFont(font); 00677 //EEDxx 2.6 00678 // title ->SetBackgroundColour(*wxLIGHT_GREY); 00679 00680 Connect(buttonRefresh->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &wxPanelSizeHealthyRegion::OnButtonRefresh ); 00681 sizer1->Add( title, 15, wxALL, 10 ); 00682 00683 sizer2->Add( new wxStaticText( this, -1,_T(" "),wxPoint(0,0)) ); 00684 sizer2->Add( st_Title ); 00685 00686 sizer2->Add( new wxStaticText( this, -1,_T(" "),wxPoint(0,0)) ); 00687 sizer2->Add( new wxStaticText( this, -1,_T(" "),wxPoint(0,0)) ); 00688 00689 sizer2->Add( st_Size ); 00690 sizer2->Add( _sl_Size ,1,wxALL|wxGROW); 00691 // EED 27 oct 2007 00692 sizer2->AddGrowableCol(1); 00693 00694 sizer2->Add( new wxStaticText( this, -1,_T(" "),wxPoint(0,0)) ); 00695 sizer2->Add( new wxStaticText( this, -1,_T(" "),wxPoint(0,0)) ); 00696 00697 sizer2->Add( new wxStaticText( this, -1,_T(" "),wxPoint(0,0)) ); 00698 sizer2->Add( buttonRefresh ); 00699 00700 sizer->Add( sizer1 ); 00701 sizer->Add( sizer2 ); 00702 00703 this->SetSizer(sizer); 00704 this->SetAutoLayout(true); 00705 this->SetSize(200,400); 00706 }
void wxPanelSizeHealthyRegion::OnButtonRefresh | ( | wxScrollEvent & | event | ) | [private] |
Definition at line 708 of file wxQuantificationWidget_base.cxx.
References _quantificationWidget_base, _sl_Size, wxQuantificationWidget_base::GetHealthySlice(), wxQuantificationWidget_base::SetHealthySlice(), and wxQuantificationWidget_base::SetSizeHealthyRegion().
Referenced by wxPanelSizeHealthyRegion().
00708 { 00709 _quantificationWidget_base->SetSizeHealthyRegion( _sl_Size->GetValue() ); 00710 int healthySlice=_quantificationWidget_base->GetHealthySlice(); 00711 if (healthySlice!=-1) { 00712 _quantificationWidget_base->SetHealthySlice( healthySlice ); 00713 } 00714 }
Definition at line 192 of file wxQuantificationWidget_base.h.
Referenced by OnButtonRefresh(), and wxPanelSizeHealthyRegion().
wxSlider* wxPanelSizeHealthyRegion::_sl_Size [private] |
Definition at line 193 of file wxQuantificationWidget_base.h.
Referenced by OnButtonRefresh(), and wxPanelSizeHealthyRegion().