QTfrontend/ui/widget/mapContainer.h
branchwebgl
changeset 9950 2759212a27de
parent 9744 1ee4842a9c86
child 9998 736015b847e3
equal deleted inserted replaced
9521:8054d9d775fd 9950:2759212a27de
   109         void showSeedPrompt();
   109         void showSeedPrompt();
   110         void previewClicked();
   110         void previewClicked();
   111 
   111 
   112     protected:
   112     protected:
   113         virtual void resizeEvent ( QResizeEvent * event );
   113         virtual void resizeEvent ( QResizeEvent * event );
       
   114         virtual void showEvent ( QShowEvent * event );
   114 
   115 
   115     private:
   116     private:
   116         QVBoxLayout mainLayout;
   117         QVBoxLayout mainLayout;
   117         QPushButton* mapPreview;
   118         QPushButton* mapPreview;
   118         QComboBox* chooseMap;
   119         QComboBox* chooseMap;
   147         QPushButton * btnRandomize;
   148         QPushButton * btnRandomize;
   148         QString selectedTheme;
   149         QString selectedTheme;
   149         QPushButton * btnSeed;
   150         QPushButton * btnSeed;
   150         bool m_master;
   151         bool m_master;
   151         QList<QWidget *> m_childWidgets;
   152         QList<QWidget *> m_childWidgets;
       
   153         bool m_previewEnabled;
       
   154         bool m_missionsViewSetup;
       
   155         bool m_staticViewSetup;
   152 
   156 
   153         void intSetSeed(const QString & seed);
   157         void intSetSeed(const QString & seed);
   154         void intSetMap(const QString & map);
   158         void intSetMap(const QString & map);
   155         void intSetMapgen(MapGenerator m);
   159         void intSetMapgen(MapGenerator m);
   156         void intSetTemplateFilter(int);
   160         void intSetTemplateFilter(int);
   159         void mapChanged(const QModelIndex & map, int type, const QModelIndex & old = QModelIndex());
   163         void mapChanged(const QModelIndex & map, int type, const QModelIndex & old = QModelIndex());
   160         void setMapInfo(MapModel::MapInfo mapInfo);
   164         void setMapInfo(MapModel::MapInfo mapInfo);
   161         void changeMapType(MapModel::MapType type, const QModelIndex & newMap = QModelIndex());
   165         void changeMapType(MapModel::MapType type, const QModelIndex & newMap = QModelIndex());
   162         void updatePreview();
   166         void updatePreview();
   163         void updateThemeButtonSize();
   167         void updateThemeButtonSize();
       
   168         void setupMissionMapsView();
       
   169         void setupStaticMapsView();
   164 
   170 
   165         MapModel::MapInfo m_mapInfo;
   171         MapModel::MapInfo m_mapInfo;
   166         int m_themeID;
   172         int m_themeID;
   167         QString m_theme;
   173         QString m_theme;
   168         QString m_curMap;
   174         QString m_curMap;