#include <bbwxFileSelector.h>
Protected Member Functions | |
virtual void | bbUserConstructor () |
Private Member Functions | |
BBTK_BLACK_BOX_INTERFACE (FileSelector, bbtk::AtomicBlackBox) | |
BBTK_DECLARE_INPUT (Title, std::string) | |
BBTK_DECLARE_INPUT (Message, std::string) | |
BBTK_DECLARE_INPUT (DefaultDir, std::string) | |
BBTK_DECLARE_INPUT (DefaultFile, std::string) | |
BBTK_DECLARE_INPUT (Wildcard, std::string) | |
BBTK_DECLARE_INPUT (OpenSave, std::string) | |
BBTK_DECLARE_OUTPUT (Out, std::string) | |
BBTK_PROCESS (Process) | |
void | Process () |
Definition at line 65 of file bbwxFileSelector.h.
bbwx::FileSelector::BBTK_BLACK_BOX_INTERFACE | ( | FileSelector | , | |
bbtk::AtomicBlackBox | ||||
) | [private] |
bbwx::FileSelector::BBTK_DECLARE_INPUT | ( | Title | , | |
std::string | ||||
) | [private] |
bbwx::FileSelector::BBTK_DECLARE_INPUT | ( | Message | , | |
std::string | ||||
) | [private] |
bbwx::FileSelector::BBTK_DECLARE_INPUT | ( | DefaultDir | , | |
std::string | ||||
) | [private] |
bbwx::FileSelector::BBTK_DECLARE_INPUT | ( | DefaultFile | , | |
std::string | ||||
) | [private] |
bbwx::FileSelector::BBTK_DECLARE_INPUT | ( | Wildcard | , | |
std::string | ||||
) | [private] |
bbwx::FileSelector::BBTK_DECLARE_INPUT | ( | OpenSave | , | |
std::string | ||||
) | [private] |
bbwx::FileSelector::BBTK_DECLARE_OUTPUT | ( | Out | , | |
std::string | ||||
) | [private] |
bbwx::FileSelector::BBTK_PROCESS | ( | Process | ) | [private] |
void bbwx::FileSelector::Process | ( | ) | [private] |
Definition at line 56 of file bbwxFileSelector.cxx.
00057 { 00058 bbtkDebugMessageInc("Core",9,"FileSelector::Process() [" 00059 <<bbGetFullName()<<"]"<<std::endl); 00060 00061 long style; 00062 if (bbGetInputOpenSave()=="Save") 00063 { 00064 style = wxSAVE | wxOVERWRITE_PROMPT; 00065 } 00066 else 00067 { 00068 style = wxOPEN | wxFILE_MUST_EXIST; 00069 } 00070 00071 std::string wc(bbGetInputWildcard()); 00072 if (wc=="") 00073 { 00074 wc = "*.*"; 00075 } 00076 00077 00078 wxFileDialog* FD = new wxFileDialog( 0, 00079 bbtk::std2wx(bbGetInputMessage()), 00080 bbtk::std2wx(bbGetInputDefaultDir()), 00081 bbtk::std2wx(bbGetInputDefaultFile()), 00082 bbtk::std2wx(wc), 00083 style, 00084 wxDefaultPosition); 00085 //EED 00086 00087 int result_FD = FD->ShowModal(); 00088 00089 // This line is need it by windows //EED 00090 FD->SetReturnCode( result_FD ); 00091 00092 if (FD->GetReturnCode()==wxID_OK) 00093 { 00094 bbSetOutputOut( bbtk::wx2std (FD->GetPath()) ); 00095 } 00096 else 00097 { 00098 bbSetOutputOut(""); 00099 } 00100 00101 bbtkDebugDecTab("Core",9); 00102 }
void bbwx::FileSelector::bbUserConstructor | ( | ) | [protected, virtual] |