亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fetchmap.cpp

?? 給予QT的qps開源最新源碼
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
                        tr("Latitude not specified.\n\nYou must specify a latitude."),
                        QMessageBox::Warning,
                        QMessageBox::Ok | QMessageBox::Default,
                        QMessageBox::NoButton,
                        QMessageBox::NoButton );
        mb.exec();
        mb.hide();
        valid = FALSE;
    } else if (scaleCB->currentText().stripWhiteSpace().isEmpty()) {
        QMessageBox mb( tr("Map Download"),
                        tr("Scale not specified.\n\nYou must specify a scale."),
                        QMessageBox::Warning,
                        QMessageBox::Ok | QMessageBox::Default,
                        QMessageBox::NoButton,
                        QMessageBox::NoButton );
        mb.exec();
        mb.hide();
        valid = FALSE;
    }
    else if (nameLE->text().stripWhiteSpace().isEmpty()) {
        QMessageBox mb( tr("Map Download"),
                        tr("Map name not specified.\n"
                        "You must specify a map name.\n\n"
                        "Click 'OK' for a default name."),
                        QMessageBox::Warning,
                        QMessageBox::Ok | QMessageBox::Default,
                        QMessageBox::Cancel,
                        QMessageBox::NoButton );
        mb.exec();
        mb.hide();

        valid = (mb.result() == QMessageBox::Ok);
    }
    return valid;
}

void DownloadSpecificationWidget::setDownloadSpecification(DownloadSpecification *dlSpec)
{
    spec = dlSpec;

    double lat, lon;
    if (spec->latitude < 0) {
        lat = spec->latitude * -1.0;
        latitudeCB->setCurrentItem(1);
    } else {
        lat = spec->latitude;
    }
    if (spec->longitude < 0) {
        lon = spec->longitude * -1.0;
        longitudeCB->setCurrentItem(1);
    } else {
        lon = spec->longitude;
    }

    QString string;
    nameLE->setText(spec->name);
    latitudeLE->setText(string.setNum(lat));
    longitudeLE->setText(string.setNum(lon));
    scaleCB->setEditText(string.setNum(spec->scale));
}

bool DownloadSpecificationWidget::accept()
{
    bool valid = validate();
    if (valid) {
        spec->name = nameLE->text();
        spec->latitude = latitudeLE->text().toDouble();
        spec->longitude = longitudeLE->text().toDouble();
        spec->scale = scaleCB->currentText().toULong();

        if (latitudeCB->currentItem() == 0)
            spec->latHem = DownloadSpecification::NorthernHemisphere;
        else
            spec->latHem = DownloadSpecification::SouthernHemisphere;
        if (longitudeCB->currentItem() == 0)
            spec->lonHem = DownloadSpecification::EasternHemisphere;
        else
            spec->lonHem = DownloadSpecification::WesternHemisphere;

        // user accepted a default name
        if (nameLE->text().stripWhiteSpace().isEmpty()) {
            // no name given, create one based on scale factor and position
            QString str;
            str = "map_" + str.setNum(spec->scale) +"-"+
                  str.setNum(spec->latitude*spec->latHem) +"--"+ str.setNum(spec->longitude*spec->lonHem);
            nameLE->setText(str);
            valid = false;
        }
    }
    return valid;
}

DownLoadDialog::DownLoadDialog(Position &pos, MapSelector *maps, QWidget *parent,
                               const char *name, bool modal,WFlags f):
        QDialog(parent,name,modal,f)
{
    QVBox *vBox;
    vBox = new QVBox(this);

    MapSourceFile mapSrcF(maps->mapPathStr() + "/sources.txt");
    mapSrcL = mapSrcF.makeMapSourceList();
    mapSrcW = new MapSourceWidget(vBox);
    mapSrcW->setMapSourceList(mapSrcL);

    spec = new DownloadSpecification(pos, maps); // pass the current gps data in here for suggested lat,long,name!
    dlSpecW = new DownloadSpecificationWidget(spec, vBox);

    resize(parent->geometry().size());
    vBox->resize(geometry().size());
}

DownLoadDialog::~DownLoadDialog(){};

void DownLoadDialog::accept()
{
    if (dlSpecW->accept()) {
        spec->download(mapSrcL->at(mapSrcW->getSourceIndex()));
        QDialog::accept();
    }
}

