00001
00002
00003 #ifndef _HILDON_FMMM_FILE_CHOOSER_DIALOG_H
00004 #define _HILDON_FMMM_FILE_CHOOSER_DIALOG_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include <gtkmm/dialog.h>
00031 #include <gtkmm/filechooser.h>
00032 #include <hildon-fmmm/file-system-model.h>
00033
00034
00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00036 typedef struct _HildonFileChooserDialog HildonFileChooserDialog;
00037 typedef struct _HildonFileChooserDialogClass HildonFileChooserDialogClass;
00038 #endif
00039
00040
00041 namespace Hildon
00042 { class FileChooserDialog_Class; }
00043 namespace Hildon
00044 {
00045
00051 class FileChooserDialog
00052 : public Gtk::Dialog,
00053 public Gtk::FileChooser
00054 {
00055 public:
00056 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00057 typedef FileChooserDialog CppObjectType;
00058 typedef FileChooserDialog_Class CppClassType;
00059 typedef HildonFileChooserDialog BaseObjectType;
00060 typedef HildonFileChooserDialogClass BaseClassType;
00061 #endif
00062
00063 virtual ~FileChooserDialog();
00064
00065 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00066
00067 private:
00068 friend class FileChooserDialog_Class;
00069 static CppClassType filechooserdialog_class_;
00070
00071
00072 FileChooserDialog(const FileChooserDialog&);
00073 FileChooserDialog& operator=(const FileChooserDialog&);
00074
00075 protected:
00076 explicit FileChooserDialog(const Glib::ConstructParams& construct_params);
00077 explicit FileChooserDialog(HildonFileChooserDialog* castitem);
00078
00079 #endif
00080
00081 public:
00082 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00083 static GType get_type() G_GNUC_CONST;
00084 static GType get_base_type() G_GNUC_CONST;
00085 #endif
00086
00088 HildonFileChooserDialog* gobj() { return reinterpret_cast<HildonFileChooserDialog*>(gobject_); }
00089
00091 const HildonFileChooserDialog* gobj() const { return reinterpret_cast<HildonFileChooserDialog*>(gobject_); }
00092
00093
00094 public:
00095
00096 #ifdef GLIBMM_VFUNCS_ENABLED
00097 #endif //GLIBMM_VFUNCS_ENABLED
00098
00099 protected:
00100
00101 #ifdef GLIBMM_VFUNCS_ENABLED
00102 #endif //GLIBMM_VFUNCS_ENABLED
00103
00104
00105 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00106 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00107
00108
00109 private:
00110
00111
00112 public:
00113 explicit FileChooserDialog(Gtk::FileChooserAction action);
00114 explicit FileChooserDialog(Gtk::Window& parent, Gtk::FileChooserAction action);
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00130 void set_safe_folder(const Glib::ustring& local_path);
00131
00135 void set_safe_folder_uri(const Glib::ustring& uri);
00136
00140 Glib::ustring get_safe_folder() const;
00141
00145 Glib::ustring get_safe_folder_uri() const;
00146
00147 #ifdef GLIBMM_PROPERTIES_ENABLED
00148
00154 Glib::PropertyProxy<Glib::ustring> property_empty_text() ;
00155 #endif //#GLIBMM_PROPERTIES_ENABLED
00156
00157 #ifdef GLIBMM_PROPERTIES_ENABLED
00158
00164 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_empty_text() const;
00165 #endif //#GLIBMM_PROPERTIES_ENABLED
00166
00167 #ifdef GLIBMM_PROPERTIES_ENABLED
00168
00174 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<FileSystemModel> > property_file_system_model() const;
00175 #endif //#GLIBMM_PROPERTIES_ENABLED
00176
00177
00178 #ifdef GLIBMM_PROPERTIES_ENABLED
00179
00185 Glib::PropertyProxy<bool> property_show_folder_button() ;
00186 #endif //#GLIBMM_PROPERTIES_ENABLED
00187
00188 #ifdef GLIBMM_PROPERTIES_ENABLED
00189
00195 Glib::PropertyProxy_ReadOnly<bool> property_show_folder_button() const;
00196 #endif //#GLIBMM_PROPERTIES_ENABLED
00197
00198 #ifdef GLIBMM_PROPERTIES_ENABLED
00199
00205 Glib::PropertyProxy<bool> property_show_location() ;
00206 #endif //#GLIBMM_PROPERTIES_ENABLED
00207
00208 #ifdef GLIBMM_PROPERTIES_ENABLED
00209
00215 Glib::PropertyProxy_ReadOnly<bool> property_show_location() const;
00216 #endif //#GLIBMM_PROPERTIES_ENABLED
00217
00218 #ifdef GLIBMM_PROPERTIES_ENABLED
00219
00225 Glib::PropertyProxy<bool> property_autonaming() ;
00226 #endif //#GLIBMM_PROPERTIES_ENABLED
00227
00228 #ifdef GLIBMM_PROPERTIES_ENABLED
00229
00235 Glib::PropertyProxy_ReadOnly<bool> property_autonaming() const;
00236 #endif //#GLIBMM_PROPERTIES_ENABLED
00237
00238 #ifdef GLIBMM_PROPERTIES_ENABLED
00239
00245 Glib::PropertyProxy<Glib::ustring> property_open_button_text() ;
00246 #endif //#GLIBMM_PROPERTIES_ENABLED
00247
00248 #ifdef GLIBMM_PROPERTIES_ENABLED
00249
00255 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_open_button_text() const;
00256 #endif //#GLIBMM_PROPERTIES_ENABLED
00257
00258 #ifdef GLIBMM_PROPERTIES_ENABLED
00259
00265 Glib::PropertyProxy<Glib::ustring> property_save_multiple() ;
00266 #endif //#GLIBMM_PROPERTIES_ENABLED
00267
00268 #ifdef GLIBMM_PROPERTIES_ENABLED
00269
00275 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_save_multiple() const;
00276 #endif //#GLIBMM_PROPERTIES_ENABLED
00277
00278 #ifdef GLIBMM_PROPERTIES_ENABLED
00279
00285 Glib::PropertyProxy<int> property_max_name_length() ;
00286 #endif //#GLIBMM_PROPERTIES_ENABLED
00287
00288 #ifdef GLIBMM_PROPERTIES_ENABLED
00289
00295 Glib::PropertyProxy_ReadOnly<int> property_max_name_length() const;
00296 #endif //#GLIBMM_PROPERTIES_ENABLED
00297
00298 #ifdef GLIBMM_PROPERTIES_ENABLED
00299
00305 Glib::PropertyProxy<int> property_max_full_path_length() ;
00306 #endif //#GLIBMM_PROPERTIES_ENABLED
00307
00308 #ifdef GLIBMM_PROPERTIES_ENABLED
00309
00315 Glib::PropertyProxy_ReadOnly<int> property_max_full_path_length() const;
00316 #endif //#GLIBMM_PROPERTIES_ENABLED
00317
00318
00319 };
00320
00321 }
00322
00323
00324 namespace Glib
00325 {
00331 Hildon::FileChooserDialog* wrap(HildonFileChooserDialog* object, bool take_copy = false);
00332 }
00333
00334
00335 #endif
00336