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

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

?? window.cpp

?? qt-x11-opensource-src-4.1.4.tar.gz源碼
?? CPP
字號:
/******************************************************************************** Copyright (C) 2005-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 "renderarea.h"#include "window.h"const int IdRole = Qt::UserRole;Window::Window(){    renderArea = new RenderArea;    shapeComboBox = new QComboBox;    shapeComboBox->addItem(tr("Rectangle"), RenderArea::Rect);    shapeComboBox->addItem(tr("Round Rectangle"), RenderArea::RoundRect);    shapeComboBox->addItem(tr("Ellipse"), RenderArea::Ellipse);    shapeComboBox->addItem(tr("Pie"), RenderArea::Pie);    shapeComboBox->addItem(tr("Chord"), RenderArea::Chord);    shapeComboBox->addItem(tr("Polygon"), RenderArea::Polygon);    shapeComboBox->addItem(tr("Path"), RenderArea::Path);    shapeComboBox->addItem(tr("Line"), RenderArea::Line);    shapeComboBox->addItem(tr("Polyline"), RenderArea::Polyline);    shapeComboBox->addItem(tr("Arc"), RenderArea::Arc);    shapeComboBox->addItem(tr("Points"), RenderArea::Points);    shapeComboBox->addItem(tr("Text"), RenderArea::Text);    shapeComboBox->addItem(tr("Pixmap"), RenderArea::Pixmap);    shapeLabel = new QLabel(tr("&Shape:"));    shapeLabel->setBuddy(shapeComboBox);    penWidthSpinBox = new QSpinBox;    penWidthSpinBox->setRange(0, 20);    penWidthLabel = new QLabel(tr("Pen &Width:"));    penWidthLabel->setBuddy(penWidthSpinBox);    penStyleComboBox = new QComboBox;    penStyleComboBox->addItem(tr("Solid"), Qt::SolidLine);    penStyleComboBox->addItem(tr("Dash"), Qt::DashLine);    penStyleComboBox->addItem(tr("Dot"), Qt::DotLine);    penStyleComboBox->addItem(tr("Dash Dot"), Qt::DashDotLine);    penStyleComboBox->addItem(tr("Dash Dot Dot"), Qt::DashDotDotLine);    penStyleComboBox->addItem(tr("None"), Qt::NoPen);    penStyleLabel = new QLabel(tr("&Pen Style:"));    penStyleLabel->setBuddy(penStyleComboBox);    penCapComboBox = new QComboBox;    penCapComboBox->addItem(tr("Flat"), Qt::FlatCap);    penCapComboBox->addItem(tr("Square"), Qt::SquareCap);    penCapComboBox->addItem(tr("Round"), Qt::RoundCap);    penCapLabel = new QLabel(tr("Pen &Cap:"));    penCapLabel->setBuddy(penCapComboBox);    penJoinComboBox = new QComboBox;    penJoinComboBox->addItem(tr("Miter"), Qt::MiterJoin);    penJoinComboBox->addItem(tr("Bevel"), Qt::BevelJoin);    penJoinComboBox->addItem(tr("Round"), Qt::RoundJoin);    penJoinLabel = new QLabel(tr("Pen &Join:"));    penJoinLabel->setBuddy(penJoinComboBox);    brushStyleComboBox = new QComboBox;    brushStyleComboBox->addItem(tr("Linear Gradient"),            Qt::LinearGradientPattern);    brushStyleComboBox->addItem(tr("Radial Gradient"),            Qt::RadialGradientPattern);    brushStyleComboBox->addItem(tr("Conical Gradient"),            Qt::ConicalGradientPattern);    brushStyleComboBox->addItem(tr("Texture"), Qt::TexturePattern);    brushStyleComboBox->addItem(tr("Solid"), Qt::SolidPattern);    brushStyleComboBox->addItem(tr("Horizontal"), Qt::HorPattern);    brushStyleComboBox->addItem(tr("Vertical"), Qt::VerPattern);    brushStyleComboBox->addItem(tr("Cross"), Qt::CrossPattern);    brushStyleComboBox->addItem(tr("Backward Diagonal"), Qt::BDiagPattern);    brushStyleComboBox->addItem(tr("Forward Diagonal"), Qt::FDiagPattern);    brushStyleComboBox->addItem(tr("Diagonal Cross"), Qt::DiagCrossPattern);    brushStyleComboBox->addItem(tr("Dense 1"), Qt::Dense1Pattern);    brushStyleComboBox->addItem(tr("Dense 2"), Qt::Dense2Pattern);    brushStyleComboBox->addItem(tr("Dense 3"), Qt::Dense3Pattern);    brushStyleComboBox->addItem(tr("Dense 4"), Qt::Dense4Pattern);    brushStyleComboBox->addItem(tr("Dense 5"), Qt::Dense5Pattern);    brushStyleComboBox->addItem(tr("Dense 6"), Qt::Dense6Pattern);    brushStyleComboBox->addItem(tr("Dense 7"), Qt::Dense7Pattern);    brushStyleComboBox->addItem(tr("None"), Qt::NoBrush);    brushStyleLabel = new QLabel(tr("&Brush Style:"));    brushStyleLabel->setBuddy(brushStyleComboBox);    antialiasingCheckBox = new QCheckBox(tr("&Antialiasing"));    transformationsCheckBox = new QCheckBox(tr("&Transformations"));    connect(shapeComboBox, SIGNAL(activated(int)),            this, SLOT(shapeChanged()));    connect(penWidthSpinBox, SIGNAL(valueChanged(int)),            this, SLOT(penChanged()));    connect(penStyleComboBox, SIGNAL(activated(int)),            this, SLOT(penChanged()));    connect(penCapComboBox, SIGNAL(activated(int)),            this, SLOT(penChanged()));    connect(penJoinComboBox, SIGNAL(activated(int)),            this, SLOT(penChanged()));    connect(brushStyleComboBox, SIGNAL(activated(int)),            this, SLOT(brushChanged()));    connect(antialiasingCheckBox, SIGNAL(toggled(bool)),            renderArea, SLOT(setAntialiased(bool)));    connect(transformationsCheckBox, SIGNAL(toggled(bool)),            renderArea, SLOT(setTransformed(bool)));    QHBoxLayout *checkBoxLayout = new QHBoxLayout;    checkBoxLayout->addWidget(antialiasingCheckBox);    checkBoxLayout->addWidget(transformationsCheckBox);    QGridLayout *mainLayout = new QGridLayout;    mainLayout->addWidget(renderArea, 0, 0, 1, 2);    mainLayout->addWidget(shapeLabel, 1, 0);    mainLayout->addWidget(shapeComboBox, 1, 1);    mainLayout->addWidget(penWidthLabel, 2, 0);    mainLayout->addWidget(penWidthSpinBox, 2, 1);    mainLayout->addWidget(penStyleLabel, 3, 0);    mainLayout->addWidget(penStyleComboBox, 3, 1);    mainLayout->addWidget(penCapLabel, 4, 0);    mainLayout->addWidget(penCapComboBox, 4, 1);    mainLayout->addWidget(penJoinLabel, 5, 0);    mainLayout->addWidget(penJoinComboBox, 5, 1);    mainLayout->addWidget(brushStyleLabel, 6, 0);    mainLayout->addWidget(brushStyleComboBox, 6, 1);    mainLayout->addLayout(checkBoxLayout, 7, 0, 1, 2);    setLayout(mainLayout);    shapeChanged();    penChanged();    brushChanged();    renderArea->setAntialiased(false);    renderArea->setTransformed(false);    setWindowTitle(tr("Basic Drawing"));}void Window::shapeChanged(){    RenderArea::Shape shape =        (RenderArea::Shape)shapeComboBox->itemData(shapeComboBox->currentIndex(), IdRole).toInt();    renderArea->setShape(shape);}void Window::penChanged(){    int width = penWidthSpinBox->value();    Qt::PenStyle style =        (Qt::PenStyle)penStyleComboBox->itemData(penStyleComboBox->currentIndex(), IdRole).toInt();    Qt::PenCapStyle cap =        (Qt::PenCapStyle)penCapComboBox->itemData(penCapComboBox->currentIndex(), IdRole).toInt();    Qt::PenJoinStyle join =        (Qt::PenJoinStyle)penJoinComboBox->itemData(penJoinComboBox->currentIndex(), IdRole).toInt();    renderArea->setPen(QPen(Qt::blue, width, style, cap, join));}void Window::brushChanged(){    Qt::BrushStyle style =        (Qt::BrushStyle)brushStyleComboBox->itemData(brushStyleComboBox->currentIndex(), IdRole).toInt();    if (style == Qt::LinearGradientPattern) {        QLinearGradient linearGradient(0, 0, 100, 100);        linearGradient.setColorAt(0.0, Qt::white);        linearGradient.setColorAt(0.2, Qt::green);        linearGradient.setColorAt(1.0, Qt::black);        renderArea->setBrush(linearGradient);    } else if (style == Qt::RadialGradientPattern) {        QRadialGradient radialGradient(50, 50, 50, 50, 50);        radialGradient.setColorAt(0.0, Qt::white);        radialGradient.setColorAt(0.2, Qt::green);        radialGradient.setColorAt(1.0, Qt::black);        renderArea->setBrush(radialGradient);    } else if (style == Qt::ConicalGradientPattern) {        QConicalGradient conicalGradient(50, 50, 150);        conicalGradient.setColorAt(0.0, Qt::white);        conicalGradient.setColorAt(0.2, Qt::green);        conicalGradient.setColorAt(1.0, Qt::black);        renderArea->setBrush(conicalGradient);    } else if (style == Qt::TexturePattern) {        renderArea->setBrush(QBrush(QPixmap(":/images/brick.png")));    } else {        renderArea->setBrush(QBrush(Qt::green, style));    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区和二区| 青青国产91久久久久久| jlzzjlzz欧美大全| 中文字幕日韩一区二区| 91在线视频观看| 亚洲国产精品嫩草影院| 337p亚洲精品色噜噜狠狠| 久久99精品国产91久久来源| 精品久久一二三区| 国产一区二区三区黄视频| 国产欧美日韩麻豆91| 99免费精品视频| 亚洲v精品v日韩v欧美v专区| 精品国产乱码久久久久久1区2区| 国产精品一区专区| 亚洲精品视频自拍| 日韩精品一区二区三区四区| 国产69精品久久99不卡| 亚洲精品国产无套在线观| 欧美二区乱c少妇| 国产精品一区二区91| 一区二区三区久久| 日韩视频免费观看高清完整版 | 视频一区免费在线观看| 精品日产卡一卡二卡麻豆| 99久久婷婷国产综合精品| 亚洲h在线观看| 久久精品欧美一区二区三区不卡 | 日韩视频免费观看高清完整版在线观看 | 亚洲精品中文在线| 日韩免费性生活视频播放| 成人黄色综合网站| 日日嗨av一区二区三区四区| 国产精品女人毛片| 91精品国产综合久久久久久久久久| 成人国产精品视频| 久久国产三级精品| 中文字幕亚洲一区二区av在线| 在线综合亚洲欧美在线视频| 国产99久久久国产精品免费看| 午夜精彩视频在线观看不卡| 日本一区二区三区高清不卡| 欧美日韩成人高清| 99久久国产综合精品女不卡| 麻豆一区二区三| 亚洲裸体在线观看| 国产校园另类小说区| 欧美一卡二卡在线观看| 在线观看亚洲一区| 不卡视频免费播放| 精品午夜一区二区三区在线观看 | 五月综合激情婷婷六月色窝| 国产精品国产自产拍高清av| 日韩欧美的一区二区| 欧美日本在线一区| 一本色道综合亚洲| 本田岬高潮一区二区三区| 蜜臀av性久久久久av蜜臀妖精| 亚洲香肠在线观看| 亚洲激情综合网| 国产精品国产三级国产aⅴ中文| 精品国产凹凸成av人导航| 欧美福利电影网| 精品视频一区三区九区| 91视频xxxx| 色综合久久天天| 99re成人精品视频| a美女胸又www黄视频久久| 国产传媒久久文化传媒| 寂寞少妇一区二区三区| 免费成人在线观看| 蜜臀精品一区二区三区在线观看 | 欧美日本在线视频| 在线观看91精品国产麻豆| 欧美日韩一区国产| 欧美日韩亚洲不卡| 欧美日韩成人综合| 欧美一区二区大片| 2020国产精品自拍| 久久视频一区二区| 欧美激情综合五月色丁香| 欧美国产禁国产网站cc| 中文字幕制服丝袜成人av| 成人欧美一区二区三区白人 | av在线综合网| av成人老司机| 色嗨嗨av一区二区三区| 在线观看免费亚洲| 69堂国产成人免费视频| xfplay精品久久| 国产日韩综合av| 亚洲视频精选在线| 亚洲国产你懂的| 美女一区二区三区| 岛国精品在线播放| 欧美伊人久久大香线蕉综合69| 欧美精选在线播放| 久久奇米777| 国产精品不卡一区| 视频在线观看91| 国产一区二区三区黄视频| 99国产精品久| 欧美高清你懂得| 欧美激情一区二区三区四区| 亚洲女同ⅹxx女同tv| 五月天欧美精品| 国产真实乱子伦精品视频| 91在线视频18| 日韩一区二区电影| 国产精品女同一区二区三区| 午夜视频在线观看一区二区| 久久99精品久久久| 91久久香蕉国产日韩欧美9色| 91麻豆精品国产| 国产精品网站在线| 视频一区国产视频| 99久久精品情趣| 欧美一级久久久| 亚洲久草在线视频| 精品一区二区三区蜜桃| 色综合一个色综合| 精品国产青草久久久久福利| 亚洲区小说区图片区qvod| 日本中文一区二区三区| 国产成人在线视频网站| 欧美日本韩国一区二区三区视频| 久久久精品国产99久久精品芒果| 樱桃视频在线观看一区| 国产一区欧美一区| 一本久久精品一区二区| 日韩欧美国产综合一区| 亚洲欧美日韩国产综合在线| 国精品**一区二区三区在线蜜桃| 91福利社在线观看| 欧美激情一区二区三区全黄| 日本不卡1234视频| 日本国产一区二区| 国产欧美在线观看一区| 裸体歌舞表演一区二区| 欧美亚洲国产一区二区三区| 国产精品网站在线观看| 国产综合色产在线精品| 91精品国产色综合久久不卡蜜臀| 一区在线观看视频| 国产91色综合久久免费分享| 日韩免费电影一区| 午夜精品一区二区三区电影天堂 | 欧美激情综合五月色丁香 | 亚洲欧美怡红院| 成人免费高清在线观看| 久久夜色精品国产欧美乱极品| 午夜视频久久久久久| 日本丰满少妇一区二区三区| 国产精品人成在线观看免费| 国内国产精品久久| 2017欧美狠狠色| 国产一区二区三区四区五区入口| 欧美一区二区三区视频在线观看| 亚洲一区二区在线观看视频 | 日韩午夜三级在线| 免费不卡在线观看| 日韩欧美一二三| 麻豆精品视频在线观看免费| 制服丝袜亚洲网站| 日韩电影在线观看网站| 69久久99精品久久久久婷婷| 婷婷夜色潮精品综合在线| 欧美日韩精品系列| 日韩高清不卡一区| 日韩一区二区三区av| 久久 天天综合| 26uuu另类欧美| 国产成人亚洲综合a∨婷婷图片| 久久亚洲免费视频| 国产成人av网站| 中文字幕中文乱码欧美一区二区| 97久久超碰精品国产| 亚洲综合精品自拍| 91麻豆精品久久久久蜜臀 | 北条麻妃国产九九精品视频| 国产精品久久久久9999吃药| 成人免费看的视频| 亚洲尤物在线视频观看| 欧美人xxxx| 激情伊人五月天久久综合| 国产欧美一区二区三区沐欲| 99精品欧美一区二区三区综合在线| 亚洲另类中文字| 欧美一区二区三区视频在线观看| 另类人妖一区二区av| 国产肉丝袜一区二区| 在线观看三级视频欧美| 日本视频中文字幕一区二区三区| 日韩一区二区三| jvid福利写真一区二区三区| 亚洲线精品一区二区三区 | 7777精品伊人久久久大香线蕉| 美女一区二区在线观看| 国产精品无人区| 欧美精品免费视频|