ImportMapDialog::ImportMapDialog(MapSelector*, QWidget *parent,
                                 const char *name, bool modal,WFlags f):
        QDialog(parent,name,modal,f)
{
    imageSelected = FALSE;
    vBox = new QVBox(this);
#ifndef DESKTOP
    imageDialog = new FileSelector( "image/*", vBox, tr("image dialog"), FALSE, FALSE );
#else
    imageDialog = new QFileDialog ( ".", "", vBox, tr("image dialog"), TRUE);
#endif

    bg = new QVButtonGroup("",vBox);
    cpOrg = new QRadioButton(tr("copy image"),bg);
    delOrg = new QRadioButton(tr("remove original image"),bg);
    bg->setButton(1);


    connect(imageDialog, SIGNAL(fileSelected(const DocLnk& )),
            this, SLOT(docLnkSelected(const DocLnk&)));
    resize(parent->geometry().size());
    vBox->resize(geometry().size());
}
void ImportMapDialog::docLnkSelected(const DocLnk &d)
{
    imageSelected = TRUE;
    mapImageLnk = d;
}

ImportMapDialog::~ImportMapDialog(){};

MapParDialog::MapParDialog(MapBase *, QWidget *parent,
                           const char *name, bool modal,WFlags f):
        QDialog(parent,name,modal,f)
{
    vBox = new QVBox(this);
    mapView = new MapInfoView(vBox);

    // this typecasting of parent is bad and this is why
    //mapWidget->resize(((FetchMap*)parent)->image->width(), ((FetchMap*)parent)->image->height());
    //mapWidget->setBackgroundPixmap(*(((FetchMap*)parent)->image));
    mapView->setMap(((MapInfo*)parent)->mapView->selectedMap);

    hBox = new QHBox(vBox);
    projectionCB = new QComboBox(hBox);
    projectionCB->insertItem("LINEAR");
    projectionCB->insertItem("CEA");
    projectionCB->insertItem("UTM");
    projectionCB->insertItem("TM");
    projectionCB->insertItem("MERCATOR");
    projectionCB->insertItem("LAMBERT");
    projectionCB->insertItem("FRITZ");

    scaleL = new QLabel(tr("  scale 1:"),hBox);
    scaleLE = new QLineEdit("10000",hBox);
    scaleLE->setValidator(new QIntValidator(1,100000000,scaleLE));

    point1HB = new QHBox(vBox);
    p1xyLVB = new QVBox(point1HB);
    x1L = new QLabel(tr(" x1"),p1xyLVB);
    y1L = new QLabel(tr(" y1"),p1xyLVB);
    p1xyLEVB = new QVBox(point1HB);
    x1LE = new QLineEdit("",p1xyLEVB);
    x1LE->setMaximumHeight(x1LE->fontMetrics().height()+2);
    //x1LE->setValidator(new QIntValidator(0,((FetchMap*)parent)->image->width(),x1LE));
    x1LE->setValidator(new QIntValidator(0,((MapInfo*)parent)->image->width(),x1LE));
    y1LE = new QLineEdit("",p1xyLEVB);
    y1LE->setMaximumHeight(y1LE->fontMetrics().height()+2);
    //y1LE->setValidator(new QIntValidator(0,((FetchMap*)parent)->image->height(),y1LE));
    y1LE->setValidator(new QIntValidator(0,((MapInfo*)parent)->image->height(),y1LE));
    p1llLVB = new QVBox(point1HB);
    lg1L = new QLabel(tr(" long1"),p1llLVB);
    lt1L = new QLabel(tr(" lat1"),p1llLVB);
    p1llLEVB = new QVBox(point1HB);
    lg1LE = new QLineEdit("",p1llLEVB);
    lg1LE->setMaximumHeight(lg1LE->fontMetrics().height()+2);
    //lg1LE->setValidator(new QDoubleValidator(-180,180,7,lg1LE));
    // FIXME: write validators vor lat/longitude
    lt1LE = new QLineEdit("",p1llLEVB);
    lt1LE->setMaximumHeight(lt1LE->fontMetrics().height()+2);
    //lt1LE->setValidator(new QDoubleValidator(-90,90,7,lt1LE));
    // FIXME: write validators vor lat/longitude

    point2HB = new QHBox(vBox);
    p2xyLVB = new QVBox(point2HB);
    x2L = new QLabel(tr(" x2"),p2xyLVB);
    y2L = new QLabel(tr(" y2"),p2xyLVB);
    p2xyLEVB = new QVBox(point2HB);
    x2LE = new QLineEdit("",p2xyLEVB);
    x2LE->setMaximumHeight(x2LE->fontMetrics().height()+2);
    //x2LE->setValidator(new QIntValidator(0,((FetchMap*)parent)->image->width(),x2LE));
    x2LE->setValidator(new QIntValidator(0,((MapInfo*)parent)->image->width(),x2LE));
    y2LE = new QLineEdit("",p2xyLEVB);
    y2LE->setMaximumHeight(y2LE->fontMetrics().height()+2);
    //y2LE->setValidator(new QIntValidator(0,((FetchMap*)parent)->image->height(),y2LE));
    y2LE->setValidator(new QIntValidator(0,((MapInfo*)parent)->image->height(),y2LE));
    p2llLVB = new QVBox(point2HB);
    lg2L = new QLabel(tr(" long2"),p2llLVB);
    lt2L = new QLabel(tr(" lat2"),p2llLVB);
    p2llLEVB = new QVBox(point2HB);
    lg2LE = new QLineEdit("",p2llLEVB);
    lg2LE->setMaximumHeight(lg2LE->fontMetrics().height()+2);
    //lg2LE->setValidator(new QDoubleValidator(-180,180,7,lg2LE));
    // FIXME: write validators for lat/longitude
    lt2LE = new QLineEdit("",p2llLEVB);
    lt2LE->setMaximumHeight(lt2LE->fontMetrics().height()+2);
    //lt2LE->setValidator(new QDoubleValidator(-90,90,7,lt2LE));
    // FIXME: write validators for lat/longitude

    stdLat12HB = new QHBox(vBox);
    stdLat1L = new QLabel(tr("stdLat1"),stdLat12HB);
    stdLat1LE = new QLineEdit("",stdLat12HB);
    stdLat1LE->setMaximumHeight(stdLat1LE->fontMetrics().height()+2);
    //stdLat1LE->setValidator(new QDoubleValidator(-90,90,7,stdLat1LE));
    // FIXME: write validators for lat/longitude
    stdLat2L = new QLabel(tr("stdLat2"),stdLat12HB);
    stdLat2LE = new QLineEdit("",stdLat12HB);
    stdLat2LE->setMaximumHeight(stdLat2LE->fontMetrics().height()+2);
    //stdLat2LE->setValidator(new QDoubleValidator(-90,90,7,stdLat2LE));
    // FIXME: write validators for lat/longitude
    refLongL = new QLabel(tr("refLong"),stdLat12HB);
    refLongLE = new QLineEdit("",stdLat12HB);
    refLongLE->setMaximumHeight(refLongLE->fontMetrics().height()+2);
    //refLongLE->setValidator(new QDoubleValidator(-180,180,7,refLongLE));
    // FIXME: write validators for lat/longitude


    stdLongHB = new QHBox(vBox);
    stdLongL = new QLabel(tr("stdLongitude"),stdLongHB);
    stdLongLE = new QLineEdit("",stdLongHB);
    stdLongLE->setMaximumHeight(stdLongLE->fontMetrics().height()+2);
    //stdLongLE->setValidator(new QDoubleValidator(-180,180,7,stdLongLE));
    // FIXME: write validators for lat/longitude

    centerHB = new QHBox(vBox);
    centerLatL = new QLabel(tr("center latitude"),centerHB);
    centerLatLE = new QLineEdit("",centerHB);
    //centerLatLE->setValidator(new QDoubleValidator(-90,90,7,centerLatLE));
    // FIXME: write validators for lat/longitude
    centerLongL = new QLabel(tr(" longitude"),centerHB);
    centerLongLE = new QLineEdit("",centerHB);
    //centerLongLE->setValidator(new QDoubleValidator(-180,180,7,centerLongLE));
    // FIXME: write validators for lat/longitude

    utmHB = new QHBox(vBox);
    zoneL = new QLabel(tr("Zone"),utmHB);
    zoneLE = new QLineEdit("",utmHB);

    connect(projectionCB, SIGNAL(highlighted(int)),
            this, SLOT(showProjectionPar(int)));
    connect(mapView, SIGNAL(mouseClick(int, int)),
            SLOT(clickPosition(int, int)) );

    projectionCB->setCurrentItem(6);

    resize(parent->geometry().size());
    vBox->resize(geometry().size());
    scaleLE->setFocus();
}
MapParDialog::~MapParDialog(){};

