Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

theme.hpp

00001 /*****************************************************************************
00002  * theme.hpp
00003  *****************************************************************************
00004  * Copyright (C) 2003 the VideoLAN team
00005  * $Id: theme.hpp 11664 2005-07-09 06:17:09Z courmisch $
00006  *
00007  * Authors: Cyril Deguet     <[email protected]>
00008  *          Olivier Teulière <[email protected]>
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00023  *****************************************************************************/
00024 
00025 #ifndef THEME_HPP
00026 #define THEME_HPP
00027 
00028 #include "../src/generic_bitmap.hpp"
00029 #include "../src/generic_font.hpp"
00030 #include "../src/generic_layout.hpp"
00031 #include "../src/window_manager.hpp"
00032 #include "../commands/cmd_generic.hpp"
00033 #include "../utils/bezier.hpp"
00034 #include "../utils/variable.hpp"
00035 #include "../controls/ctrl_generic.hpp"
00036 #include <string>
00037 #include <list>
00038 #include <map>
00039 
00040 class Builder;
00041 class Interpreter;
00042 
00044 class Theme: public SkinObject
00045 {
00046     private:
00047         friend class Builder;
00048         friend class Interpreter;
00049     public:
00050         Theme( intf_thread_t *pIntf ): SkinObject( pIntf ),
00051             m_windowManager( getIntf() ) {}
00052         virtual ~Theme();
00053 
00054         void loadConfig();
00055         void saveConfig();
00056 
00057         GenericBitmap *getBitmapById( const string &id );
00058         GenericFont *getFontById( const string &id );
00059         TopWindow *getWindowById( const string &id );
00060         GenericLayout *getLayoutById( const string &id );
00061         CtrlGeneric *getControlById( const string &id );
00062 
00063         WindowManager &getWindowManager() { return m_windowManager; }
00064 
00065     private:
00067         map<string, GenericBitmapPtr> m_bitmaps;
00069         map<string, GenericFontPtr> m_fonts;
00071         map<string, TopWindowPtr> m_windows;
00073         map<string, GenericLayoutPtr> m_layouts;
00075         map<string, CtrlGenericPtr> m_controls;
00077         list<CmdGenericPtr> m_commands;
00079         list<BezierPtr> m_curves;
00081         list<VariablePtr> m_vars;
00082 
00083         WindowManager m_windowManager;
00084 };
00085 
00086 
00087 #endif

Generated on Tue Dec 20 10:14:42 2005 for vlc-0.8.4a by  doxygen 1.4.2