wxPnlModifyContour Class Reference

#include <wxQuantificationWidget_base.h>

Collaboration diagram for wxPnlModifyContour:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 wxPnlModifyContour (wxWindow *parent, wxQuantificationWidget_base *quantificationWidget_base)
void OnNewContour (wxCommandEvent &event)
void OnFixContour (wxCommandEvent &event)

Private Attributes

wxQuantificationWidget_base_quantificationWidget_base
wxButton * _newContour
wxButton * _editContour
wxButton * _fixContour
wxButton * _cancelContour
wxRadioButton * _insert
wxRadioButton * _erase
wxRadioButton * _move
wxStaticText * _one
wxStaticText * _two
wxStaticText * _three
wxStaticText * _msg

Detailed Description

Definition at line 199 of file wxQuantificationWidget_base.h.


Constructor & Destructor Documentation

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

Definition at line 40 of file wxQuantificationWidget_base.cxx.

References _fixContour, _msg, _newContour, _one, _quantificationWidget_base, _three, _two, marDictionary::GetString(), OnFixContour(), and OnNewContour().

00041                                         : wxPanel(parent,-1){
00042 
00043         marDictionary marDict;
00044         char tmp[256];
00045 
00046         _quantificationWidget_base=quantificationWidget_base;
00047 //EEDxx 2.6
00048 //      this->SetBackgroundColour(*wxLIGHT_GREY);
00049         wxStaticText *title             = new wxStaticText(this,-1,wxString(marDict.GetString(803), wxConvUTF8)); // "Contour modification"
00050 
00051 // EEDxx 2.6
00052 //      wxStaticText *blank             = new wxStaticText(this,-1,"   ");
00053 
00054         strcpy( tmp , marDict.GetString(820) ); strcat( tmp , "\n" ); strcat( tmp , marDict.GetString(825) );
00055                         _newContour             = new wxButton(this, -1, wxString(tmp, wxConvUTF8)                                      ,wxPoint(0,0),wxSize(80,80));  // " New\nContour"
00056                         _fixContour             = new wxButton(this, -1, wxString(marDict.GetString(830), wxConvUTF8) ,wxPoint(0,0),wxSize(80,80));  // " Replace " 
00057 //                      _cancelContour  = new wxButton(this, -1, marDict.GetString(835) ,wxPoint(0,0),wxSize(80,35));  // " End "
00058 //                      _insert                 = new wxRadioButton(this, -1, wxString(marDict.GetString(840), wxConvUTF8), wxDefaultPosition, wxDefaultSize, wxRB_SINGLE  ); // " Insert Point "
00059 //                      _erase                  = new wxRadioButton(this, -1, wxString(marDict.GetString(845), wxConvUTF8), wxDefaultPosition, wxDefaultSize, wxRB_SINGLE  ); // " Delete Point "
00060 //                      _move                   = new wxRadioButton(this, -1, wxString(marDict.GetString(850), wxConvUTF8), wxDefaultPosition, wxDefaultSize, wxRB_SINGLE ); // " Move Point "
00061                                   _one          = new wxStaticText(this,-1,wxString(marDict.GetString(805), wxConvUTF8) );  // "1"
00062                                   _two          = new wxStaticText(this,-1,wxString(marDict.GetString(810), wxConvUTF8) );  // "2"
00063                                   _three        = new wxStaticText(this,-1,wxString(marDict.GetString(815), wxConvUTF8) );  // "3"
00064 
00065         strcpy( tmp , "\n\n" ); 
00066         strcat( tmp , marDict.GetString(855) ); 
00067         strcat( tmp , "\n" ); 
00068         strcat( tmp , marDict.GetString(860) );
00069                                   _msg          = new wxStaticText(this,-1,wxString(tmp, wxConvUTF8) );  // "\n\nUse mouse left button \n to create the new contour"
00070 
00071         wxFont font(12,wxDEFAULT ,wxNORMAL,wxBOLD);
00072         title   -> SetFont(font);
00073         _one    -> SetFont(font);
00074         _two    -> SetFont(font);
00075         _three  -> SetFont(font);
00076 
00077 //EEDxx 2.6
00078 //      title   -> SetBackgroundColour(*wxLIGHT_GREY);
00079 //      _insert -> SetBackgroundColour(*wxLIGHT_GREY);
00080 //      _erase  -> SetBackgroundColour(*wxLIGHT_GREY);
00081 //      _move   -> SetBackgroundColour(*wxLIGHT_GREY);
00082 //      _msg    -> SetBackgroundColour(*wxLIGHT_GREY);
00083 
00084         _fixContour             -> Disable();
00085 //      _cancelContour  -> Disable();
00086 //      _insert                 -> Disable();
00087 //      _erase                  -> Disable();
00088 //      _move                   -> Disable();
00089         _two                    -> Disable();
00090         _three                  -> Disable();
00091         _msg                    -> Disable();
00092 //      _msg                    -> Show(false);
00093 
00094         Connect(_newContour->GetId()    , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &wxPnlModifyContour::OnNewContour      );
00095         Connect(_fixContour->GetId()    , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &wxPnlModifyContour::OnFixContour      );
00096 //      Connect(_cancelContour->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &wxPnlModifyContour::OnCancelContour   );
00097 //      Connect(_insert->GetId()                , wxEVT_COMMAND_RADIOBUTTON_SELECTED , (wxObjectEventFunction) &wxPnlModifyContour::OnInsertPoint       );
00098 //      Connect(_erase->GetId()                 , wxEVT_COMMAND_RADIOBUTTON_SELECTED , (wxObjectEventFunction) &wxPnlModifyContour::OnErasePoint        );
00099 //      Connect(_move->GetId()                  , wxEVT_COMMAND_RADIOBUTTON_SELECTED , (wxObjectEventFunction) &wxPnlModifyContour::OnMovePoint );
00100 
00101 
00102         wxFlexGridSizer *sizer  = new wxFlexGridSizer(1);
00103         wxFlexGridSizer *sizerAh= new wxFlexGridSizer(6);
00104         wxFlexGridSizer *sizerAv= new wxFlexGridSizer(1);
00105         wxFlexGridSizer *sizerBv= new wxFlexGridSizer(1);
00106 
00107 //      sizerAv->Add(_insert            ,       1, wxALL|wxEXPAND, 6);
00108 //      sizerAv->Add(_erase                     ,       1, wxALL|wxEXPAND, 6);
00109 //      sizerAv->Add(_move                      ,       1, wxALL|wxEXPAND, 6);
00110 
00111         sizerBv->Add(_fixContour        ,       1, wxALL|wxEXPAND, 6);
00112 //      sizerBv->Add(_cancelContour     ,       1, wxALL|wxEXPAND, 6);
00113 
00114         sizerAh->Add(new wxStaticText(this,-1,_T("   "))                        ,       1, wxALL|wxEXPAND, 3);
00115         sizerAh->Add(_one                       ,       1, wxALIGN_CENTER_HORIZONTAL, 3);
00116         sizerAh->Add(new wxStaticText(this,-1,_T("   "))                        ,       1, wxALL|wxEXPAND, 3);
00117         sizerAh->Add(_two                       ,       1, wxALIGN_CENTER_HORIZONTAL, 3);
00118         sizerAh->Add(new wxStaticText(this,-1,_T("   "))                        ,       1, wxALL|wxEXPAND, 3);
00119         sizerAh->Add(_three                     ,       1, wxALIGN_CENTER_HORIZONTAL, 3);
00120 
00121         sizerAh->Add(new wxStaticText(this,-1,_T("   "))                        ,       1, wxALL|wxEXPAND, 3);
00122         sizerAh->Add(_newContour        ,       1, wxALL|wxEXPAND, 3);
00123         sizerAh->Add(new wxStaticText(this,-1,_T("   "))                        ,       1, wxALL|wxEXPAND, 3);
00124         sizerAh->Add(_msg                       ,       1, wxALL|wxEXPAND, 3);
00125         sizerAh->Add(new wxStaticText(this,-1,_T("   "))                        ,       1, wxALL|wxEXPAND, 3);
00126         sizerAh->Add(sizerBv            ,       1, wxALL|wxEXPAND, 3);
00127 
00128 //      sizerAh->Add(blank                      ,       1, wxALL|wxEXPAND, 3);
00129 //      sizerAh->Add(blank                      ,       1, wxALL|wxEXPAND, 3);
00130 //      sizerAh->Add(blank                      ,       1, wxALL|wxEXPAND, 3);
00131 //      sizerAh->Add(_msg                       ,       1, wxALIGN_CENTER_HORIZONTAL, 3);
00132 //      sizerAh->Add(blank                      ,       1, wxALL|wxEXPAND, 3);
00133 //      sizerAh->Add(blank                      ,       1, wxALL|wxEXPAND, 3);
00134 
00135         sizer->Add(title                        ,       1, wxALL|wxEXPAND, 10);
00136         sizer->Add(sizerAh                      ,       1, wxALL|wxEXPAND, 10);
00137 
00138         this->SetSizer(sizer);
00139         this->SetSize(wxSize(400,400));
00140 }

