2004-01-04 00:31:34 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* builder_data.hpp
|
|
|
|
*****************************************************************************
|
2005-07-09 08:17:09 +02:00
|
|
|
* Copyright (C) 2003 the VideoLAN team
|
2004-03-06 17:25:46 +01:00
|
|
|
* $Id$
|
2004-01-04 00:31:34 +01:00
|
|
|
*
|
|
|
|
* Authors: Cyril Deguet <asmax@via.ecp.fr>
|
2005-08-20 02:31:27 +02:00
|
|
|
* Olivier Teuliere <ipkiss@via.ecp.fr>
|
2004-01-04 00:31:34 +01:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2006-01-13 00:10:04 +01:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
|
2004-01-04 00:31:34 +01:00
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
//File generated by gen_builder.py
|
|
|
|
//DO NOT EDIT BY HAND !
|
|
|
|
|
|
|
|
#ifndef BUILDER_DATA_HPP
|
|
|
|
#define BUILDER_DATA_HPP
|
|
|
|
|
2008-05-31 20:49:57 +02:00
|
|
|
#include <vlc_common.h>
|
2004-01-04 00:31:34 +01:00
|
|
|
#include <list>
|
2004-02-29 17:49:55 +01:00
|
|
|
#include <map>
|
2004-01-04 00:31:34 +01:00
|
|
|
#include <string>
|
|
|
|
|
2004-03-06 17:25:46 +01:00
|
|
|
using namespace std;
|
|
|
|
|
2004-01-04 00:31:34 +01:00
|
|
|
/// Structure for mapping data from XML file
|
|
|
|
struct BuilderData
|
|
|
|
{
|
|
|
|
|
|
|
|
/// Type definition
|
|
|
|
struct Theme
|
|
|
|
{
|
2004-05-12 20:56:51 +02:00
|
|
|
Theme( const string & tooltipfont, int magnet, uint32_t alpha, uint32_t moveAlpha ):
|
|
|
|
m_tooltipfont( tooltipfont ), m_magnet( magnet ), m_alpha( alpha ), m_moveAlpha( moveAlpha ) {}
|
2004-01-04 00:31:34 +01:00
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_tooltipfont;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_magnet;
|
|
|
|
uint32_t m_alpha;
|
|
|
|
uint32_t m_moveAlpha;
|
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<Theme> m_listTheme;
|
|
|
|
|
|
|
|
/// Type definition
|
|
|
|
struct Bitmap
|
|
|
|
{
|
2009-12-26 13:54:16 +01:00
|
|
|
Bitmap( const string & id, const string & fileName, uint32_t alphaColor, int nbFrames, int fps, int nbLoops ):
|
|
|
|
m_id( id ), m_fileName( fileName ), m_alphaColor( alphaColor ), m_nbFrames( nbFrames ), m_fps( fps ), m_nbLoops( nbLoops ) {}
|
2004-01-04 00:31:34 +01:00
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
|
|
|
string m_fileName;
|
2004-01-04 00:31:34 +01:00
|
|
|
uint32_t m_alphaColor;
|
2005-12-03 12:43:35 +01:00
|
|
|
int m_nbFrames;
|
|
|
|
int m_fps;
|
2009-12-26 13:54:16 +01:00
|
|
|
int m_nbLoops;
|
2004-01-04 00:31:34 +01:00
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<Bitmap> m_listBitmap;
|
|
|
|
|
2005-11-06 15:23:16 +01:00
|
|
|
/// Type definition
|
|
|
|
struct SubBitmap
|
|
|
|
{
|
2009-12-26 13:54:16 +01:00
|
|
|
SubBitmap( const string & id, const string & parent, int x, int y, int width, int height, int nbFrames, int fps, int nbLoops ):
|
|
|
|
m_id( id ), m_parent( parent ), m_x( x ), m_y( y ), m_width( width ), m_height( height ), m_nbFrames( nbFrames ), m_fps( fps ), m_nbLoops( nbLoops ) {}
|
2005-11-06 15:23:16 +01:00
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
|
|
|
string m_parent;
|
2005-11-06 15:23:16 +01:00
|
|
|
int m_x;
|
|
|
|
int m_y;
|
|
|
|
int m_width;
|
|
|
|
int m_height;
|
2005-12-03 12:43:35 +01:00
|
|
|
int m_nbFrames;
|
|
|
|
int m_fps;
|
2009-12-26 13:54:16 +01:00
|
|
|
int m_nbLoops;
|
2005-11-06 15:23:16 +01:00
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<SubBitmap> m_listSubBitmap;
|
|
|
|
|
2004-03-27 01:21:13 +01:00
|
|
|
/// Type definition
|
|
|
|
struct BitmapFont
|
|
|
|
{
|
|
|
|
BitmapFont( const string & id, const string & file, const string & type ):
|
|
|
|
m_id( id ), m_file( file ), m_type( type ) {}
|
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
|
|
|
string m_file;
|
|
|
|
string m_type;
|
2004-03-27 01:21:13 +01:00
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<BitmapFont> m_listBitmapFont;
|
|
|
|
|
2004-01-04 00:31:34 +01:00
|
|
|
/// Type definition
|
|
|
|
struct Font
|
|
|
|
{
|
2004-03-24 23:10:56 +01:00
|
|
|
Font( const string & id, const string & fontFile, int size ):
|
|
|
|
m_id( id ), m_fontFile( fontFile ), m_size( size ) {}
|
2004-01-04 00:31:34 +01:00
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
|
|
|
string m_fontFile;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_size;
|
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<Font> m_listFont;
|
|
|
|
|
2005-12-04 15:47:26 +01:00
|
|
|
/// Type definition
|
|
|
|
struct PopupMenu
|
|
|
|
{
|
|
|
|
PopupMenu( const string & id ):
|
|
|
|
m_id( id ) {}
|
|
|
|
|
|
|
|
string m_id;
|
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<PopupMenu> m_listPopupMenu;
|
|
|
|
|
|
|
|
/// Type definition
|
|
|
|
struct MenuItem
|
|
|
|
{
|
|
|
|
MenuItem( const string & label, const string & action, int pos, const string & popupId ):
|
|
|
|
m_label( label ), m_action( action ), m_pos( pos ), m_popupId( popupId ) {}
|
|
|
|
|
|
|
|
string m_label;
|
|
|
|
string m_action;
|
|
|
|
int m_pos;
|
|
|
|
string m_popupId;
|
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<MenuItem> m_listMenuItem;
|
|
|
|
|
|
|
|
/// Type definition
|
|
|
|
struct MenuSeparator
|
|
|
|
{
|
|
|
|
MenuSeparator( int pos, const string & popupId ):
|
|
|
|
m_pos( pos ), m_popupId( popupId ) {}
|
|
|
|
|
|
|
|
int m_pos;
|
|
|
|
string m_popupId;
|
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<MenuSeparator> m_listMenuSeparator;
|
|
|
|
|
2004-01-04 00:31:34 +01:00
|
|
|
/// Type definition
|
|
|
|
struct Window
|
|
|
|
{
|
skins2: implement relative positioning
So far in skins2, all x, y, width and height were given in pixels, and
no reference to the screen resolution could be made.
This patch implements the following :
- all x, y, width, height can be given in pixels or in % of their container.
For windows, the container is the screen. For widgets, it can be the
layout or a panel.
- Five new tags eases up positioning
- position : relative position given as "Center", "West", "NorthWest", ...
- x/y-margin : margins to take into account (in px or %) wrt the borders.
- x/y-offset : additional offset to apply (in px or %).
- the image control can now accept a width and a height parameters.
2010-11-22 15:38:56 +01:00
|
|
|
Window( const string & id, int xPos, int yPos, const string & position, const string & xOffset, const string & yOffset, const string & xMargin, const string & yMargin, bool visible, bool dragDrop, bool playOnDrop ):
|
|
|
|
m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_position( position ), m_xOffset( xOffset ), m_yOffset( yOffset ), m_xMargin( xMargin ), m_yMargin( yMargin ), m_visible( visible ), m_dragDrop( dragDrop ), m_playOnDrop( playOnDrop ) {}
|
2004-01-04 00:31:34 +01:00
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_xPos;
|
|
|
|
int m_yPos;
|
skins2: implement relative positioning
So far in skins2, all x, y, width and height were given in pixels, and
no reference to the screen resolution could be made.
This patch implements the following :
- all x, y, width, height can be given in pixels or in % of their container.
For windows, the container is the screen. For widgets, it can be the
layout or a panel.
- Five new tags eases up positioning
- position : relative position given as "Center", "West", "NorthWest", ...
- x/y-margin : margins to take into account (in px or %) wrt the borders.
- x/y-offset : additional offset to apply (in px or %).
- the image control can now accept a width and a height parameters.
2010-11-22 15:38:56 +01:00
|
|
|
string m_position;
|
|
|
|
string m_xOffset;
|
|
|
|
string m_yOffset;
|
|
|
|
string m_xMargin;
|
|
|
|
string m_yMargin;
|
2004-01-04 00:31:34 +01:00
|
|
|
bool m_visible;
|
|
|
|
bool m_dragDrop;
|
|
|
|
bool m_playOnDrop;
|
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<Window> m_listWindow;
|
|
|
|
|
|
|
|
/// Type definition
|
|
|
|
struct Layout
|
|
|
|
{
|
|
|
|
Layout( const string & id, int width, int height, int minWidth, int maxWidth, int minHeight, int maxHeight, const string & windowId ):
|
|
|
|
m_id( id ), m_width( width ), m_height( height ), m_minWidth( minWidth ), m_maxWidth( maxWidth ), m_minHeight( minHeight ), m_maxHeight( maxHeight ), m_windowId( windowId ) {}
|
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_width;
|
|
|
|
int m_height;
|
|
|
|
int m_minWidth;
|
|
|
|
int m_maxWidth;
|
|
|
|
int m_minHeight;
|
|
|
|
int m_maxHeight;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_windowId;
|
2004-01-04 00:31:34 +01:00
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<Layout> m_listLayout;
|
|
|
|
|
|
|
|
/// Type definition
|
|
|
|
struct Anchor
|
|
|
|
{
|
2006-06-04 01:57:40 +02:00
|
|
|
Anchor( int xPos, int yPos, const string & leftTop, int range, int priority, const string & points, const string & layoutId ):
|
|
|
|
m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_range( range ), m_priority( priority ), m_points( points ), m_layoutId( layoutId ) {}
|
2004-01-04 00:31:34 +01:00
|
|
|
|
|
|
|
int m_xPos;
|
|
|
|
int m_yPos;
|
2006-06-04 01:57:40 +02:00
|
|
|
string m_leftTop;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_range;
|
|
|
|
int m_priority;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_points;
|
|
|
|
string m_layoutId;
|
2004-01-04 00:31:34 +01:00
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<Anchor> m_listAnchor;
|
|
|
|
|
|
|
|
/// Type definition
|
|
|
|
struct Button
|
|
|
|
{
|
2007-01-28 17:49:30 +01:00
|
|
|
Button( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & visible, const string & upId, const string & downId, const string & overId, const string & actionId, const string & tooltip, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
|
|
|
|
m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_visible( visible ), m_upId( upId ), m_downId( downId ), m_overId( overId ), m_actionId( actionId ), m_tooltip( tooltip ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
|
2004-01-04 00:31:34 +01:00
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_xPos;
|
|
|
|
int m_yPos;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_leftTop;
|
|
|
|
string m_rightBottom;
|
2006-08-05 15:37:06 +02:00
|
|
|
bool m_xKeepRatio;
|
|
|
|
bool m_yKeepRatio;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_visible;
|
|
|
|
string m_upId;
|
|
|
|
string m_downId;
|
|
|
|
string m_overId;
|
|
|
|
string m_actionId;
|
|
|
|
string m_tooltip;
|
|
|
|
string m_help;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_layer;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_windowId;
|
|
|
|
string m_layoutId;
|
2007-01-28 17:49:30 +01:00
|
|
|
string m_panelId;
|
2004-01-04 00:31:34 +01:00
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<Button> m_listButton;
|
|
|
|
|
|
|
|
/// Type definition
|
|
|
|
struct Checkbox
|
|
|
|
{
|
2007-01-28 17:49:30 +01:00
|
|
|
Checkbox( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & visible, const string & up1Id, const string & down1Id, const string & over1Id, const string & up2Id, const string & down2Id, const string & over2Id, const string & state, const string & action1, const string & action2, const string & tooltip1, const string & tooltip2, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
|
|
|
|
m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_visible( visible ), m_up1Id( up1Id ), m_down1Id( down1Id ), m_over1Id( over1Id ), m_up2Id( up2Id ), m_down2Id( down2Id ), m_over2Id( over2Id ), m_state( state ), m_action1( action1 ), m_action2( action2 ), m_tooltip1( tooltip1 ), m_tooltip2( tooltip2 ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
|
2004-01-04 00:31:34 +01:00
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_xPos;
|
|
|
|
int m_yPos;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_leftTop;
|
|
|
|
string m_rightBottom;
|
2006-08-05 15:37:06 +02:00
|
|
|
bool m_xKeepRatio;
|
|
|
|
bool m_yKeepRatio;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_visible;
|
|
|
|
string m_up1Id;
|
|
|
|
string m_down1Id;
|
|
|
|
string m_over1Id;
|
|
|
|
string m_up2Id;
|
|
|
|
string m_down2Id;
|
|
|
|
string m_over2Id;
|
|
|
|
string m_state;
|
|
|
|
string m_action1;
|
|
|
|
string m_action2;
|
|
|
|
string m_tooltip1;
|
|
|
|
string m_tooltip2;
|
|
|
|
string m_help;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_layer;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_windowId;
|
|
|
|
string m_layoutId;
|
2007-01-28 17:49:30 +01:00
|
|
|
string m_panelId;
|
2004-01-04 00:31:34 +01:00
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<Checkbox> m_listCheckbox;
|
|
|
|
|
|
|
|
/// Type definition
|
|
|
|
struct Image
|
|
|
|
{
|
skins2: implement relative positioning
So far in skins2, all x, y, width and height were given in pixels, and
no reference to the screen resolution could be made.
This patch implements the following :
- all x, y, width, height can be given in pixels or in % of their container.
For windows, the container is the screen. For widgets, it can be the
layout or a panel.
- Five new tags eases up positioning
- position : relative position given as "Center", "West", "NorthWest", ...
- x/y-margin : margins to take into account (in px or %) wrt the borders.
- x/y-offset : additional offset to apply (in px or %).
- the image control can now accept a width and a height parameters.
2010-11-22 15:38:56 +01:00
|
|
|
Image( const string & id, int xPos, int yPos, int width, int height, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & visible, const string & bmpId, const string & actionId, const string & action2Id, const string & resize, const string & help, bool art, int layer, const string & windowId, const string & layoutId, const string & panelId ):
|
|
|
|
m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_width( width ), m_height( height ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_visible( visible ), m_bmpId( bmpId ), m_actionId( actionId ), m_action2Id( action2Id ), m_resize( resize ), m_help( help ), m_art( art ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
|
2004-01-04 00:31:34 +01:00
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_xPos;
|
|
|
|
int m_yPos;
|
skins2: implement relative positioning
So far in skins2, all x, y, width and height were given in pixels, and
no reference to the screen resolution could be made.
This patch implements the following :
- all x, y, width, height can be given in pixels or in % of their container.
For windows, the container is the screen. For widgets, it can be the
layout or a panel.
- Five new tags eases up positioning
- position : relative position given as "Center", "West", "NorthWest", ...
- x/y-margin : margins to take into account (in px or %) wrt the borders.
- x/y-offset : additional offset to apply (in px or %).
- the image control can now accept a width and a height parameters.
2010-11-22 15:38:56 +01:00
|
|
|
int m_width;
|
|
|
|
int m_height;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_leftTop;
|
|
|
|
string m_rightBottom;
|
2006-08-05 15:37:06 +02:00
|
|
|
bool m_xKeepRatio;
|
|
|
|
bool m_yKeepRatio;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_visible;
|
|
|
|
string m_bmpId;
|
|
|
|
string m_actionId;
|
2005-11-28 22:01:07 +01:00
|
|
|
string m_action2Id;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_resize;
|
|
|
|
string m_help;
|
skins2: implement relative positioning
So far in skins2, all x, y, width and height were given in pixels, and
no reference to the screen resolution could be made.
This patch implements the following :
- all x, y, width, height can be given in pixels or in % of their container.
For windows, the container is the screen. For widgets, it can be the
layout or a panel.
- Five new tags eases up positioning
- position : relative position given as "Center", "West", "NorthWest", ...
- x/y-margin : margins to take into account (in px or %) wrt the borders.
- x/y-offset : additional offset to apply (in px or %).
- the image control can now accept a width and a height parameters.
2010-11-22 15:38:56 +01:00
|
|
|
bool m_art;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_layer;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_windowId;
|
|
|
|
string m_layoutId;
|
2007-01-28 17:49:30 +01:00
|
|
|
string m_panelId;
|
2004-01-04 00:31:34 +01:00
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<Image> m_listImage;
|
|
|
|
|
2006-04-17 14:46:51 +02:00
|
|
|
/// Type definition
|
|
|
|
struct IniFile
|
|
|
|
{
|
|
|
|
IniFile( const string & id, const string & file ):
|
|
|
|
m_id( id ), m_file( file ) {}
|
|
|
|
|
|
|
|
string m_id;
|
|
|
|
string m_file;
|
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<IniFile> m_listIniFile;
|
|
|
|
|
2007-01-28 17:49:30 +01:00
|
|
|
/// Type definition
|
|
|
|
struct Panel
|
|
|
|
{
|
|
|
|
Panel( const string & id, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, int width, int height, int layer, const string & windowId, const string & layoutId, const string & panelId ):
|
|
|
|
m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_width( width ), m_height( height ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
|
|
|
|
|
|
|
|
string m_id;
|
|
|
|
int m_xPos;
|
|
|
|
int m_yPos;
|
|
|
|
string m_leftTop;
|
|
|
|
string m_rightBottom;
|
|
|
|
bool m_xKeepRatio;
|
|
|
|
bool m_yKeepRatio;
|
|
|
|
int m_width;
|
|
|
|
int m_height;
|
|
|
|
int m_layer;
|
|
|
|
string m_windowId;
|
|
|
|
string m_layoutId;
|
|
|
|
string m_panelId;
|
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<Panel> m_listPanel;
|
|
|
|
|
2004-01-04 00:31:34 +01:00
|
|
|
/// Type definition
|
|
|
|
struct Text
|
|
|
|
{
|
skins2: implement a new 'focus' attribute for text control
Up to now, text control could but be focusable, and this focus was used
to scroll text, should it be too long for full display.
From a user viewpoint, this behavior is often counterintuitive :
- Most of the time, the control is designed to fit the text anyway, and
scrolling is not expected.
- On the other hand, an underlying control may be used to move the window
(for instance, the title bar), and a text control is expected not to
interact in this endeavor. Same goes for popupmenu, that is expected
to work if one happens to right-click on a text control.
This patch adds a 'focus' attribute to the text control, and leave it to the
skins developper to decide which behavior is most desirable on a per-control
basis. focus still defaults to true to maintain skins current behavior.
2010-12-11 11:56:14 +01:00
|
|
|
Text( const string & id, int xPos, int yPos, const string & visible, const string & fontId, const string & text, int width, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, uint32_t color, const string & scrolling, const string & alignment, const string & focus, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
|
|
|
|
m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_fontId( fontId ), m_text( text ), m_width( width ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_color( color ), m_scrolling( scrolling ), m_alignment( alignment ), m_focus( focus ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
|
2004-01-04 00:31:34 +01:00
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_xPos;
|
|
|
|
int m_yPos;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_visible;
|
|
|
|
string m_fontId;
|
|
|
|
string m_text;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_width;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_leftTop;
|
|
|
|
string m_rightBottom;
|
2006-08-05 15:37:06 +02:00
|
|
|
bool m_xKeepRatio;
|
|
|
|
bool m_yKeepRatio;
|
2004-02-29 17:49:55 +01:00
|
|
|
uint32_t m_color;
|
2005-11-15 21:00:04 +01:00
|
|
|
string m_scrolling;
|
|
|
|
string m_alignment;
|
skins2: implement a new 'focus' attribute for text control
Up to now, text control could but be focusable, and this focus was used
to scroll text, should it be too long for full display.
From a user viewpoint, this behavior is often counterintuitive :
- Most of the time, the control is designed to fit the text anyway, and
scrolling is not expected.
- On the other hand, an underlying control may be used to move the window
(for instance, the title bar), and a text control is expected not to
interact in this endeavor. Same goes for popupmenu, that is expected
to work if one happens to right-click on a text control.
This patch adds a 'focus' attribute to the text control, and leave it to the
skins developper to decide which behavior is most desirable on a per-control
basis. focus still defaults to true to maintain skins current behavior.
2010-12-11 11:56:14 +01:00
|
|
|
string m_focus;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_help;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_layer;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_windowId;
|
|
|
|
string m_layoutId;
|
2007-01-28 17:49:30 +01:00
|
|
|
string m_panelId;
|
2004-01-04 00:31:34 +01:00
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<Text> m_listText;
|
|
|
|
|
|
|
|
/// Type definition
|
|
|
|
struct RadialSlider
|
|
|
|
{
|
2007-01-28 17:49:30 +01:00
|
|
|
RadialSlider( const string & id, const string & visible, int xPos, int yPos, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & sequence, int nbImages, float minAngle, float maxAngle, const string & value, const string & tooltip, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
|
|
|
|
m_id( id ), m_visible( visible ), m_xPos( xPos ), m_yPos( yPos ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_sequence( sequence ), m_nbImages( nbImages ), m_minAngle( minAngle ), m_maxAngle( maxAngle ), m_value( value ), m_tooltip( tooltip ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
|
2004-01-04 00:31:34 +01:00
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
|
|
|
string m_visible;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_xPos;
|
|
|
|
int m_yPos;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_leftTop;
|
|
|
|
string m_rightBottom;
|
2006-08-05 15:37:06 +02:00
|
|
|
bool m_xKeepRatio;
|
|
|
|
bool m_yKeepRatio;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_sequence;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_nbImages;
|
2004-01-11 18:12:17 +01:00
|
|
|
float m_minAngle;
|
|
|
|
float m_maxAngle;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_value;
|
|
|
|
string m_tooltip;
|
|
|
|
string m_help;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_layer;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_windowId;
|
|
|
|
string m_layoutId;
|
2007-01-28 17:49:30 +01:00
|
|
|
string m_panelId;
|
2004-01-04 00:31:34 +01:00
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<RadialSlider> m_listRadialSlider;
|
|
|
|
|
|
|
|
/// Type definition
|
|
|
|
struct Slider
|
|
|
|
{
|
2013-06-22 17:24:11 +02:00
|
|
|
Slider( const string & id, const string & visible, int xPos, int yPos, int width, int height, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & upId, const string & downId, const string & overId, const string & points, int thickness, const string & value, const string & imageId, int nbHoriz, int nbVert, int padHoriz, int padVert, const string & tooltip, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
|
|
|
|
m_id( id ), m_visible( visible ), m_xPos( xPos ), m_yPos( yPos ), m_width( width ), m_height( height ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_upId( upId ), m_downId( downId ), m_overId( overId ), m_points( points ), m_thickness( thickness ), m_value( value ), m_imageId( imageId ), m_nbHoriz( nbHoriz ), m_nbVert( nbVert ), m_padHoriz( padHoriz ), m_padVert( padVert ), m_tooltip( tooltip ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
|
2004-01-04 00:31:34 +01:00
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
|
|
|
string m_visible;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_xPos;
|
|
|
|
int m_yPos;
|
2013-06-22 17:24:11 +02:00
|
|
|
int m_width;
|
|
|
|
int m_height;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_leftTop;
|
|
|
|
string m_rightBottom;
|
2006-08-05 15:37:06 +02:00
|
|
|
bool m_xKeepRatio;
|
|
|
|
bool m_yKeepRatio;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_upId;
|
|
|
|
string m_downId;
|
|
|
|
string m_overId;
|
|
|
|
string m_points;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_thickness;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_value;
|
|
|
|
string m_imageId;
|
|
|
|
int m_nbHoriz;
|
|
|
|
int m_nbVert;
|
|
|
|
int m_padHoriz;
|
|
|
|
int m_padVert;
|
|
|
|
string m_tooltip;
|
|
|
|
string m_help;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_layer;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_windowId;
|
|
|
|
string m_layoutId;
|
2007-01-28 17:49:30 +01:00
|
|
|
string m_panelId;
|
2004-01-04 00:31:34 +01:00
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<Slider> m_listSlider;
|
|
|
|
|
|
|
|
/// Type definition
|
|
|
|
struct List
|
|
|
|
{
|
2007-01-28 17:49:30 +01:00
|
|
|
List( const string & id, int xPos, int yPos, const string & visible, int width, int height, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & fontId, const string & var, const string & bgImageId, const string & fgColor, const string & playColor, const string & bgColor1, const string & bgColor2, const string & selColor, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
|
|
|
|
m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_width( width ), m_height( height ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_fontId( fontId ), m_var( var ), m_bgImageId( bgImageId ), m_fgColor( fgColor ), m_playColor( playColor ), m_bgColor1( bgColor1 ), m_bgColor2( bgColor2 ), m_selColor( selColor ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
|
2004-01-04 00:31:34 +01:00
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_xPos;
|
|
|
|
int m_yPos;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_visible;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_width;
|
|
|
|
int m_height;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_leftTop;
|
|
|
|
string m_rightBottom;
|
2006-08-05 15:37:06 +02:00
|
|
|
bool m_xKeepRatio;
|
|
|
|
bool m_yKeepRatio;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_fontId;
|
|
|
|
string m_var;
|
|
|
|
string m_bgImageId;
|
2006-04-17 14:46:51 +02:00
|
|
|
string m_fgColor;
|
|
|
|
string m_playColor;
|
|
|
|
string m_bgColor1;
|
|
|
|
string m_bgColor2;
|
|
|
|
string m_selColor;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_help;
|
2004-01-04 00:31:34 +01:00
|
|
|
int m_layer;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_windowId;
|
|
|
|
string m_layoutId;
|
2007-01-28 17:49:30 +01:00
|
|
|
string m_panelId;
|
2004-01-04 00:31:34 +01:00
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<List> m_listList;
|
|
|
|
|
2005-08-20 02:31:27 +02:00
|
|
|
/// Type definition
|
|
|
|
struct Tree
|
|
|
|
{
|
2007-01-28 17:49:30 +01:00
|
|
|
Tree( const string & id, int xPos, int yPos, const string & visible, const string & flat, int width, int height, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & fontId, const string & var, const string & bgImageId, const string & itemImageId, const string & openImageId, const string & closedImageId, const string & fgColor, const string & playColor, const string & bgColor1, const string & bgColor2, const string & selColor, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
|
|
|
|
m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_visible( visible ), m_flat( flat ), m_width( width ), m_height( height ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_fontId( fontId ), m_var( var ), m_bgImageId( bgImageId ), m_itemImageId( itemImageId ), m_openImageId( openImageId ), m_closedImageId( closedImageId ), m_fgColor( fgColor ), m_playColor( playColor ), m_bgColor1( bgColor1 ), m_bgColor2( bgColor2 ), m_selColor( selColor ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
|
2005-08-20 02:31:27 +02:00
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
2005-08-20 02:31:27 +02:00
|
|
|
int m_xPos;
|
|
|
|
int m_yPos;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_visible;
|
2006-03-16 17:59:41 +01:00
|
|
|
string m_flat;
|
2005-08-20 02:31:27 +02:00
|
|
|
int m_width;
|
|
|
|
int m_height;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_leftTop;
|
|
|
|
string m_rightBottom;
|
2006-08-05 15:37:06 +02:00
|
|
|
bool m_xKeepRatio;
|
|
|
|
bool m_yKeepRatio;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_fontId;
|
|
|
|
string m_var;
|
|
|
|
string m_bgImageId;
|
|
|
|
string m_itemImageId;
|
|
|
|
string m_openImageId;
|
|
|
|
string m_closedImageId;
|
2006-04-17 14:46:51 +02:00
|
|
|
string m_fgColor;
|
|
|
|
string m_playColor;
|
|
|
|
string m_bgColor1;
|
|
|
|
string m_bgColor2;
|
|
|
|
string m_selColor;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_help;
|
2005-08-20 02:31:27 +02:00
|
|
|
int m_layer;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_windowId;
|
|
|
|
string m_layoutId;
|
2007-01-28 17:49:30 +01:00
|
|
|
string m_panelId;
|
2005-08-20 02:31:27 +02:00
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<Tree> m_listTree;
|
|
|
|
|
2004-03-13 23:11:28 +01:00
|
|
|
/// Type definition
|
|
|
|
struct Video
|
|
|
|
{
|
2007-01-28 17:49:30 +01:00
|
|
|
Video( const string & id, int xPos, int yPos, int width, int height, const string & leftTop, const string & rightBottom, bool xKeepRatio, bool yKeepRatio, const string & visible, bool autoResize, const string & help, int layer, const string & windowId, const string & layoutId, const string & panelId ):
|
|
|
|
m_id( id ), m_xPos( xPos ), m_yPos( yPos ), m_width( width ), m_height( height ), m_leftTop( leftTop ), m_rightBottom( rightBottom ), m_xKeepRatio( xKeepRatio ), m_yKeepRatio( yKeepRatio ), m_visible( visible ), m_autoResize( autoResize ), m_help( help ), m_layer( layer ), m_windowId( windowId ), m_layoutId( layoutId ), m_panelId( panelId ) {}
|
2004-03-13 23:11:28 +01:00
|
|
|
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_id;
|
2004-03-13 23:11:28 +01:00
|
|
|
int m_xPos;
|
|
|
|
int m_yPos;
|
|
|
|
int m_width;
|
|
|
|
int m_height;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_leftTop;
|
|
|
|
string m_rightBottom;
|
2006-08-05 15:37:06 +02:00
|
|
|
bool m_xKeepRatio;
|
|
|
|
bool m_yKeepRatio;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_visible;
|
2005-11-01 16:53:07 +01:00
|
|
|
bool m_autoResize;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_help;
|
2004-03-13 23:11:28 +01:00
|
|
|
int m_layer;
|
2005-11-10 23:30:22 +01:00
|
|
|
string m_windowId;
|
|
|
|
string m_layoutId;
|
2007-01-28 17:49:30 +01:00
|
|
|
string m_panelId;
|
2004-03-13 23:11:28 +01:00
|
|
|
};
|
|
|
|
/// List
|
|
|
|
list<Video> m_listVideo;
|
|
|
|
|
2004-01-04 00:31:34 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|