interfTestPanel Class Reference

#include <interfSegmentationPanels.h>

List of all members.

Public Member Functions

 interfTestPanel (wxWindow *parent)
 ~interfTestPanel ()

Private Member Functions

void onButton1Pressed (wxCommandEvent &event)
void onButton2Pressed (wxCommandEvent &event)


Detailed Description

Definition at line 103 of file interfSegmentationPanels.h.


Constructor & Destructor Documentation

interfTestPanel::interfTestPanel ( wxWindow *  parent  ) 

Definition at line 279 of file interfSegmentationPanels.cxx.

References onButton1Pressed(), and onButton2Pressed().

00280 : wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_SUNKEN)
00281 {
00282         wxButton *button1 = new wxButton(this,wxID_ANY,_T("Button 1"), wxDefaultPosition, wxSize(200,35) );
00283         wxButton *button2 = new wxButton(this,wxID_ANY,_T("Button 2"), wxDefaultPosition, wxSize(200,35) );
00284         
00285         Connect( button1->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &interfTestPanel::onButton1Pressed );
00286         Connect( button2->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &interfTestPanel::onButton2Pressed ); 
00287         
00288         wxFlexGridSizer * sizer         = new wxFlexGridSizer(1);
00289         sizer -> Add( button1, 1, wxGROW );
00290         sizer -> Add( button2, 1, wxGROW );
00291 
00292         this->SetSizer( sizer );
00293         this->SetAutoLayout( true );
00294         this->Layout();
00295 }

Here is the call graph for this function:

interfTestPanel::~interfTestPanel (  ) 

Definition at line 297 of file interfSegmentationPanels.cxx.

00297                                  {
00298 }


Member Function Documentation

void interfTestPanel::onButton1Pressed ( wxCommandEvent &  event  )  [private]

Definition at line 300 of file interfSegmentationPanels.cxx.

Referenced by interfTestPanel().

00301 {
00302         std::cout << "Button 1 has been pressed" << std::endl;
00303 }

Here is the caller graph for this function:

void interfTestPanel::onButton2Pressed ( wxCommandEvent &  event  )  [private]

Definition at line 305 of file interfSegmentationPanels.cxx.

Referenced by interfTestPanel().

00306 {
00307         std::cout << "Button 2 has been pressed" << std::endl;
00308 }

Here is the caller graph for this function:


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

Generated on Wed Jun 27 23:28:34 2012 for creaContours_lib by  doxygen 1.5.7.1