1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
#ifndef Svg_h
#define Svg_h
/******************************************************************************
*
* Copyright (C) 2002 Hugo PEREIRA <mailto: hugo.pereira@free.fr>
*
* This 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 software 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, see <http://www.gnu.org/licenses/>.
*
*******************************************************************************/
#include "SvgId.h"
#include <QString>
#include <QMap>
#include <QPixmap>
#include <QImage>
//! namespace for icon static name wrappers
namespace Svg
{
//!@name main panel
//@{
static const QString TopLeft="topleft";
static const QString Top="top";
static const QString TopRight="topright";
static const QString Left="left";
static const QString Center="center";
static const QString Right="right";
static const QString BottomRight="bottomright";
static const QString Bottom="bottom";
static const QString BottomLeft="bottomleft";
//@}
//! overlay
static const QString Overlay="overlay";
//!@name main panel margin hints
//@{
static const QString MarginLeft="hint-left-margin";
static const QString MarginRight="hint-right-margin";
static const QString MarginTop="hint-top-margin";
static const QString MarginBottom="hint-bottom-margin";
//@}
//!@name main panel shadow hints
//@{
static const QString ShadowLeft="hint-left-shadow";
static const QString ShadowRight="hint-right-shadow";
static const QString ShadowTop="hint-top-shadow";
static const QString ShadowBottom="hint-bottom-shadow";
//@}
//! map size and pixmap
using PixmapCache = QMap< SvgId, QPixmap >;
using ImageCache = QMap< SvgId, QImage >;
};
#endif
|