QTfrontend/mapContainer.h
changeset 1790 c84223511ca8
parent 1366 eba12c22f8ca
child 1797 fedd8649fdd9
equal deleted inserted replaced
1789:5e7d66230067 1790:c84223511ca8
    40  public:
    40  public:
    41   HWMapContainer(QWidget * parent=0);
    41   HWMapContainer(QWidget * parent=0);
    42   QString getCurrentSeed() const;
    42   QString getCurrentSeed() const;
    43   QString getCurrentMap() const;
    43   QString getCurrentMap() const;
    44   QString getCurrentTheme() const;
    44   QString getCurrentTheme() const;
       
    45   int     getCurrentHHLimit() const;
    45 
    46 
    46  public slots:
    47  public slots:
    47   void changeImage();
    48   void changeImage();
    48   void setSeed(const QString & seed);
    49   void setSeed(const QString & seed);
    49   void setMap(const QString & map);
    50   void setMap(const QString & map);
    55   void themeChanged(const QString & theme);
    56   void themeChanged(const QString & theme);
    56 
    57 
    57 
    58 
    58  private slots:
    59  private slots:
    59   void setImage(const QImage newImage);
    60   void setImage(const QImage newImage);
       
    61   void setHHLimit(int hhLimit);
    60   void mapChanged(int index);
    62   void mapChanged(int index);
    61   void setRandomSeed();
    63   void setRandomSeed();
    62   void setRandomTheme();
    64   void setRandomTheme();
    63   void themeSelected(int currentRow);
    65   void themeSelected(int currentRow);
       
    66   void addInfoToPreview(QPixmap image);
    64 
    67 
    65  protected:
    68  protected:
    66   virtual void resizeEvent ( QResizeEvent * event );
    69   virtual void resizeEvent ( QResizeEvent * event );
    67 
    70 
    68  private:
    71  private:
    71   QComboBox* chooseMap;
    74   QComboBox* chooseMap;
    72   IconedGroupBox* gbThemes;
    75   IconedGroupBox* gbThemes;
    73   QListWidget* lwThemes;
    76   QListWidget* lwThemes;
    74   HWMap* pMap;
    77   HWMap* pMap;
    75   QString m_seed;
    78   QString m_seed;
       
    79   int hhLimit;
       
    80   QPixmap hhSmall;
    76 
    81 
    77   void loadMap(int index);
    82   void loadMap(int index);
    78 };
    83 };
    79 
    84 
    80 #endif // _HWMAP_CONTAINER_INCLUDED
    85 #endif // _HWMAP_CONTAINER_INCLUDED