}
-
-
-
-
BBTK_ADD_BLACK_BOX_TO_PACKAGE(wx,ButtonSelectFilesDirectory)
BBTK_BLACK_BOX_IMPLEMENTATION(ButtonSelectFilesDirectory,bbtk::WxBlackBox);
//=====
//=====
void ButtonSelectFilesDirectory::Process()
{
-
ButtonSelectFilesDirectoryWidget* w = (ButtonSelectFilesDirectoryWidget*)bbGetOutputWidget();
if (w)
{
UpdateLabel();
}
-
+
+ if (bbGetInputType()==1)
+ {
+ bbSetOutputOut( bbGetInputDefaultDir() );
+ } else {
+ bbSetOutputOut( bbGetInputDefaultFile() );
+ }
+
}
-//=====
+
+//=====
// 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 ButtonSelectFilesDirectory::CreateWidget(wxWindow* parent)
{
-
bbSetOutputWidget
( new ButtonSelectFilesDirectoryWidget ( this, //bbGetWxParent(),
parent,
bbtk::std2wx(bbGetInputLabel()) ) );
-
-
}
-//=====
+
+//=====
// 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 ButtonSelectFilesDirectory::bbUserSetDefaultValues()
//=====
void ButtonSelectFilesDirectory::bbUserInitializeProcessing()
{
-
}
-//=====
+
+//=====
// 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 ButtonSelectFilesDirectory::bbUserFinalizeProcessing()
{
-
}
void ButtonSelectFilesDirectory::UpdateLabel()