QTfrontend/ui/widget/mapContainer.h
branchwebgl
changeset 8833 c13ebed437cb
parent 8475 f605bc59c603
child 9080 9b42757d7e71
equal deleted inserted replaced
8450:404ddce27b23 8833:c13ebed437cb
   105         void updateTheme(const QModelIndex & current);
   105         void updateTheme(const QModelIndex & current);
   106         void staticMapChanged(const QModelIndex & map, const QModelIndex & old = QModelIndex());
   106         void staticMapChanged(const QModelIndex & map, const QModelIndex & old = QModelIndex());
   107         void missionMapChanged(const QModelIndex & map, const QModelIndex & old = QModelIndex());
   107         void missionMapChanged(const QModelIndex & map, const QModelIndex & old = QModelIndex());
   108         void loadDrawing();
   108         void loadDrawing();
   109         void showSeedPrompt();
   109         void showSeedPrompt();
       
   110         void previewClicked();
   110 
   111 
   111     protected:
   112     protected:
   112         virtual void resizeEvent ( QResizeEvent * event );
   113         virtual void resizeEvent ( QResizeEvent * event );
   113 
   114 
   114     private:
   115     private:
   115         QVBoxLayout mainLayout;
   116         QVBoxLayout mainLayout;
   116         QLabel* mapPreview;
   117         QPushButton* mapPreview;
   117         QComboBox* chooseMap;
   118         QComboBox* chooseMap;
   118         MapModel * m_staticMapModel;
   119         MapModel * m_staticMapModel;
   119         MapModel * m_missionMapModel;
   120         MapModel * m_missionMapModel;
   120         IconedGroupBox* gbThemes;
   121         IconedGroupBox* gbThemes;
   121         QListView* lvThemes;
   122         QListView* lvThemes;
   160         void changeMapType(MapModel::MapType type, const QModelIndex & newMap = QModelIndex());
   161         void changeMapType(MapModel::MapType type, const QModelIndex & newMap = QModelIndex());
   161         void updatePreview();
   162         void updatePreview();
   162         void updateThemeButtonSize();
   163         void updateThemeButtonSize();
   163 
   164 
   164         MapModel::MapInfo m_mapInfo;
   165         MapModel::MapInfo m_mapInfo;
       
   166         int m_themeID;
   165         QString m_theme;
   167         QString m_theme;
   166         QString m_curMap;
   168         QString m_curMap;
   167 
   169 
   168         QLinearGradient linearGrad; ///< for preview background
   170         QLinearGradient linearGrad; ///< for preview background
   169         QSize m_previewSize;
   171         QSize m_previewSize;