wxPnlContourControl Class Reference

#include <wxQuantificationWidget_base.h>

Collaboration diagram for wxPnlContourControl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 wxPnlContourControl (wxWindow *parent, wxQuantificationWidget_base *quantificationWidget_base)
void OnSliderDiscontinuityScroll (wxScrollEvent &event)
void OnSliderLumenPercentageScroll (wxScrollEvent &event)
void OnSliderCalcPercentageScroll (wxScrollEvent &event)
void OnCalibration (wxScrollEvent &event)
void OnFile (wxScrollEvent &event)

Private Attributes

wxQuantificationWidget_base_quantificationWidget_base
wxSlider * _sl_Discontinuity
wxSlider * _sl_LumenPercentage
wxSlider * _sl_CalcPercentage
wxButton * btnCalibration
wxButton * btnFile
wxStaticText * _st_Discontinuity
wxStaticText * _st_LumenPercentage
wxStaticText * _st_CalcPercentage

Detailed Description

Definition at line 238 of file wxQuantificationWidget_base.h.


Constructor & Destructor Documentation

wxPnlContourControl::wxPnlContourControl ( wxWindow *  parent,
wxQuantificationWidget_base quantificationWidget_base 
)

Definition at line 764 of file wxQuantificationWidget_base.cxx.

References _quantificationWidget_base, _sl_CalcPercentage, _sl_Discontinuity, _sl_LumenPercentage, _st_CalcPercentage, _st_Discontinuity, _st_LumenPercentage, btnCalibration, btnFile, marDictionary::GetString(), OnCalibration(), OnFile(), OnSliderCalcPercentageScroll(), OnSliderDiscontinuityScroll(), and OnSliderLumenPercentageScroll().

00765                         :wxPanel(parent,-1){
00766 
00767         marDictionary marDict;
00768         
00769         _quantificationWidget_base=quantificationWidget_base;
00770 //EEDxx 2.6
00771 //      this->SetBackgroundColour(*wxLIGHT_GREY);
00772 
00773         wxStaticText *title             = new wxStaticText(this,-1,wxString(marDict.GetString(940), wxConvUTF8)); // "Contour modification"
00774 //      wxStaticText *blank             = new wxStaticText(this,-1,"   ");
00775         
00776 //EEDxx 2.6
00777 //      title   -> SetBackgroundColour(*wxLIGHT_GREY);
00778 
00779 
00780         wxFont font(12,wxDEFAULT ,wxNORMAL,wxBOLD);
00781         title   -> SetFont(font);
00782 
00783     _sl_Discontinuity   = new wxSlider(this, -1, 10, 0, 20, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL | wxSL_LABELS);
00784     _sl_LumenPercentage = new wxSlider(this, -1, 86, 0, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL | wxSL_LABELS);
00785     _sl_CalcPercentage  = new wxSlider(this, -1, 90, 0, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL | wxSL_LABELS);
00786 
00787 //EEDxx 2.6
00788 //      _sl_Discontinuity->SetBackgroundColour(*wxLIGHT_GREY);
00789 //      _sl_LumenPercentage->SetBackgroundColour(*wxLIGHT_GREY);
00790 //      _sl_CalcPercentage->SetBackgroundColour(*wxLIGHT_GREY);
00791 
00792         _sl_Discontinuity->SetSize(300,16);
00793         _sl_LumenPercentage->SetSize(300,16);
00794         _sl_CalcPercentage->SetSize(300,16);
00795 
00796         _st_Discontinuity       = new wxStaticText(this, -1, wxString(marDict.GetString(925), wxConvUTF8) ); //"Threshold "
00797         _st_LumenPercentage     = new wxStaticText(this, -1, wxString(marDict.GetString(930), wxConvUTF8) ); //"Lumen % "
00798         _st_CalcPercentage      = new wxStaticText(this, -1, wxString(marDict.GetString(935), wxConvUTF8) ); //"Calcification % "
00799 
00800 
00801         btnCalibration  = new wxButton( this, -1, _T("Calibrate"),wxPoint(0,0),wxSize(92,20));
00802         btnFile                 = new wxButton( this, -1, _T("Generate File"),wxPoint(0,0),wxSize(92,20));
00803 
00804 //EEDxx 2.6
00805 //      _st_Discontinuity->SetBackgroundColour(*wxLIGHT_GREY);
00806 //      _st_LumenPercentage->SetBackgroundColour(*wxLIGHT_GREY);
00807 //      _st_CalcPercentage->SetBackgroundColour(*wxLIGHT_GREY);
00808 
00809 
00810         Connect(_sl_Discontinuity->GetId()      , wxEVT_SCROLL_THUMBRELEASE     , (wxObjectEventFunction) &wxPnlContourControl::OnSliderDiscontinuityScroll     );
00811         Connect(_sl_LumenPercentage->GetId()    , wxEVT_SCROLL_THUMBRELEASE     , (wxObjectEventFunction) &wxPnlContourControl::OnSliderLumenPercentageScroll   );
00812         Connect(_sl_CalcPercentage->GetId()     , wxEVT_SCROLL_THUMBRELEASE     , (wxObjectEventFunction) &wxPnlContourControl::OnSliderCalcPercentageScroll    );
00813         Connect(btnCalibration->GetId()         , wxEVT_COMMAND_BUTTON_CLICKED  , (wxObjectEventFunction) &wxPnlContourControl::OnCalibration );
00814         Connect(btnFile->GetId()                , wxEVT_COMMAND_BUTTON_CLICKED  , (wxObjectEventFunction) &wxPnlContourControl::OnFile );
00815 
00816         wxFlexGridSizer *sizer  = new wxFlexGridSizer(1);
00817 
00818         wxFlexGridSizer         *axe1                           = new wxFlexGridSizer(2);
00819         wxFlexGridSizer         *axe2                           = new wxFlexGridSizer(2);
00820         wxFlexGridSizer         *axe3                           = new wxFlexGridSizer(2);
00821 
00822 
00823         axe1->Add(_st_Discontinuity                     ,  1, wxALL|wxEXPAND, 0);
00824         axe1->Add(_sl_Discontinuity                     ,  1, wxALL|wxEXPAND, 0);
00825 
00826         axe2->Add(_st_LumenPercentage           ,  1, wxALL|wxEXPAND, 0);
00827         axe2->Add(_sl_LumenPercentage           ,  1, wxALL|wxEXPAND, 0);
00828 
00829         axe3->Add(_st_CalcPercentage            ,  1, wxALL|wxEXPAND, 0);
00830         axe3->Add(_sl_CalcPercentage            ,  1, wxALL|wxEXPAND, 0);
00831 
00832         sizer->Add(title                        ,       1, wxALL|wxEXPAND, 10);
00833         sizer->Add(axe1, 2, wxALL|wxEXPAND, 10);
00834         sizer->Add(axe2, 2, wxALL|wxEXPAND, 10);   //wxALIGN_CENTER_HORIZONTAL
00835         sizer->Add(axe3, 2, wxALL|wxEXPAND, 10);
00836         sizer->Add(btnCalibration, 2, wxALL|wxEXPAND, 10);
00837         sizer->Add(btnFile, 2, wxALL|wxEXPAND, 10);
00838 
00839         this->SetSizer(sizer);
00840         this->SetSize(wxSize(400,400));
00841 
00842 }

