From: Eduardo Davila Date: Sun, 8 May 2011 08:48:56 +0000 (+0000) Subject: no message X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=8ee546d7257111089f6e87c2c2e2c5394387f9ad;p=bbtk.git no message --- diff --git a/packages/wx/src/bbwxLaunchBrowser.cxx b/packages/wx/src/bbwxLaunchBrowser.cxx new file mode 100644 index 0000000..39ff19e --- /dev/null +++ b/packages/wx/src/bbwxLaunchBrowser.cxx @@ -0,0 +1,74 @@ +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +#include "bbwxLaunchBrowser.h" +#include "bbwxPackage.h" + +#include + +namespace bbwx +{ + +BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,LaunchBrowser) +BBTK_BLACK_BOX_IMPLEMENTATION(LaunchBrowser,bbtk::AtomicBlackBox); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void LaunchBrowser::Process() +{ + +// THE MAIN PROCESSING METHOD BODY +// Here we simply set the input 'In' value to the output 'Out' +// And print out the output value +// INPUT/OUTPUT ACCESSORS ARE OF THE FORM : +// void bbSet{Input|Output}NAME(const TYPE&) +// const TYPE& bbGet{Input|Output}NAME() const +// Where : +// * NAME is the name of the input/output +// (the one provided in the attribute 'name' of the tag 'input') +// * TYPE is the C++ type of the input/output +// (the one provided in the attribute 'type' of the tag 'input') + + wxLaunchDefaultBrowser( wxString( bbGetInputIn().c_str() , wxConvUTF8) ); + +} +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void LaunchBrowser::bbUserSetDefaultValues() +{ + +// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX +// Here we initialize the input 'In' to 0 + bbSetInputIn("http://www.creatis.insa-lyon.fr"); + +} +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void LaunchBrowser::bbUserInitializeProcessing() +{ + +// THE INITIALIZATION METHOD BODY : +// Here does nothing +// but this is where you should allocate the internal/output pointers +// if any + + +} +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void LaunchBrowser::bbUserFinalizeProcessing() +{ + +// THE FINALIZATION METHOD BODY : +// Here does nothing +// but this is where you should desallocate the internal/output pointers +// if any + +} +} +// EO namespace bbwx + + diff --git a/packages/wx/src/bbwxLaunchBrowser.h b/packages/wx/src/bbwxLaunchBrowser.h new file mode 100644 index 0000000..a1b2234 --- /dev/null +++ b/packages/wx/src/bbwxLaunchBrowser.h @@ -0,0 +1,47 @@ +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +#ifndef __bbwxLaunchBrowser_h_INCLUDED__ +#define __bbwxLaunchBrowser_h_INCLUDED__ +#include "bbwx_EXPORT.h" +#include "bbtkAtomicBlackBox.h" +#include "iostream" + +#include + +namespace bbwx +{ + +class bbwx_EXPORT LaunchBrowser + : + public bbtk::AtomicBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(LaunchBrowser,bbtk::AtomicBlackBox); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== + BBTK_DECLARE_INPUT(In,std::string); + // BBTK_DECLARE_OUTPUT(Out,double); + BBTK_PROCESS(Process); + void Process(); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +}; + +BBTK_BEGIN_DESCRIBE_BLACK_BOX(LaunchBrowser,bbtk::AtomicBlackBox); +BBTK_NAME("LaunchBrowser"); +BBTK_AUTHOR("Info-Dev"); +BBTK_DESCRIPTION("Launch default Browser"); +BBTK_CATEGORY(""); + BBTK_INPUT(LaunchBrowser,In,"URL",std::string,""); +//BBTK_OUTPUT(LaunchBrowser,Out,"First output",double,""); +BBTK_END_DESCRIBE_BLACK_BOX(LaunchBrowser); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +} +// EO namespace bbwx + +#endif // __bbwxLaunchBrowser_h_INCLUDED__ + diff --git a/samples/SampleOutputObserver/bbtkSampleOutputObserver.cxx b/samples/SampleOutputObserver/bbtkSampleOutputObserver.cxx index 9d32543..d001663 100644 --- a/samples/SampleOutputObserver/bbtkSampleOutputObserver.cxx +++ b/samples/SampleOutputObserver/bbtkSampleOutputObserver.cxx @@ -132,7 +132,7 @@ void ClassWithTwoSliders::OnSlider( bbtk::BlackBox::Pointer p, int main(int argv, char* argc[]) { // To track all ... - // bbtk::MessageManager::SetMessageLevel("all",9); + bbtk::MessageManager::SetMessageLevel("all",9); SliderCallback(); ClassWithTwoSliders C; }