widget_utils.hppGo to the documentation of this file.00001 /* 00002 Copyright 2005-2007 Adobe Systems Incorporated 00003 Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt 00004 or a copy at http://stlab.adobe.com/licenses.html) 00005 */ 00006 00007 /****************************************************************************************************/ 00008 00009 #ifndef ADOBE_WIDGET_UTILITIES_HPP 00010 #define ADOBE_WIDGET_UTILITIES_HPP 00011 00012 /****************************************************************************************************/ 00013 00014 #include <adobe/future/widgets/headers/platform_widget_utils.hpp> 00015 00016 #include <adobe/future/platform_primitives.hpp> 00017 00018 #include <boost/filesystem/path.hpp> 00019 00020 /****************************************************************************************************/ 00021 00022 namespace adobe { 00023 00024 /****************************************************************************************************/ 00025 00037 name_t state_cell_unique_name(); 00038 00039 /****************************************************************************************************/ 00040 00056 void align_slices(extents_t::slice_t& slice_one, extents_t::slice_t slice_two); 00057 00058 /****************************************************************************************************/ 00059 00060 namespace implementation { 00061 00062 /****************************************************************************************************/ 00063 00077 void set_control_alt_text(platform_control_type control, const std::string& alt_text); 00078 00079 /****************************************************************************************************/ 00080 00093 bool pick_file(boost::filesystem::path& path, platform_display_type dialog_parent = platform_display_type()); 00094 00095 /****************************************************************************************************/ 00096 00109 bool pick_save_path(boost::filesystem::path& path, platform_display_type dialog_parent = platform_display_type()); 00110 00111 /****************************************************************************************************/ 00112 00113 } // namespace implementation 00114 00115 /****************************************************************************************************/ 00116 00128 platform_display_type get_top_level_window(platform_display_type display_element); 00129 00130 /****************************************************************************************************/ 00131 00137 inline void system_beep() 00138 { 00139 #if ADOBE_PLATFORM_MAC 00140 ::SysBeep(10); 00141 #elif ADOBE_PLATFORM_WIN 00142 ::MessageBeep(0xFFFFFFFF); 00143 #endif 00144 } 00145 00146 /****************************************************************************************************/ 00147 00148 } // namespace adobe 00149 00150 /****************************************************************************************************/ 00151 00152 // ADOBE_WIDGET_UTILITIES_HPP 00153 #endif 00154 00155 /****************************************************************************************************/ | ||||

