topic_display_generated.cpp
Go to the documentation of this file.
00001 
00002 // C++ code generated with wxFormBuilder (version Apr 21 2008)
00003 // http://www.wxformbuilder.org/
00004 //
00005 // PLEASE DO "NOT" EDIT THIS FILE!
00007 
00008 #include "topic_display_generated.h"
00009 
00011 using namespace rxtools;
00012 
00013 GenTopicDisplay::GenTopicDisplay( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
00014 {
00015         wxBoxSizer* bSizer1;
00016         bSizer1 = new wxBoxSizer( wxVERTICAL );
00017         
00018         topic_tree_ = new wxTreeCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_DEFAULT_STYLE|wxTR_HIDE_ROOT|wxTR_MULTIPLE );
00019         bSizer1->Add( topic_tree_, 1, wxALL|wxEXPAND, 5 );
00020         
00021         this->SetSizer( bSizer1 );
00022         this->Layout();
00023         
00024         // Connect Events
00025         topic_tree_->Connect( wxEVT_COMMAND_TREE_ITEM_ACTIVATED, wxTreeEventHandler( GenTopicDisplay::onItemActivated ), NULL, this );
00026         topic_tree_->Connect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( GenTopicDisplay::checkIsTopic ), NULL, this );
00027         topic_tree_->Connect( wxEVT_COMMAND_TREE_SEL_CHANGING, wxTreeEventHandler( GenTopicDisplay::checkIsTopic ), NULL, this );
00028 }
00029 
00030 GenTopicDisplay::~GenTopicDisplay()
00031 {
00032         // Disconnect Events
00033         topic_tree_->Disconnect( wxEVT_COMMAND_TREE_ITEM_ACTIVATED, wxTreeEventHandler( GenTopicDisplay::onItemActivated ), NULL, this );
00034         topic_tree_->Disconnect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( GenTopicDisplay::checkIsTopic ), NULL, this );
00035         topic_tree_->Disconnect( wxEVT_COMMAND_TREE_SEL_CHANGING, wxTreeEventHandler( GenTopicDisplay::checkIsTopic ), NULL, this );
00036 }
00037 
00038 GenTopicDisplayDialog::GenTopicDisplayDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
00039 {
00040         this->SetSizeHints( wxDefaultSize, wxDefaultSize );
00041         
00042         wxBoxSizer* bSizer3;
00043         bSizer3 = new wxBoxSizer( wxVERTICAL );
00044         
00045         tree_panel_ = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
00046         bSizer3->Add( tree_panel_, 1, wxEXPAND | wxALL, 5 );
00047         
00048         wxBoxSizer* bSizer4;
00049         bSizer4 = new wxBoxSizer( wxHORIZONTAL );
00050         
00051         ok_ = new wxButton( this, wxID_ANY, wxT("OK"), wxDefaultPosition, wxDefaultSize, 0 );
00052         bSizer4->Add( ok_, 0, wxALL, 5 );
00053         
00054         cancel_ = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
00055         bSizer4->Add( cancel_, 0, wxALL, 5 );
00056         
00057         bSizer3->Add( bSizer4, 0, wxALIGN_RIGHT, 5 );
00058         
00059         this->SetSizer( bSizer3 );
00060         this->Layout();
00061         
00062         // Connect Events
00063         ok_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( GenTopicDisplayDialog::onOK ), NULL, this );
00064         cancel_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( GenTopicDisplayDialog::onCancel ), NULL, this );
00065 }
00066 
00067 GenTopicDisplayDialog::~GenTopicDisplayDialog()
00068 {
00069         // Disconnect Events
00070         ok_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( GenTopicDisplayDialog::onOK ), NULL, this );
00071         cancel_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( GenTopicDisplayDialog::onCancel ), NULL, this );
00072 }


rxtools
Author(s): Josh Faust, Rob Wheeler, Ken Conley
autogenerated on Mon Oct 6 2014 07:25:59