Here is the call graph for this function:


Member Function Documentation

void wxPnlModifyContour::OnFixContour ( wxCommandEvent &  event  ) 

Definition at line 143 of file wxQuantificationWidget_base.cxx.

References _fixContour, _msg, _quantificationWidget_base, _three, _two, wxQuantificationWidget_base::SetManualContour_2DWorld(), and wxQuantificationWidget_base::SetManualContour_ReplaceContour().

Referenced by wxPnlModifyContour().

00143                                                           {
00144         _fixContour             -> Enable(false);
00145         _two                    -> Enable(false);
00146         _three                  -> Enable(false);
00147         _msg                    -> Enable(false);
00148     _quantificationWidget_base->SetManualContour_ReplaceContour();
00149     _quantificationWidget_base->SetManualContour_2DWorld(false);
00150 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxPnlModifyContour::OnNewContour ( wxCommandEvent &  event  ) 

Definition at line 152 of file wxQuantificationWidget_base.cxx.

References _fixContour, _msg, _quantificationWidget_base, _three, _two, wxQuantificationWidget_base::SetManualContour_2DWorld(), and wxQuantificationWidget_base::SetManualContour_AddPoint_2DWorld().

Referenced by wxPnlModifyContour().

00152                                                           {
00153 
00154 //      _insert                 -> Enable(true);
00155 //      _erase                  -> Enable(true);
00156 //      _move                   -> Enable(true);
00157         _fixContour             -> Enable(true);
00158 //      _cancelContour  -> Enable(true);
00159         _two                    -> Enable(true);
00160         _three                  -> Enable(true);
00161         _msg                    -> Enable(true);
00162 //      _msg                    -> Show(true);
00163 
00164 //      _insert                 -> SetValue(true);
00165 //      _erase                  -> SetValue(false);
00166 //      _move                   -> SetValue(false);
00167 
00168     _quantificationWidget_base->SetManualContour_AddPoint_2DWorld();
00169     _quantificationWidget_base->SetManualContour_2DWorld(false);
00170     _quantificationWidget_base->SetManualContour_2DWorld(true);
00171 
00172 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 211 of file wxQuantificationWidget_base.h.

wxButton* wxPnlModifyContour::_editContour [private]

Definition at line 209 of file wxQuantificationWidget_base.h.

wxRadioButton* wxPnlModifyContour::_erase [private]

Definition at line 213 of file wxQuantificationWidget_base.h.

wxButton* wxPnlModifyContour::_fixContour [private]

Definition at line 210 of file wxQuantificationWidget_base.h.

Referenced by OnFixContour(), OnNewContour(), and wxPnlModifyContour().

wxRadioButton* wxPnlModifyContour::_insert [private]

Definition at line 212 of file wxQuantificationWidget_base.h.

wxRadioButton* wxPnlModifyContour::_move [private]

Definition at line 214 of file wxQuantificationWidget_base.h.

wxStaticText* wxPnlModifyContour::_msg [private]

Definition at line 219 of file wxQuantificationWidget_base.h.

Referenced by OnFixContour(), OnNewContour(), and wxPnlModifyContour().

wxButton* wxPnlModifyContour::_newContour [private]

Definition at line 208 of file wxQuantificationWidget_base.h.

Referenced by wxPnlModifyContour().

wxStaticText* wxPnlModifyContour::_one [private]

Definition at line 216 of file wxQuantificationWidget_base.h.

Referenced by wxPnlModifyContour().

Definition at line 207 of file wxQuantificationWidget_base.h.

Referenced by OnFixContour(), OnNewContour(), and wxPnlModifyContour().

wxStaticText* wxPnlModifyContour::_three [private]

Definition at line 218 of file wxQuantificationWidget_base.h.

Referenced by OnFixContour(), OnNewContour(), and wxPnlModifyContour().

wxStaticText* wxPnlModifyContour::_two [private]

Definition at line 217 of file wxQuantificationWidget_base.h.

Referenced by OnFixContour(), OnNewContour(), and wxPnlModifyContour().


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

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1