Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00031
00032 #pragma once
00033
00034 #include "../api_gui.h"
00035 #include "../gui_component.h"
00036
00037 class CL_FileDialog_Impl;
00038
00042 class CL_API_GUI CL_SaveFileDialog
00043 {
00046 public:
00049 CL_SaveFileDialog(CL_GUIComponent *owner);
00050
00051 virtual ~CL_SaveFileDialog();
00052
00056 public:
00059 CL_String get_filename() const;
00060
00064 public:
00067 void set_filename(const CL_String &filename);
00068
00073 void add_filter(const CL_String &filter_description, const CL_String &filter_extension, bool is_default = false);
00074
00076 void clear_filters();
00077
00080 void set_filter_index(int filter_index);
00081
00084 void set_initial_directory(const CL_String &path);
00085
00088 void set_title(const CL_String &title);
00089
00092 bool show();
00093
00097 private:
00098 CL_SharedPtr<CL_FileDialog_Impl> impl;
00100 };
00101