QTfrontend/mapContainer.h
changeset 320 1ee7f087195a
parent 249 ff85fa029541
child 325 17c860483407
equal deleted inserted replaced
319:7f3bd9e31f18 320:1ee7f087195a
    32 };
    32 };
    33 
    33 
    34 class HWMapContainer : public QWidget
    34 class HWMapContainer : public QWidget
    35 {
    35 {
    36   Q_OBJECT
    36   Q_OBJECT
    37     
    37 
    38  public:
    38  public:
    39   HWMapContainer(QWidget * parent=0);
    39   HWMapContainer(QWidget * parent=0);
    40   QString getCurrentSeed() const;
    40   QString getCurrentSeed() const;
    41   QString getCurrentMap() const;
    41   QString getCurrentMap() const;
    42   QString getCurrentTheme() const;
    42   QString getCurrentTheme() const;
    43 
    43 
    44  public slots:
    44  public slots:
    45   void changeImage();
    45   void changeImage();
       
    46   void setSeed(const QString & seed);
       
    47   void setMap(const QString & map);
       
    48   void setTheme(const QString & theme);
    46 
    49 
    47  private slots:
    50  private slots:
    48   void setImage(const QImage newImage);
    51   void setImage(const QImage newImage);
    49   void mapChanged(int index);
    52   void mapChanged(int index);
       
    53   void setRandomSeed();
    50 
    54 
    51  protected:
    55  protected:
    52   virtual void resizeEvent ( QResizeEvent * event );
    56   virtual void resizeEvent ( QResizeEvent * event );
    53 
    57 
    54  private:
    58  private:
    55   QVBoxLayout mainLayout;
    59   QVBoxLayout mainLayout;
    56   QPushButton* imageButt;
    60   QPushButton* imageButt;
    57   QComboBox* chooseMap;
    61   QComboBox* chooseMap;
    58   HWMap* pMap;
    62   HWMap* pMap;
    59   QString m_seed;
    63   QString m_seed;
       
    64   QString theme;
    60 };
    65 };
    61 
    66 
    62 #endif // _HWMAP_CONTAINER_INCLUDED
    67 #endif // _HWMAP_CONTAINER_INCLUDED