00001 /* 00002 ClanGUI, copyrights by various people. Have a look in the CREDITS file. 00003 00004 This sourcecode is distributed using the Library GNU Public Licence, 00005 version 2 or (at your option) any later version. Please read LICENSE 00006 for details. 00007 */ 00008 00010 00011 #ifndef header_file_dialog 00012 #define header_file_dialog 00013 00014 #include "component.h" 00015 00016 class CL_FileDialog : public CL_Component 00017 //: File dialog component 00018 { 00019 public: 00021 CL_FileDialog( 00022 const CL_ComponentOptions &options, 00023 CL_Component *parent, 00024 CL_StyleManager *style = NULL); 00025 00026 CL_FileDialog( 00027 const std::string &path, 00028 const std::string &filter, 00029 CL_Component *parent, 00030 CL_StyleManager *style = NULL); 00031 00032 virtual ~CL_FileDialog(); 00033 00034 public: 00036 00037 public: 00039 void set_path(const std::string &path); 00040 void set_filter(const std::string &filter); 00041 00042 public: 00044 CL_Signal_v1<const std::string &> &sig_ok(); 00045 CL_Signal_v0 &sig_cancel(); 00046 00048 private: 00049 CL_FileDialog(const CL_FileDialog ©) : CL_Component(NULL, NULL) { return; } // disallow copy construction. 00050 class CL_FileDialog_Generic *impl; 00051 }; 00052 00053 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001