creaContours_lib
interfTestPanel Class Reference

#include <interfSegmentationPanels.h>

Inheritance diagram for interfTestPanel:
Collaboration diagram for interfTestPanel:

Public Member Functions

 interfTestPanel (wxWindow *parent)
 
 ~interfTestPanel ()
 

Private Member Functions

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

Detailed Description

Definition at line 128 of file interfSegmentationPanels.h.

Constructor & Destructor Documentation

interfTestPanel::interfTestPanel ( wxWindow *  parent)

Definition at line 304 of file interfSegmentationPanels.cxx.

References onButton1Pressed(), and onButton2Pressed().

305 : wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_SUNKEN)
306 {
307  wxButton *button1 = new wxButton(this,wxID_ANY,_T("Button 1"), wxDefaultPosition, wxSize(200,35) );
308  wxButton *button2 = new wxButton(this,wxID_ANY,_T("Button 2"), wxDefaultPosition, wxSize(200,35) );
309 
310  Connect( button1->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &interfTestPanel::onButton1Pressed );
311  Connect( button2->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &interfTestPanel::onButton2Pressed );
312 
313  wxFlexGridSizer * sizer = new wxFlexGridSizer(1);
314  sizer -> Add( button1, 1, wxGROW );
315  sizer -> Add( button2, 1, wxGROW );
316 
317  this->SetSizer( sizer );
318  this->SetAutoLayout( true );
319  this->Layout();
320 }

Here is the call graph for this function:

interfTestPanel::~interfTestPanel ( )

Definition at line 322 of file interfSegmentationPanels.cxx.

322  {
323 }

Member Function Documentation

void interfTestPanel::onButton1Pressed ( wxCommandEvent &  event)
private

Definition at line 325 of file interfSegmentationPanels.cxx.

Referenced by interfTestPanel().

326 {
327  std::cout << "Button 1 has been pressed" << std::endl;
328 }

Here is the caller graph for this function:

void interfTestPanel::onButton2Pressed ( wxCommandEvent &  event)
private

Definition at line 330 of file interfSegmentationPanels.cxx.

Referenced by interfTestPanel().

331 {
332  std::cout << "Button 2 has been pressed" << std::endl;
333 }

Here is the caller graph for this function:


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