QTfrontend/ui/widget/mapContainer.h
changeset 13254 1381ce67a781
parent 13253 dd054edd56df
child 13260 2c0779260e8a
equal deleted inserted replaced
13253:dd054edd56df 13254:1381ce67a781
   103         void setImage(const QPixmap & newImage);
   103         void setImage(const QPixmap & newImage);
   104         void setHHLimit(int hhLimit);
   104         void setHHLimit(int hhLimit);
   105         void setRandomSeed();
   105         void setRandomSeed();
   106         void setRandomTheme();
   106         void setRandomTheme();
   107         void setRandomMap();
   107         void setRandomMap();
   108         void addInfoToPreview(const QPixmap & image);
       
   109         void setNewSeed(const QString & newSeed);
   108         void setNewSeed(const QString & newSeed);
   110         void mapTypeChanged(int);
   109         void mapTypeChanged(int);
   111         void showThemePrompt();
   110         void showThemePrompt();
   112         void updateTheme(const QModelIndex & current);
   111         void updateTheme(const QModelIndex & current);
   113         void staticMapChanged(const QModelIndex & map, const QModelIndex & old = QModelIndex());
   112         void staticMapChanged(const QModelIndex & map, const QModelIndex & old = QModelIndex());
   175         void intSetTemplateFilter(int);
   174         void intSetTemplateFilter(int);
   176         void intSetMazeSize(int size);
   175         void intSetMazeSize(int size);
   177         void intSetFeatureSize(int size);
   176         void intSetFeatureSize(int size);
   178         void setMissingTheme(const QString & name);
   177         void setMissingTheme(const QString & name);
   179         void mapChanged(const QModelIndex & map, int type, const QModelIndex & old = QModelIndex());
   178         void mapChanged(const QModelIndex & map, int type, const QModelIndex & old = QModelIndex());
   180         void setImage(const QPixmap & newImage, bool showHHLimit);
   179         void setImage(const QPixmap & newImage, const QLinearGradient & linearGrad, bool showHHLimit);
       
   180         void addInfoToPreview(const QPixmap & image);
       
   181         void addInfoToPreview(const QPixmap & image, const QLinearGradient & linearGrad, bool drawHHLimit);
   181         void setMapInfo(MapModel::MapInfo mapInfo);
   182         void setMapInfo(MapModel::MapInfo mapInfo);
   182         void changeMapType(MapModel::MapType type, const QModelIndex & newMap = QModelIndex());
   183         void changeMapType(MapModel::MapType type, const QModelIndex & newMap = QModelIndex());
   183         void updateHelpTexts(MapModel::MapType type);
   184         void updateHelpTexts(MapModel::MapType type);
   184         void updatePreview();
   185         void updatePreview();
   185         void updateThemeButtonSize();
   186         void updateThemeButtonSize();
   192         int m_prevMapFeatureSize;
   193         int m_prevMapFeatureSize;
   193         int m_mapFeatureSize;
   194         int m_mapFeatureSize;
   194         QString m_theme;
   195         QString m_theme;
   195         QString m_curMap;
   196         QString m_curMap;
   196 
   197 
   197         QLinearGradient linearGrad; ///< for preview background
   198         QLinearGradient linearGradNormal; ///< for preview background
       
   199         QLinearGradient linearGradLoading; ///< for preview background while loading/generating map
       
   200         QLinearGradient linearGradNoPreview; ///< for preview background when map preview image is missing
       
   201         QLinearGradient linearGradMapError; ///< for preview background when map is missing
   198         QSize m_previewSize;
   202         QSize m_previewSize;
   199 };
   203 };
   200 
   204 
   201 #endif // _HWMAP_CONTAINER_INCLUDED
   205 #endif // _HWMAP_CONTAINER_INCLUDED