1 /*****************************************************************************
3 *****************************************************************************
4 * Copyright (C) 2003 the VideoLAN team
7 * Authors: Cyril Deguet <asmax@via.ecp.fr>
8 * Olivier Teulière <ipkiss@via.ecp.fr>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
28 #include "generic_bitmap.hpp"
29 #include "generic_font.hpp"
30 #include "generic_layout.hpp"
32 #include "../src/window_manager.hpp"
33 #include "../commands/cmd_generic.hpp"
34 #include "../utils/bezier.hpp"
35 #include "../utils/variable.hpp"
36 #include "../controls/ctrl_generic.hpp"
44 /// Class storing the data of the current theme
45 class Theme: public SkinObject
49 friend class Interpreter;
51 Theme( intf_thread_t *pIntf ): SkinObject( pIntf ),
52 m_windowManager( getIntf() ) {}
58 GenericBitmap *getBitmapById( const string &id );
59 GenericFont *getFontById( const string &id );
60 Popup *getPopupById( const string &id );
61 TopWindow *getWindowById( const string &id );
62 GenericLayout *getLayoutById( const string &id );
63 CtrlGeneric *getControlById( const string &id );
65 WindowManager &getWindowManager() { return m_windowManager; }
68 /// Store the bitmaps by ID
69 map<string, GenericBitmapPtr> m_bitmaps;
70 /// Store the fonts by ID
71 map<string, GenericFontPtr> m_fonts;
72 /// Store the popups by ID
73 map<string, PopupPtr> m_popups;
74 /// Store the windows by ID
75 map<string, TopWindowPtr> m_windows;
76 /// Store the layouts by ID
77 map<string, GenericLayoutPtr> m_layouts;
78 /// Store the controls by ID
79 map<string, CtrlGenericPtr> m_controls;
80 /// Store the commands
81 list<CmdGenericPtr> m_commands;
82 /// Store the Bezier curves
83 list<BezierPtr> m_curves;
84 /// Store the variables
85 list<VariablePtr> m_vars;
87 WindowManager m_windowManager;