void MapParDialog::showProjectionPar(int idx)
{
    // hide all
    point1HB->hide();
    point2HB->hide();
    stdLongHB->hide();
    stdLat12HB->hide();
    centerHB->hide();
    utmHB->hide();
    lt1L->setText(tr("lat1"));
    lg1L->setText(tr("long1"));
    lt2L->setText(tr("lat2"));
    lg2L->setText(tr("long2"));

    switch(idx)
    {
    case 0:
    case 1:
    case 4:
        // 2 ref points
        point1HB->show();
        point2HB->show();

        break;

    case 2:
        // UTM
        utmHB->show();
        point1HB->show();
        point2HB->show();
        lt1L->setText(tr("north1"));
        lg1L->setText(tr("east1"));
        lt2L->setText(tr("north2"));
        lg2L->setText(tr("east2"));
        break;

    case 3:
        // TM: 2 points + stdLong
        point1HB->show();
        point2HB->show();
        stdLongHB->show();
        break;

    case 5:
        // Lambert: 2 points + std1Lat, std2Lat, refLong
        point1HB->show();
        point2HB->show();
        stdLat12HB->show();
        break;

    case 6:
        // Fritz: center_latitude, center_longitude
        centerHB->show();
        break;
    }
}

void MapParDialog::clickPosition(int x,int y)
{
    if(x1LE->hasFocus() || y1LE->hasFocus())
    {
        x1LE->setText(tr("%1").arg(x));
        y1LE->setText(tr("%1").arg(y));
    }
    else if(x2LE->hasFocus() || y2LE->hasFocus() )
    {
        x2LE->setText(tr("%1").arg(x));
        y2LE->setText(tr("%1").arg(y));
    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一区二区三区老鸭窝 | 欧美一区二区在线免费观看| 亚洲精品日韩一| 欧美性生活久久| 日本亚洲欧美天堂免费| 久久综合一区二区| 成人激情动漫在线观看| 亚洲一区二区三区小说| 日韩一区二区三区四区五区六区| 久久99国产精品免费| 亚洲激情图片qvod| 久久久久久久性| 欧美裸体一区二区三区| www.久久久久久久久| 五月综合激情婷婷六月色窝| 国产精品家庭影院| 日韩欧美国产精品一区| 日本久久一区二区| 成人app网站| 国产成人av自拍| 国产综合色视频| 日本美女视频一区二区| 一区二区三区毛片| 国产精品久久久久久一区二区三区 | 免费观看在线色综合| 亚洲视频一二区| 亚洲色图20p| 欧美成人欧美edvon| 精品国产91洋老外米糕| 欧美一区二区啪啪| 日韩欧美国产电影| 日韩一区二区三区在线| 久久久综合精品| 国产欧美日韩亚州综合| 国产精品久久久久久妇女6080| 久久久三级国产网站| 久久久久久久国产精品影院| 337p粉嫩大胆色噜噜噜噜亚洲| 日韩欧美一区二区免费| 久久久亚洲高清| 日韩码欧中文字| 丝袜亚洲精品中文字幕一区| 免费亚洲电影在线| 国产乱码精品一区二区三| 成人免费视频播放| 欧美羞羞免费网站| 欧美va亚洲va国产综合| 国产精品电影一区二区三区| 婷婷久久综合九色国产成人| 激情深爱一区二区| 在线影院国内精品| 精品国产污污免费网站入口 | 欧美久久久久久久久| 久久精品这里都是精品| 亚洲综合丁香婷婷六月香| 另类小说图片综合网| 91国产丝袜在线播放| 国产亚洲精品超碰| 日本不卡免费在线视频| 91麻豆免费视频| 欧美岛国在线观看| 图片区小说区国产精品视频| av电影天堂一区二区在线观看| 日韩欧美国产小视频| 亚洲bt欧美bt精品| 91久久免费观看| 国产精品天天看| 激情另类小说区图片区视频区| 欧美剧在线免费观看网站 | 亚洲一二三四区| eeuss鲁片一区二区三区在线看| 精品国产乱码久久久久久老虎| 亚洲午夜在线电影| 在线观看日韩av先锋影音电影院| 国产精品网站在线观看| 成人app软件下载大全免费| 国产亲近乱来精品视频 | 日本不卡一区二区三区| 欧美一区二区三区色| 美女在线一区二区| 日韩欧美一级二级三级| 精品一区在线看| 国产精品国产三级国产普通话蜜臀 | 国产麻豆日韩欧美久久| 国产精品女同一区二区三区| 99久久精品国产一区二区三区| 亚洲美女视频在线观看| 精彩视频一区二区| ㊣最新国产の精品bt伙计久久| 99精品热视频| 麻豆精品在线观看| 欧美激情一区不卡| 欧美理论片在线| 国产裸体歌舞团一区二区| 亚洲免费毛片网站| 91精品国产综合久久精品| 国产精品一区二区久激情瑜伽| 中文字幕一区三区| 欧美mv日韩mv亚洲| 欧美性生活一区| 91小视频免费看| 国产九色sp调教91| 婷婷综合另类小说色区| 中文字幕日本不卡| 91麻豆精品国产91久久久久久| 成人晚上爱看视频| 日本免费新一区视频| 一区二区三区精品在线| 欧美国产日韩a欧美在线观看| 日韩午夜激情视频| 欧美美女一区二区| 在线不卡中文字幕| 91精品国产综合久久久久久| 色成年激情久久综合| 99久久综合色| 91麻豆国产福利在线观看| jizz一区二区| 色呦呦日韩精品| 欧美日韩国产a| 日韩一区国产二区欧美三区| 欧美高清一级片在线| 91精品在线免费| 欧美一区二区在线视频| 久久久亚洲欧洲日产国码αv| 久久精品欧美日韩精品| 一区二区三区四区视频精品免费 | 91丨九色丨国产丨porny| 91美女蜜桃在线| 精品国产青草久久久久福利| 久久看人人爽人人| 亚洲一区免费观看| 成人一区二区视频| 91麻豆精品国产无毒不卡在线观看 | 欧美精品18+| 亚洲国产精华液网站w| 日韩黄色在线观看| 蜜臀91精品一区二区三区| 不卡大黄网站免费看| 日韩欧美亚洲国产另类 | 麻豆精品在线播放| 欧美日韩免费一区二区三区视频| 欧美大片顶级少妇| 亚洲不卡av一区二区三区| 成人免费的视频| 精品1区2区在线观看| 亚洲18女电影在线观看| 99热这里都是精品| 国产精品久久久久久妇女6080| 久久国产剧场电影| 日韩欧美在线影院| 日本欧美一区二区三区乱码| 欧美亚洲高清一区| 亚洲mv在线观看| 欧美久久一区二区| 久久精品噜噜噜成人av农村| 欧美日韩国产影片| 看片网站欧美日韩| 久久综合狠狠综合久久综合88 | 亚洲成人www| 日韩欧美一区二区在线视频| 日韩专区中文字幕一区二区| 5566中文字幕一区二区电影| 蜜桃91丨九色丨蝌蚪91桃色| 精品日韩欧美在线| 粉嫩av一区二区三区| 亚洲免费资源在线播放| 欧美日免费三级在线| 狠狠色综合色综合网络| 欧美激情在线一区二区三区| 欧美日韩亚洲国产综合| 麻豆一区二区99久久久久| 国产欧美一区二区三区网站| 色系网站成人免费| 人人狠狠综合久久亚洲| 中文字幕一区二区在线播放| 欧美日韩综合不卡| 粉嫩av一区二区三区在线播放| 一区二区三区高清| 国产精品妹子av| 日韩女同互慰一区二区| 欧美性做爰猛烈叫床潮| 国产传媒久久文化传媒| 人禽交欧美网站| 天天操天天色综合| 亚洲色图制服丝袜| 久久久久高清精品| 日韩精品一区二区三区蜜臀| 欧美午夜电影网| 成人激情电影免费在线观看| 老鸭窝一区二区久久精品| 婷婷综合五月天| 丝袜脚交一区二区| 午夜伊人狠狠久久| 一区二区三区成人在线视频| 亚洲美女视频在线观看| 亚洲日穴在线视频| 一区二区不卡在线播放 | 欧美人xxxx| 欧美一区二区视频网站| 日韩一区二区三区电影|