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

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

?? dialog.cpp

?? QT 開發環境里面一個很重要的文件
?? CPP
字號:
/******************************************************************************** Copyright (C) 2004-2006 Trolltech ASA. All rights reserved.**** This file is part of the example classes of the Qt Toolkit.**** This file may be used under the terms of the GNU General Public** License version 2.0 as published by the Free Software Foundation** and appearing in the file LICENSE.GPL included in the packaging of** this file.  Please review the following information to ensure GNU** General Public Licensing requirements will be met:** http://www.trolltech.com/products/qt/opensource.html**** If you are unsure which license is appropriate for your use, please** review the following information:** http://www.trolltech.com/products/qt/licensing.html or contact the** sales department at sales@trolltech.com.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.******************************************************************************/#include <QtGui>#include "dialog.h"#define MESSAGE \    Dialog::tr("<p>Message boxes have a caption, a text, " \               "and any number of buttons, each with standard or custom texts." \               "<p>Click a button to close the message box. Pressing the Esc button " \               "will activate the detected escape button (if any).")Dialog::Dialog(QWidget *parent)    : QDialog(parent){    errorMessageDialog = new QErrorMessage(this);    int frameStyle = QFrame::Sunken | QFrame::Panel;    integerLabel = new QLabel;    integerLabel->setFrameStyle(frameStyle);    QPushButton *integerButton =            new QPushButton(tr("QInputDialog::get&Integer()"));    doubleLabel = new QLabel;    doubleLabel->setFrameStyle(frameStyle);    QPushButton *doubleButton =            new QPushButton(tr("QInputDialog::get&Double()"));    itemLabel = new QLabel;    itemLabel->setFrameStyle(frameStyle);    QPushButton *itemButton = new QPushButton(tr("QInputDialog::getIte&m()"));    textLabel = new QLabel;    textLabel->setFrameStyle(frameStyle);    QPushButton *textButton = new QPushButton(tr("QInputDialog::get&Text()"));    colorLabel = new QLabel;    colorLabel->setFrameStyle(frameStyle);    QPushButton *colorButton = new QPushButton(tr("QColorDialog::get&Color()"));    fontLabel = new QLabel;    fontLabel->setFrameStyle(frameStyle);    QPushButton *fontButton = new QPushButton(tr("QFontDialog::get&Font()"));    directoryLabel = new QLabel;    directoryLabel->setFrameStyle(frameStyle);    QPushButton *directoryButton =            new QPushButton(tr("QFileDialog::getE&xistingDirectory()"));    openFileNameLabel = new QLabel;    openFileNameLabel->setFrameStyle(frameStyle);    QPushButton *openFileNameButton =            new QPushButton(tr("QFileDialog::get&OpenFileName()"));    openFileNamesLabel = new QLabel;    openFileNamesLabel->setFrameStyle(frameStyle);    QPushButton *openFileNamesButton =            new QPushButton(tr("QFileDialog::&getOpenFileNames()"));    saveFileNameLabel = new QLabel;    saveFileNameLabel->setFrameStyle(frameStyle);    QPushButton *saveFileNameButton =            new QPushButton(tr("QFileDialog::get&SaveFileName()"));    criticalLabel = new QLabel;    criticalLabel->setFrameStyle(frameStyle);    QPushButton *criticalButton =            new QPushButton(tr("QMessageBox::critica&l()"));    informationLabel = new QLabel;    informationLabel->setFrameStyle(frameStyle);    QPushButton *informationButton =            new QPushButton(tr("QMessageBox::i&nformation()"));    questionLabel = new QLabel;    questionLabel->setFrameStyle(frameStyle);    QPushButton *questionButton =            new QPushButton(tr("QMessageBox::&question()"));    warningLabel = new QLabel;    warningLabel->setFrameStyle(frameStyle);    QPushButton *warningButton = new QPushButton(tr("QMessageBox::&warning()"));    errorLabel = new QLabel;    errorLabel->setFrameStyle(frameStyle);    QPushButton *errorButton =            new QPushButton(tr("QErrorMessage::show&M&essage()"));    connect(integerButton, SIGNAL(clicked()), this, SLOT(setInteger()));    connect(doubleButton, SIGNAL(clicked()), this, SLOT(setDouble()));    connect(itemButton, SIGNAL(clicked()), this, SLOT(setItem()));    connect(textButton, SIGNAL(clicked()), this, SLOT(setText()));    connect(colorButton, SIGNAL(clicked()), this, SLOT(setColor()));    connect(fontButton, SIGNAL(clicked()), this, SLOT(setFont()));    connect(directoryButton, SIGNAL(clicked()),            this, SLOT(setExistingDirectory()));    connect(openFileNameButton, SIGNAL(clicked()),            this, SLOT(setOpenFileName()));    connect(openFileNamesButton, SIGNAL(clicked()),            this, SLOT(setOpenFileNames()));    connect(saveFileNameButton, SIGNAL(clicked()),            this, SLOT(setSaveFileName()));    connect(criticalButton, SIGNAL(clicked()), this, SLOT(criticalMessage()));    connect(informationButton, SIGNAL(clicked()),            this, SLOT(informationMessage()));    connect(questionButton, SIGNAL(clicked()), this, SLOT(questionMessage()));    connect(warningButton, SIGNAL(clicked()), this, SLOT(warningMessage()));    connect(errorButton, SIGNAL(clicked()), this, SLOT(errorMessage()));    QGridLayout *layout = new QGridLayout;    layout->setColumnStretch(1, 1);    layout->setColumnMinimumWidth(1, 250);    layout->addWidget(integerButton, 0, 0);    layout->addWidget(integerLabel, 0, 1);    layout->addWidget(doubleButton, 1, 0);    layout->addWidget(doubleLabel, 1, 1);    layout->addWidget(itemButton, 2, 0);    layout->addWidget(itemLabel, 2, 1);    layout->addWidget(textButton, 3, 0);    layout->addWidget(textLabel, 3, 1);    layout->addWidget(colorButton, 4, 0);    layout->addWidget(colorLabel, 4, 1);    layout->addWidget(fontButton, 5, 0);    layout->addWidget(fontLabel, 5, 1);    layout->addWidget(directoryButton, 6, 0);    layout->addWidget(directoryLabel, 6, 1);    layout->addWidget(openFileNameButton, 7, 0);    layout->addWidget(openFileNameLabel, 7, 1);    layout->addWidget(openFileNamesButton, 8, 0);    layout->addWidget(openFileNamesLabel, 8, 1);    layout->addWidget(saveFileNameButton, 9, 0);    layout->addWidget(saveFileNameLabel, 9, 1);    layout->addWidget(criticalButton, 10, 0);    layout->addWidget(criticalLabel, 10, 1);    layout->addWidget(informationButton, 11, 0);    layout->addWidget(informationLabel, 11, 1);    layout->addWidget(questionButton, 12, 0);    layout->addWidget(questionLabel, 12, 1);    layout->addWidget(warningButton, 13, 0);    layout->addWidget(warningLabel, 13, 1);    layout->addWidget(errorButton, 14, 0);    layout->addWidget(errorLabel, 14, 1);    setLayout(layout);    setWindowTitle(tr("Standard Dialogs"));}void Dialog::setInteger(){    bool ok;    int i = QInputDialog::getInteger(this, tr("QInputDialog::getInteger()"),                                     tr("Percentage:"), 25, 0, 100, 1, &ok);    if (ok)        integerLabel->setText(tr("%1%").arg(i));}void Dialog::setDouble(){    bool ok;    double d = QInputDialog::getDouble(this, tr("QInputDialog::getDouble()"),                                       tr("Amount:"), 37.56, -10000, 10000, 2, &ok);    if (ok)        doubleLabel->setText(QString("$%1").arg(d));}void Dialog::setItem(){    QStringList items;    items << tr("Spring") << tr("Summer") << tr("Fall") << tr("Winter");    bool ok;    QString item = QInputDialog::getItem(this, tr("QInputDialog::getItem()"),                                         tr("Season:"), items, 0, false, &ok);    if (ok && !item.isEmpty())        itemLabel->setText(item);}void Dialog::setText(){    bool ok;    QString text = QInputDialog::getText(this, tr("QInputDialog::getText()"),                                         tr("User name:"), QLineEdit::Normal,                                         QDir::home().dirName(), &ok);    if (ok && !text.isEmpty())        textLabel->setText(text);}void Dialog::setColor(){    QColor color = QColorDialog::getColor(Qt::green, this);    if (color.isValid()) {        colorLabel->setText(color.name());        colorLabel->setPalette(QPalette(color));        colorLabel->setAutoFillBackground(true);    }}void Dialog::setFont(){    bool ok;    QFont font = QFontDialog::getFont(&ok, QFont(fontLabel->text()), this);    if (ok) {        fontLabel->setText(font.key());        fontLabel->setFont(font);    }}void Dialog::setExistingDirectory(){    QString directory = QFileDialog::getExistingDirectory(this,                                tr("QFileDialog::getExistingDirectory()"),                                directoryLabel->text(),                                QFileDialog::DontResolveSymlinks                                | QFileDialog::ShowDirsOnly);    if (!directory.isEmpty())        directoryLabel->setText(directory);}void Dialog::setOpenFileName(){    QString fileName = QFileDialog::getOpenFileName(this,                                tr("QFileDialog::getOpenFileName()"),                                openFileNameLabel->text(),                                tr("All Files (*);;Text Files (*.txt)"));    if (!fileName.isEmpty())        openFileNameLabel->setText(fileName);}void Dialog::setOpenFileNames(){    QStringList files = QFileDialog::getOpenFileNames(                                this, tr("QFileDialog::getOpenFileNames()"),                                openFilesPath,                                tr("All Files (*);;Text Files (*.txt)"));    if (files.count()) {        openFilesPath = files[0];        openFileNamesLabel->setText(QString("[%1]").arg(files.join(", ")));    }}void Dialog::setSaveFileName(){    QString fileName = QFileDialog::getSaveFileName(this,                                tr("QFileDialog::getSaveFileName()"),                                saveFileNameLabel->text(),                                tr("All Files (*);;Text Files (*.txt)"));    if (!fileName.isEmpty())        saveFileNameLabel->setText(fileName);}void Dialog::criticalMessage(){    QMessageBox::StandardButton reply;    reply = QMessageBox::critical(this, tr("QMessageBox::critical()"),                                    MESSAGE,                                    QMessageBox::Abort | QMessageBox::Retry | QMessageBox::Ignore);    if (reply == QMessageBox::Abort)        criticalLabel->setText(tr("Abort"));    else if (reply == QMessageBox::Retry)        criticalLabel->setText(tr("Retry"));    else        criticalLabel->setText(tr("Ignore"));}void Dialog::informationMessage(){    QMessageBox::StandardButton reply;    reply = QMessageBox::information(this, tr("QMessageBox::information()"), MESSAGE);    if (reply == QMessageBox::Ok)        informationLabel->setText(tr("OK"));    else        informationLabel->setText(tr("Escape"));}void Dialog::questionMessage(){    QMessageBox::StandardButton reply;    reply = QMessageBox::question(this, tr("QMessageBox::question()"),                                    MESSAGE,                                    QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel);    if (reply == QMessageBox::Yes)        questionLabel->setText(tr("Yes"));    else if (reply == QMessageBox::No)        questionLabel->setText(tr("No"));    else        questionLabel->setText(tr("Cancel"));}void Dialog::warningMessage(){    QMessageBox msgBox(QMessageBox::Warning, tr("QMessageBox::warning()"),                       MESSAGE, 0, this);    msgBox.addButton(tr("Save &Again"), QMessageBox::AcceptRole);    msgBox.addButton(tr("&Continue"), QMessageBox::RejectRole);    if (msgBox.exec() == QMessageBox::AcceptRole)        warningLabel->setText(tr("Save Again"));    else        warningLabel->setText(tr("Continue"));}void Dialog::errorMessage(){    errorMessageDialog->showMessage(            tr("This dialog shows and remembers error messages. "               "If the checkbox is checked (as it is by default), "               "the shown message will be shown again, "               "but if the user unchecks the box the message "               "will not appear again if QErrorMessage::showMessage() "               "is called with the same message."));    errorLabel->setText(tr("If the box is unchecked, the message "                           "won't appear again."));}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美腿丝袜在线亚洲一区 | 天天综合色天天| 日本一区二区成人| 久久精品人人做人人综合 | 欧美性生活一区| 成人黄色777网| 波多野洁衣一区| 91免费视频网| 欧洲精品一区二区三区在线观看| 99精品视频一区二区| 91玉足脚交白嫩脚丫在线播放| 91一区二区三区在线观看| 99久久夜色精品国产网站| 色综合天天天天做夜夜夜夜做| 99精品1区2区| 欧美四级电影网| 精品三级在线观看| 国产视频一区二区在线观看| 国产精品天美传媒沈樵| 日韩美女精品在线| 午夜精品福利视频网站| 精品亚洲国内自在自线福利| 国产精品538一区二区在线| av一区二区三区| 欧美视频一区二区三区| 日韩视频永久免费| 国产精品毛片久久久久久| 伊人婷婷欧美激情| 麻豆精品视频在线观看视频| 国产成人精品综合在线观看| 日本韩国精品在线| 精品国产91洋老外米糕| 自拍偷拍亚洲激情| 全国精品久久少妇| 91浏览器在线视频| 日韩精品资源二区在线| 亚洲色图都市小说| 蜜桃视频一区二区| 在线观看精品一区| 国产日韩欧美电影| 日韩av一二三| 色综合色综合色综合色综合色综合| 欧美日本一区二区在线观看| 国产欧美精品一区二区色综合朱莉 | 麻豆精品视频在线| 国产中文一区二区三区| 欧美午夜精品理论片a级按摩| 日韩手机在线导航| 亚洲高清视频的网址| 成人毛片视频在线观看| 欧美xxxxx牲另类人与| 亚洲国产欧美日韩另类综合| 国产91精品露脸国语对白| 欧美一区二区三区视频免费 | 日本韩国欧美一区二区三区| 337p粉嫩大胆色噜噜噜噜亚洲| 亚洲一区免费观看| av不卡一区二区三区| 久久精品欧美一区二区三区不卡| 五月综合激情网| 一本在线高清不卡dvd| 久久先锋影音av| 蜜桃视频在线观看一区| 7777精品伊人久久久大香线蕉的| ...xxx性欧美| a美女胸又www黄视频久久| 国产亚洲短视频| 国产一区二区在线免费观看| 日韩一区二区在线看| 偷拍日韩校园综合在线| 欧美日韩久久久久久| 亚洲国产精品欧美一二99| 一本色道**综合亚洲精品蜜桃冫| 中文字幕一区二区在线观看| 成人av免费网站| 国产精品久久一级| 成人的网站免费观看| 国产精品传媒视频| 99精品视频在线观看免费| 亚洲日本va午夜在线电影| 成人激情电影免费在线观看| 国产精品久久久久影院| 97久久精品人人澡人人爽| 亚洲欧美日本韩国| 欧美性xxxxxxxx| 日韩国产欧美在线视频| 日韩精品自拍偷拍| 国产成人日日夜夜| 国产精品日产欧美久久久久| 婷婷成人综合网| 精品国一区二区三区| 国产福利91精品一区| 国产精品情趣视频| 在线免费观看一区| 日韩专区中文字幕一区二区| 欧美sm美女调教| 成人免费va视频| 亚洲va国产天堂va久久en| 911精品国产一区二区在线| 精品一区精品二区高清| 国产精品美女久久久久高潮| 欧美午夜宅男影院| 国产在线视频精品一区| 亚洲丝袜精品丝袜在线| 91精品国模一区二区三区| 韩国女主播成人在线观看| 日韩伦理av电影| 欧美日韩国产电影| 国产高清精品久久久久| 亚洲国产精品麻豆| 久久亚洲精品国产精品紫薇| 91亚洲国产成人精品一区二区三| 午夜一区二区三区在线观看| www激情久久| 在线观看日韩电影| 国产成人在线免费观看| 午夜电影网一区| 欧美国产精品一区二区| 欧美乱妇一区二区三区不卡视频| 国产精品影视在线| 亚洲成人福利片| 国产欧美日韩麻豆91| 日韩一区二区在线观看视频| 99精品热视频| 国产乱国产乱300精品| 亚洲成人动漫一区| 中文字幕在线视频一区| 精品久久久久久久久久久久包黑料| 91视频国产资源| 国产一区二区日韩精品| 奇米色一区二区| 一区二区三区在线视频免费观看| 久久久.com| 2021国产精品久久精品| 欧美人与性动xxxx| 色av成人天堂桃色av| 高清国产一区二区三区| 国产精品综合一区二区| 久热成人在线视频| 图片区日韩欧美亚洲| 一区二区三区在线免费视频| 中文字幕不卡在线观看| 久久精品在这里| 久久婷婷国产综合精品青草| 日韩欧美一区二区视频| 日韩一区二区免费视频| 欧美一区二区三区在线看 | 日韩av午夜在线观看| 亚洲一区在线电影| 亚洲一二三级电影| 一区二区三区在线视频免费| 亚洲欧美日韩小说| 亚洲欧美日韩系列| 亚洲蜜臀av乱码久久精品| 中文字幕制服丝袜一区二区三区| 国产欧美一区二区精品忘忧草| 精品久久久久99| 久久久影视传媒| 国产三级精品三级在线专区| 国产视频一区不卡| 国产精品天美传媒| 亚洲天堂精品在线观看| 亚洲精品高清视频在线观看| 亚洲精品视频在线| 亚洲国产综合在线| 蜜臀av性久久久久蜜臀aⅴ流畅 | 欧美高清视频在线高清观看mv色露露十八 | 亚洲综合色噜噜狠狠| 亚洲激情在线激情| 亚洲成人777| 免费精品99久久国产综合精品| 日韩成人精品在线观看| 蜜桃一区二区三区在线| 国产激情精品久久久第一区二区| 国产麻豆精品在线| 99精品国产一区二区三区不卡| 欧美中文一区二区三区| 9191成人精品久久| 欧美国产日韩a欧美在线观看| 中文字幕日韩精品一区| 亚洲成a人片综合在线| 激情欧美一区二区三区在线观看| 成人高清免费观看| 欧美日韩精品一区二区三区四区| 亚洲精品一区二区三区四区高清| 国产精品美日韩| 日韩国产精品久久久久久亚洲| 精品一区二区久久久| 日本福利一区二区| 欧美成人欧美edvon| 成人欧美一区二区三区1314| 三级影片在线观看欧美日韩一区二区| 精品在线播放免费| 欧美色网一区二区| 国产亚洲精品福利| 日本午夜一区二区| 色综合久久久久| 国产欧美日韩麻豆91| 蜜桃传媒麻豆第一区在线观看| 色综合久久久久综合99|