QTfrontend/ui/widget/mapContainer.cpp
changeset 10462 dd3cf0c91cc9
parent 10394 0e0c3936412f
child 10465 79fe4266b2ca
equal deleted inserted replaced
10457:482c744b272c 10462:dd3cf0c91cc9
    14  * You should have received a copy of the GNU General Public License
    14  * You should have received a copy of the GNU General Public License
    15  * along with this program; if not, write to the Free Software
    15  * along with this program; if not, write to the Free Software
    16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    17  */
    17  */
    18 
    18 
    19 #include <QPushButton>
    19 #include <QBitmap>
    20 #include <QBuffer>
    20 #include <QBuffer>
    21 #include <QUuid>
       
    22 #include <QBitmap>
       
    23 #include <QPainter>
       
    24 #include <QLinearGradient>
       
    25 #include <QColor>
    21 #include <QColor>
    26 #include <QTextStream>
       
    27 #include <QLabel>
       
    28 #include <QListView>
       
    29 #include <QVBoxLayout>
       
    30 #include <QIcon>
       
    31 #include <QLineEdit>
       
    32 #include <QStringListModel>
       
    33 #include <QListWidget>
       
    34 #include <QListWidgetItem>
       
    35 #include <QDebug>
    22 #include <QDebug>
    36 #include <QFile>
    23 #include <QFile>
    37 #include <QFileDialog>
    24 #include <QFileDialog>
       
    25 #include <QIcon>
    38 #include <QInputDialog>
    26 #include <QInputDialog>
       
    27 #include <QLabel>
       
    28 #include <QLinearGradient>
       
    29 #include <QLineEdit>
       
    30 #include <QListView>
       
    31 #include <QListWidget>
       
    32 #include <QListWidgetItem>
    39 #include <QMessageBox>
    33 #include <QMessageBox>
       
    34 #include <QPainter>
       
    35 #include <QPushButton>
       
    36 #include <QSlider>
       
    37 #include <QStringListModel>
       
    38 #include <QTextStream>
       
    39 #include <QUuid>
       
    40 #include <QVBoxLayout>
    40 
    41 
    41 #include "hwconsts.h"
    42 #include "hwconsts.h"
    42 #include "mapContainer.h"
    43 #include "mapContainer.h"
    43 #include "themeprompt.h"
    44 #include "themeprompt.h"
    44 #include "seedprompt.h"
    45 #include "seedprompt.h"
   149     mapPreview->setFlat(true);
   150     mapPreview->setFlat(true);
   150     mapPreview->setFixedSize(256 + 6, 128 + 6);
   151     mapPreview->setFixedSize(256 + 6, 128 + 6);
   151     mapPreview->setContentsMargins(0, 0, 0, 0);
   152     mapPreview->setContentsMargins(0, 0, 0, 0);
   152     leftLayout->addWidget(mapPreview, 0);
   153     leftLayout->addWidget(mapPreview, 0);
   153     connect(mapPreview, SIGNAL(clicked()), this, SLOT(previewClicked()));
   154     connect(mapPreview, SIGNAL(clicked()), this, SLOT(previewClicked()));
       
   155 
       
   156     mapFeatureSize = new QSlider(Qt::Horizontal, this);
       
   157     mapFeatureSize->setObjectName("mapFeatureSize");
       
   158     //mapFeatureSize->setTickPosition(QSlider::TicksBelow);
       
   159     mapFeatureSize->setMaximum(100);
       
   160     mapFeatureSize->setMinimum(1);
       
   161     mapFeatureSize->setFixedWidth(259);
       
   162     mapFeatureSize->setValue(50);
       
   163     leftLayout->addWidget(mapFeatureSize, 0);
   154 
   164 
   155     /* Bottom-Left layout */
   165     /* Bottom-Left layout */
   156 
   166 
   157     QVBoxLayout * bottomLeftLayout = new QVBoxLayout();
   167     QVBoxLayout * bottomLeftLayout = new QVBoxLayout();
   158     leftLayout->addLayout(bottomLeftLayout, 1);
   168     leftLayout->addLayout(bottomLeftLayout, 1);