QTfrontend/mapContainer.h
changeset 249 ff85fa029541
parent 184 f97a7a3dc8f6
child 320 1ee7f087195a
equal deleted inserted replaced
248:aab204fe5061 249:ff85fa029541
    21 
    21 
    22 #include "hwmap.h"
    22 #include "hwmap.h"
    23 
    23 
    24 #include <QWidget>
    24 #include <QWidget>
    25 #include <QVBoxLayout>
    25 #include <QVBoxLayout>
       
    26 #include <QComboBox>
    26 
    27 
    27 class QPushButton;
    28 class QPushButton;
       
    29 
       
    30 class MapFileErrorException
       
    31 {
       
    32 };
    28 
    33 
    29 class HWMapContainer : public QWidget
    34 class HWMapContainer : public QWidget
    30 {
    35 {
    31   Q_OBJECT
    36   Q_OBJECT
    32     
    37     
    33  public:
    38  public:
    34   HWMapContainer(QWidget * parent=0);
    39   HWMapContainer(QWidget * parent=0);
    35   QString getCurrentSeed() const;
    40   QString getCurrentSeed() const;
       
    41   QString getCurrentMap() const;
       
    42   QString getCurrentTheme() const;
    36 
    43 
    37  public slots:
    44  public slots:
    38   void changeImage();
    45   void changeImage();
    39 
    46 
    40  private slots:
    47  private slots:
    41   void setImage(const QImage newImage);
    48   void setImage(const QImage newImage);
       
    49   void mapChanged(int index);
    42 
    50 
    43  protected:
    51  protected:
    44   virtual void resizeEvent ( QResizeEvent * event );
    52   virtual void resizeEvent ( QResizeEvent * event );
    45 
    53 
    46  private:
    54  private:
    47   QVBoxLayout mainLayout;
    55   QVBoxLayout mainLayout;
    48   QPushButton* imageButt;
    56   QPushButton* imageButt;
       
    57   QComboBox* chooseMap;
    49   HWMap* pMap;
    58   HWMap* pMap;
    50   QString m_seed;
    59   QString m_seed;
    51 };
    60 };
    52 
    61 
    53 #endif // _HWMAP_CONTAINER_INCLUDED
    62 #endif // _HWMAP_CONTAINER_INCLUDED