Main Page | Class Hierarchy | Compound List | File List | Compound Members

filesidestyle.h

00001 /***************************************************************************
00002                            filesidestyle.h
00003                            -------------------
00004     copyright            : (C) 2004 by Jos van den Oever
00005     email                : jos@vandenoever.info
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
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  ***************************************************************************/
00016 #ifndef FILESIDESTYLE_H
00017 #define FILESIDESYTLE_H
00018 
00019 #include "sidestyle.h"
00020 #include <qstringlist.h>
00021 #include <qmap.h>
00022 #include <vector>
00023 using std::vector;
00024 class QDir;
00025 
00026 class FileSideStyle : public SideStyle {
00027 private:
00028         QMap<QString, QString> styledirs;
00029         vector<const QPicture *> c1;
00030         vector<const QPicture *> c2;
00031         vector<const QPicture *> c4;
00032         void freeimages();
00033         void readDirs(const QString &dir);
00034         bool checkDir(const QDir &d) const;
00035         bool checkFile(const QString &f) const;
00036         void loadDir(const QDir &d);
00037         void loadFile(const QString &f, bool);
00038 public:
00039         FileSideStyle();
00040         QStringList getStyles();
00041         ~FileSideStyle();
00042         const QPicture *getC4Picture(ushort i) const;
00043         const QPicture *getC2Picture(ushort i) const;
00044         const QPicture *getC1Picture(ushort i) const;
00045         short amount(Symmetry) const;
00046         void loadStyle(const QString &s);
00047 };
00048 
00049 #endif

Generated on Thu Jan 15 23:13:57 2004 for CubeTest by doxygen 1.3.2