Update of /cvsroot/adobe-source/sandbox/adobe-source/adobe/future/widgets/headers/win32
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8667/adobe/future/widgets/headers/win32
Added Files:
image_t_impl.hpp os_utilities.hpp
Log Message:
image_t (icons and pictures) support for Mac and Win32, along with a GIL image factory and a (sample) Targa file format importing module for that factory. Also added alert.adm/eve as a sample for the icon support. Added the notion of a working directory to the modal dialog interface to reference external resources. Also added an alert API that leverages modal_dialog_interface. Other misc. bug fixes and changes.
--- NEW FILE: image_t_impl.hpp ---
/*
Copyright 2005-2006 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://opensource.adobe.com/licenses.html)
*/
/****************************************************************************************************/
#ifndef ADOBE_IMAGE_T_IMPL_HPP
#define ADOBE_IMAGE_T_IMPL_HPP
/****************************************************************************************************/
#include <windows.h>
#include "ui_core.hpp"
#include "image_t.hpp"
#include <adobe/future/memory.hpp>
#include <boost/operators.hpp>
/****************************************************************************************************/
namespace adobe {
/****************************************************************************************************/
typedef adobe::auto_resource<HWND> auto_hwnd_t;
/****************************************************************************************************/
struct image_t::implementation_t : boost::equality_comparable<image_t::implementation_t>
{
implementation_t(GIL::rgba8_image& image);
implementation_t(const implementation_t& rhs);
implementation_t& operator= (const implementation_t& rhs);
void initialize();
extents_t measure();
void place(const point_2d_t& position, const extents_t& extents);
void enable(bool make_enabled);
void set(GIL::rgba8_image& image);
inline friend bool operator==(const adobe::image_t::implementation_t& x,
const adobe::image_t::implementation_t& y)
{ return &x == &y; }
auto_hwnd_t window_m;
GIL::rgba8_image image_m;
};
/****************************************************************************************************/
} // namespace adobe
/****************************************************************************************************/
#endif
/****************************************************************************************************/
--- NEW FILE: os_utilities.hpp ---
/*
Copyright 2005-2006 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://opensource.adobe.com/licenses.html)
*/
/****************************************************************************************************/
#ifndef ADOBE_UI_CORE_OS_UTILITIES_HPP
#define ADOBE_UI_CORE_OS_UTILITIES_HPP
/****************************************************************************************************/
#include <adobe/config.hpp>
#include <boost/filesystem/path.hpp>
/****************************************************************************************************/
namespace adobe {
/****************************************************************************************************/
namespace implementation {
/****************************************************************************************************/
bool pick_save_path(boost::filesystem::path& path);
/****************************************************************************************************/
} // namespace implementation
/****************************************************************************************************/
} // namespace adobe
/****************************************************************************************************/
#endif
/****************************************************************************************************/
|