Here is the call graph for this function:


Member Function Documentation

void wxPnlContourControl::OnCalibration ( wxScrollEvent &  event  ) 

Definition at line 864 of file wxQuantificationWidget_base.cxx.

References _quantificationWidget_base, and wxQuantificationWidget_base::OnCalibration().

Referenced by wxPnlContourControl().

00865 {
00866         _quantificationWidget_base->OnCalibration();
00867 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxPnlContourControl::OnFile ( wxScrollEvent &  event  ) 

Definition at line 870 of file wxQuantificationWidget_base.cxx.

References _quantificationWidget_base, and wxQuantificationWidget_base::OnFile().

Referenced by wxPnlContourControl().

00871 {
00872         _quantificationWidget_base->OnFile();
00873 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxPnlContourControl::OnSliderCalcPercentageScroll ( wxScrollEvent &  event  ) 

Definition at line 858 of file wxQuantificationWidget_base.cxx.

References _quantificationWidget_base, and wxQuantificationWidget_base::OnSliderCalcPercentageScroll().

Referenced by wxPnlContourControl().

00859 {
00860         _quantificationWidget_base->OnSliderCalcPercentageScroll(event.GetPosition());
00861 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxPnlContourControl::OnSliderDiscontinuityScroll ( wxScrollEvent &  event  ) 

Definition at line 844 of file wxQuantificationWidget_base.cxx.

References _quantificationWidget_base, and wxQuantificationWidget_base::OnSliderDiscontinuityScroll().

Referenced by wxPnlContourControl().

00845 {
00846 
00847         _quantificationWidget_base->OnSliderDiscontinuityScroll(event.GetPosition());
00848 
00849 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxPnlContourControl::OnSliderLumenPercentageScroll ( wxScrollEvent &  event  ) 

Definition at line 851 of file wxQuantificationWidget_base.cxx.

References _quantificationWidget_base, and wxQuantificationWidget_base::OnSliderLumenPercentageScroll().

Referenced by wxPnlContourControl().

00852 {
00853 
00854         _quantificationWidget_base->OnSliderLumenPercentageScroll(event.GetPosition());
00855 
00856 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 253 of file wxQuantificationWidget_base.h.

Referenced by wxPnlContourControl().

Definition at line 251 of file wxQuantificationWidget_base.h.

Referenced by wxPnlContourControl().

Definition at line 252 of file wxQuantificationWidget_base.h.

Referenced by wxPnlContourControl().

wxStaticText* wxPnlContourControl::_st_CalcPercentage [private]

Definition at line 259 of file wxQuantificationWidget_base.h.

Referenced by wxPnlContourControl().

wxStaticText* wxPnlContourControl::_st_Discontinuity [private]

Definition at line 257 of file wxQuantificationWidget_base.h.

Referenced by wxPnlContourControl().

Definition at line 258 of file wxQuantificationWidget_base.h.

Referenced by wxPnlContourControl().

Definition at line 254 of file wxQuantificationWidget_base.h.

Referenced by wxPnlContourControl().

wxButton* wxPnlContourControl::btnFile [private]

Definition at line 255 of file wxQuantificationWidget_base.h.

Referenced by wxPnlContourControl().


The documentation for this class was generated from the following files:

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1