Program: bbtk
Module: $RCSfile: bbwxInputText.cxx,v $
Language: C++
- Date: $Date: 2008/11/24 15:45:51 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2009/05/15 14:58:03 $
+ Version: $Revision: 1.6 $
=========================================================================*/
/* ---------------------------------------------------------------------
namespace bbwx
{
- BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,InputText);
+
+
+
+
+
+ //--------------------------------------------------------------------------
+ class InputTextWidget : wxPanel
+ {
+ public:
+ InputTextWidget(InputText* box, wxWindow *parent,
+ wxString In, wxString title);
+ ~InputTextWidget();
+
+ std::string GetValue();
+ void OnTextUpdate(wxCommandEvent& event);
+
+ void SetTitle(wxString);
+
+ private:
+ InputText *mBox;
+ wxTextCtrl *mwxTextCtrl;
+ wxStaticText *mwxTitle;
+ };
+
+ //------------------------------------------------------------------------
+ //------------------------------------------------------------------------
+ //------------------------------------------------------------------------
+
+
InputTextWidget::InputTextWidget(InputText* box,
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
-
+ BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,InputText);
BBTK_BLACK_BOX_IMPLEMENTATION(InputText,bbtk::WxBlackBox);
-
-
- void InputText::bbUserConstructor()
- {
- bbSetInputTitle("");
- bbSetInputIn("");
- bbSetOutputWidget(0);
- }
+ //-----------------------------------------------------------------
+ void InputText::bbUserSetDefaultValues()
+ {
+ bbSetInputTitle("");
+ bbSetInputIn("");
+ bbSetOutputWidget(0);
+ }
+
+ //-----------------------------------------------------------------
+ void InputText::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void InputText::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
void InputText::Process()
{
InputTextWidget *w=(InputTextWidget *)bbGetOutputWidget();