X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=wt%2Fbbtk_wt_PKG%2Fsrc%2FbbwtFileUploader.h;fp=wt%2Fbbtk_wt_PKG%2Fsrc%2FbbwtFileUploader.h;h=fe46f1b1c7cfa8ba932c7b00a7013beae2aa5d36;hb=aec464d8738507b9d26fc6915c7c063cab636dde;hp=0000000000000000000000000000000000000000;hpb=26116b2d4181a4ed3fffa07fbb75ef527d32d740;p=creaWT.git diff --git a/wt/bbtk_wt_PKG/src/bbwtFileUploader.h b/wt/bbtk_wt_PKG/src/bbwtFileUploader.h new file mode 100644 index 0000000..fe46f1b --- /dev/null +++ b/wt/bbtk_wt_PKG/src/bbwtFileUploader.h @@ -0,0 +1,55 @@ +//===== +// 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 __bbwtFileUploader_h_INCLUDED__ +#define __bbwtFileUploader_h_INCLUDED__ +#include "bbwt_EXPORT.h" +#include "bbtkWtBlackBox.h" +#include + +namespace bbwt +{ + +class bbwt_EXPORT FileUploader + : + public bbtk::WtBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(FileUploader,bbtk::WtBlackBox); +//===== +// 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(Title,std::string); + BBTK_DECLARE_INPUT(Path,std::string); + BBTK_DECLARE_INPUT(NameFile,std::string); + BBTK_DECLARE_INPUT(InName,bool); + BBTK_DECLARE_OUTPUT(OutPath,std::string); + BBTK_PROCESS(Process); + void Process(); + BBTK_CREATE_WIDGET(CreateWidget); + void CreateWidget(Wt::WContainerWidget*); + void updatePath(std::string sPath); +//===== +// 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(FileUploader,bbtk::WtBlackBox); +BBTK_NAME("FileUploader"); +BBTK_AUTHOR("gonzalez@creatis.insa-lyon.fr"); +BBTK_DESCRIPTION("No Description."); +BBTK_CATEGORY("__CategoryBlackBox__"); +BBTK_INPUT(FileUploader,Title,"Title prepended to the FileUploader",std::string,""); +BBTK_INPUT(FileUploader,Path,"The destination path of the files",std::string,""); +BBTK_INPUT(FileUploader,NameFile,"The destination name of the uploaded file, if it is empty, the file will be named as the original file in the client",std::string,""); +BBTK_INPUT(FileUploader,InName,"Defines if the web client will show an in text fiel for rename the file in the upload",bool,""); +BBTK_OUTPUT(FileUploader,OutPath,"The complet path of the file loaded, where it was storaged in the server machine",std::string,""); +BBTK_END_DESCRIBE_BLACK_BOX(FileUploader); +//===== +// 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 bbwt + +#endif // __bbwtFileUploader_h_INCLUDED__ +