X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fskins2%2Fsrc%2Ftheme.hpp;h=bcad169a2e01771be071f261ead32150caefd972;hb=494ace96d068ee8e4b6b689da0ae469c0c0e4fe3;hp=494bd4ef2be32a9f381191e0ae2be9b7c011c404;hpb=fe087a38282e93addb25fa9598393e40ea233b09;p=vlc diff --git a/modules/gui/skins2/src/theme.hpp b/modules/gui/skins2/src/theme.hpp index 494bd4ef2b..bcad169a2e 100644 --- a/modules/gui/skins2/src/theme.hpp +++ b/modules/gui/skins2/src/theme.hpp @@ -5,7 +5,7 @@ * $Id$ * * Authors: Cyril Deguet - * Olivier Teulière + * Olivier Teulière * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,19 +19,21 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ #ifndef THEME_HPP #define THEME_HPP -#include "../src/generic_bitmap.hpp" -#include "../src/generic_font.hpp" -#include "../src/generic_layout.hpp" +#include "generic_bitmap.hpp" +#include "generic_font.hpp" +#include "generic_layout.hpp" +#include "popup.hpp" #include "../src/window_manager.hpp" #include "../commands/cmd_generic.hpp" #include "../utils/bezier.hpp" #include "../utils/variable.hpp" +#include "../utils/position.hpp" #include "../controls/ctrl_generic.hpp" #include #include @@ -54,11 +56,13 @@ class Theme: public SkinObject void loadConfig(); void saveConfig(); - GenericBitmap *getBitmapById( const string &id ); - GenericFont *getFontById( const string &id ); - TopWindow *getWindowById( const string &id ); - GenericLayout *getLayoutById( const string &id ); - CtrlGeneric *getControlById( const string &id ); + GenericBitmap *getBitmapById( const string &id ) const; + GenericFont *getFontById( const string &id ) const; + Popup *getPopupById( const string &id ) const; + TopWindow *getWindowById( const string &id ) const; + GenericLayout *getLayoutById( const string &id ) const; + CtrlGeneric *getControlById( const string &id ) const; + Position *getPositionById( const string &id ) const; WindowManager &getWindowManager() { return m_windowManager; } @@ -67,12 +71,16 @@ class Theme: public SkinObject map m_bitmaps; /// Store the fonts by ID map m_fonts; + /// Store the popups by ID + map m_popups; /// Store the windows by ID map m_windows; /// Store the layouts by ID map m_layouts; /// Store the controls by ID map m_controls; + /// Store the panel positions by ID + map m_positions; /// Store the commands list m_commands; /// Store the Bezier curves