Type \texttt{help wx}, you get something like:
\begin{verbatim}
-Package wx v1.0.0- eduardo.davila/laurent.guigues@creatis.insa-lyon.fr
+Package wx v1.0.0- info-dev@creatis.insa-lyon.fr
Basic graphical interface elements (slider, button ...) based on wxWidgets
Black boxes:
- Button : Button that gives a string
- FileDialog : FileDialog widget (wxFileDialog)
- RadioButton : RadioButton group widget (wxRadioButton) 0-9 entries
- Sizer : Sizer widget (wxSizer)
- Slider : Slider widget (wxSlider)
- Split : Split widget (wxSplitterWindow)
- StaticText : wxWidget Static text
- TextCtrl : TextCtrl widget (wxTextCtrl)
+ Button : Button that gives a string
+ ColourSelectorButton :
+ ColourSelector : Colour Selector widget (wxColourDialog)
+ CommandButton :
+ DirectorySelector :
+ FileSelector : FileDialog widget (wxFileDialog)
+ InputText : TextCtrl widget (wxTextCtrl)
+ LayoutLine : Sizer widget (wxSizer)
+ LayoutSplit : Split widget (wxSplitterWindow)
+ NoteBook :
+ OutputText : wxWidget Static text
+ RadioButton : RadioButton group widget (wxRadioButton) 0-9 entries
+ Slider : Slider widget (wxSlider)
+
\end{verbatim}
You can reproduce the same experiment as above using a
Program: bbtk
Module: $RCSfile: bbtkInterpreter.cxx,v $ $
Language: C++
- Date: $Date: 2008/02/19 18:40:10 $
- Version: $Revision: 1.34 $
+ Date: $Date: 2008/02/20 11:58:32 $
+ Version: $Revision: 1.35 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// For the time being, comment out previous line, and
// uncomment next line to check Transcriptor
- //mExecuter = new bbtk::Transcriptor("GeneratedProgram.txt");
+ // mExecuter = new bbtk::Transcriptor("GeneratedProgram.txt");
// Builds the commands dict
CommandInfoType info;
bool exm = mCommandLine;
mCommandLine = false;
-
try
{
printf("EED: Interpreter::InterpretFile 01\n");
Program: bbtk
Module: $RCSfile: bbtkTranscriptor.h,v $ $
Language: C++
- Date: $Date: 2008/02/14 20:23:51 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2008/02/20 11:58:32 $
+ Version: $Revision: 1.6 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
/// Destructor
~Transcriptor( );
-
+
/// Sets the inputs of the workspace :
void SetInputs(const std::map<std::string,std::string>& m) { mInputs = m; }
load std
+
define PrependDataPath std
author "jpr@creatis.insa-lyon.fr"
description "Prepends the input string file 'last name' with the default DataPath found in bbtk_config_xml"
-description "Simple test of wx::LayoutSplit widgets"
-author "jean-pierre.roux@creatis.univ-lyon1.fr"
+description "Simple test of wx::LayoutLine widgets"
+author "jean-pierre.roux [at] creatis [dot] univ [dash] lyon1 [dot] fr"
category "example;widget"
load std
+++ /dev/null
-/*=========================================================================
-
- Program: bbtk
- Module: $RCSfile: bbwxColourDialog.cxx,v $
- Language: C++
- Date: $Date: 2008/02/14 19:19:52 $
- Version: $Revision: 1.2 $
-
- Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
- l'Image). All rights reserved. See Doc/License.txt or
- http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
-
- This software is distributed WITHOUT ANY WARRANTY; without even
- the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- PURPOSE. See the above copyright notices for more information.
-
-=========================================================================*/
-/**
- * \file
- * \brief
- */
-
-
-#ifdef _USE_WXWIDGETS_
-
-
-#include "bbwxColourDialog.h"
-#include "bbwxPackage.h"
-
-#include <wx/colordlg.h>
-
-
-
-namespace bbwx
-{
-
- BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,ColourDialog);
- BBTK_USER_BLACK_BOX_IMPLEMENTATION(ColourDialog,bbtk::AtomicBlackBox);
-
-
- void ColourDialog::bbUserConstructor()
- {
- }
-
- void ColourDialog::Process()
- {
- bbtkDebugMessageInc("Core",9,"ColourDialog::Process() ["
- <<bbGetFullName()<<"]"<<std::endl);
-
- wxColourDialog *colordialog = new wxColourDialog( 0 );
- colordialog->ShowModal();
- if (colordialog->GetReturnCode()==wxID_OK)
- {
- char col[100];
- wxColour& c = colordialog->GetColourData().GetColour();
- sprintf(col,"%f %f %f",c.Red()/255.,c.Green()/255.,c.Blue()/255.);
- bbSetOutputOut( col );
- } else {
- bbSetOutputOut("");
- }
- bbtkDebugDecTab("Core",9);
- }
-
-// void ColourDialog::CreateWidget()
-// {
-// mColorDialog = new wxColourDialog( 0 );
-// bbSetOutputWidget( mColorDialog );
-// }
-
-}//namespace bbwx
-
-#endif // _USE_WXWIDGETS_
-
+++ /dev/null
-/*=========================================================================
-
- Program: bbtk
- Module: $RCSfile: bbwxColourDialog.h,v $
- Language: C++
- Date: $Date: 2008/02/14 19:19:52 $
- Version: $Revision: 1.2 $
-
- Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
- l'Image). All rights reserved. See Doc/License.txt or
- http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
-
- This software is distributed WITHOUT ANY WARRANTY; without even
- the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- PURPOSE. See the above copyright notices for more information.
-
-=========================================================================*//**
- /**
- * \file
- * \brief Short description in one line
- *
- * Long description which
- * can span multiple lines
-*/
-
-/**
- * \class bbwx::ColorDialog
- * \brief
-
- */
-
-#ifdef _USE_WXWIDGETS_
-
-
-#ifndef __bbWxColourDialog_h__
-#define __bbWxColourDialog_h__
-
-#include "bbtkWxBlackBox.h"
-
-
-// Namespace of the package "wx" is "bbwx"
-// Namespace associated to packages should be of the form :
-// bbPACKAGENAME
-namespace bbwx
-{
-
-
-
-
- //=================================================================
- class /*BBTK_EXPORT*/ ColourDialog : public bbtk::AtomicBlackBox
- {
- BBTK_USER_BLACK_BOX_INTERFACE(ColourDialog,bbtk::AtomicBlackBox);
- BBTK_DECLARE_OUTPUT(Out,std::string);
- BBTK_PROCESS(Process);
-// BBTK_CREATE_WIDGET(CreateWidget);
- void Process();
-// void CreateWidget();
-
- protected:
- virtual void bbUserConstructor();
- // private:
- // wxColourDialog* mColorDialog;
- };
- //=================================================================
-
-
- //=================================================================
- // UserBlackBox description
- BBTK_BEGIN_DESCRIBE_BLACK_BOX(ColourDialog,bbtk::AtomicBlackBox);
- // Already inserted for any WxBlackBox BBTK_CATEGORY("widget");
- BBTK_NAME("ColourDialog");
- BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
- BBTK_DESCRIPTION("Colour chooser dialog (bbfication of wxColourDialog)");
- BBTK_OUTPUT(ColourDialog,Out,"The colour selected by the user",std::string);
- BBTK_END_DESCRIBE_BLACK_BOX(ColourDialog);
- //=================================================================
-
-
-
-}
-
-
-
-//namespace bbtk
-#endif //__bbtkWxColourDialog_h__
-
-#endif //_USE_WXWIDGETS_