Ignore:
Timestamp:
Oct 9, 2014, 2:54:21 PM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: updated trunk to 14.9.0

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/images.h

    r165 r170  
    1717*/
    1818
    19 #ifndef _IMAGES_H_
    20 #define _IMAGES_H_
     19#ifndef IMAGES_H
     20#define IMAGES_H
    2121
     22#include <QString>
    2223#include <QPixmap>
    23 #include <QString>
    2424#include <QIcon>
    2525
    26 /* Warning: don't use this until global->preferences is created! */
     26#define USE_RESOURCES
     27#define SMCODE
     28
    2729class Images
    2830{
    2931
    3032public:
    31         static QPixmap icon(QString name, int size=-1, bool png = true);
    32         static QPixmap flippedIcon(QString name, int size=-1, bool png = true);
     33        static void setThemesPath(const QString & folder);
     34        static void setTheme(const QString & name);
    3335
    34         static QPixmap resize(QPixmap *p, int size=20);
    35         static QPixmap flip(QPixmap *p);
     36        static QPixmap icon(QString name, int size=-1);
     37        static QPixmap flippedIcon(QString name, int size=-1);
    3638
    3739        //! Returns the filename of the icon
    3840        static QString file(const QString & icon_name);
    3941
    40         static QIcon multiIcon(QString name, QString fallback_icon);
    41 
     42#ifdef SMCODE
    4243        static QString styleSheet();
    4344        static QString themesDirectory();
     45#endif
    4446
    4547private:
    46         //! Return the filename for the icon
    47         static QString filename(const QString & name, bool png);
     48        static QPixmap resize(QPixmap *p, int size=20);
     49        static QPixmap flip(QPixmap *p);
    4850
    49         //! Try to load an icon. \a icon_name is the filename of the
    50         //! icon without path. Return a null pixmap if loads fails.
    51         static QPixmap loadIcon(const QString & icon_name);
     51        static QString current_theme;
     52        static QString themes_path;
     53
     54#ifdef USE_RESOURCES
     55        static QString resourceFilename();
     56        static QString last_resource_loaded;
     57#endif
    5258};
    5359
    5460#endif
    55 
Note: See TracChangeset for help on using the changeset viewer.