stlab.adobe.com Adobe Systems Incorporated

tab_group_factory.hpp

Go 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_TAB_GROUP_FACTORY_HPP
00010 #define ADOBE_TAB_GROUP_FACTORY_HPP
00011 
00012 /****************************************************************************************************/
00013 
00014 #include <adobe/dictionary.hpp>
00015 #include <adobe/eve.hpp>
00016 
00017 /****************************************************************************************************/
00018 
00019 namespace adobe {
00020 
00021 /****************************************************************************************************/
00022 
00023 struct widget_node_t;
00024 struct factory_token_t;
00025 class widget_factory_t;
00026 
00027 /****************************************************************************************************/
00028 
00029 widget_node_t make_tab_group(const dictionary_t&     parameters,
00030                              const widget_node_t&    parent,
00031                              const factory_token_t&  token,
00032                              const widget_factory_t& factory);
00033 
00034 /****************************************************************************************************/
00035 
00036 inline const layout_attributes_t& tab_group_layout_attributes()
00037 {
00038     static layout_attributes_t result;
00039     static bool                       inited(false);
00040 
00041     if (!inited)
00042     {
00043         inited = true;
00044 
00045         result.placement_m = eve_t::place_overlay;
00046         result.vertical().suppress_m = false; // Allow baselines to propagate
00047         set_margin(result, 10); /* REVISIT FIXED VALUE dialog_margin */
00048     }
00049 
00050     return result;
00051 }
00052 
00053 /****************************************************************************************************/
00054 
00055 } // namespace adobe
00056 
00057 /****************************************************************************************************/
00058 
00059 #endif
00060 
00061 /****************************************************************************************************/

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google