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

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

?? qframe.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/****************************************************************************** $Id: qt/src/widgets/qframe.cpp   2.3.12   edited 2005-10-27 $**** Implementation of QFrame widget class**** Created : 950201**** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.**** This file is part of the widgets module of the Qt GUI Toolkit.**** This file may be distributed under the terms of the Q Public License** as defined by Trolltech AS of Norway and appearing in the file** LICENSE.QPL included in the packaging of this file.**** This file may be distributed and/or modified under the terms of the** GNU General Public License version 2 as published by the Free Software** Foundation and appearing in the file LICENSE.GPL included in the** packaging of this file.**** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition** licenses may use this file in accordance with the Qt Commercial License** Agreement provided with the Software.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.**** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for**   information about Qt Commercial License Agreements.** See http://www.trolltech.com/qpl/ for QPL licensing information.** See http://www.trolltech.com/gpl/ for GPL licensing information.**** Contact info@trolltech.com if any conditions of this licensing are** not clear to you.************************************************************************/#include "qframe.h"#ifndef QT_NO_FRAME#include "qpainter.h"#include "qdrawutil.h"#include "qframe.h"#include "qbitmap.h"#ifdef QT_KEYPAD_MODE#include <qobject.h>#endif#ifdef QT_KEYPAD_MODEextern bool qt_modalEditingEnabled;#endif// REVISED: warwick/*!  \class QFrame qframe.h  \brief The QFrame class is the base class of widgets that can have a frame.  \ingroup abstractwidgets  It draws a frame and calls a virtual function, drawContents(), to  fill in the frame.  This function is reimplemented by  subclasses.  There are also two other less useful functions,  drawFrame() and frameChanged().  QPopupMenu uses this to "raise" the menu above the surrounding  screen. QProgressBar has a "sunken" look.  QLabel has a flat look.  The frames of widgets such as these can be changed.  \code    QLabel label(...);    label.setFrameStyle( QFrame::Panel | QFrame::Raised );    label.setLineWidth( 2 );    QProgressBar pbar(...);    label.setFrameStyle( QFrame::NoFrame );  \endcode  The QFrame class can also be used directly for creating simple frames  without any contents, although usually you would use a QHBox or QVBox  as these layout the widgets you put inside the frame.  A frame widget has four attributes: frameStyle(), lineWidth(),  midLineWidth(), and margin().  The frame style is specified by a  \link QFrame::Shape frame shape\endlink and a  \link QFrame::Shadow shadow style\endlink.  The frame shapes are \c NoFrame, \c Box, \c Panel,  \c StyledPanel, \c PopupPanel,  \c WinPanel, \c HLine and \c VLine, and the shadow styles are \c Plain,  \c Raised and \c Sunken.  The line width is the width of the frame border.  The mid-line width specifies the width of an extra line in the  middle of the frame, that uses a third color to obtain a special 3D  effect.  Notice that a mid-line is only drawn for \c Box, \c HLine  and \c VLine frames that are raised or sunken.  The margin is the gap between the frame and the contents of the frame.  <a name=picture></a>  This table shows the most useful combinations of styles and widths  (and some rather useless ones):  <img src=frames.png width=515 height=414 alt="Table of frame styles">*//*! \enum QFrame::Shape  This enum type defines the shapes of a QFrame's frame.  The  currently defined shapes are: <ul>  <li> \c NoFrame - QFrame draws nothing  <li> \c Box - QFrame draws a box around its contents  <li> \c Panel - QFrame draws a panel such that the contents appear raised or sunken  <li> \c WinPanel - like \c Panel, but QFrame draws the 3D effects  the way Microsoft Windows 95 (etc) does  <li> \c HLine - QFrame draws a horizontal line that frames nothing  (useful as separator)  <li> \c VLine - QFrame draws a vertical line that frames nothing  (useful as separator)  <li> \c StyledPanel - QFrame calls QStyle::drawPanel()  <li> \c PopupPanel - QFrame calls QStyle::drawPopupPanel()  </ul>  When it does not call QStyle, Shape interacts with QFrame::Shadow,  the lineWidth() and the midLineWidth() to create the total result.  The <a href="#picture">picture of the frames</a> in the class  documentation may illustrate this better than words.  \sa QFrame::Shadow QFrame::style() QStyle::drawPanel()  QStyle::drawPopupPanel()*//*! \enum QFrame::Shadow  This enum type defines the 3D effect used for QFrame's frame.  The  currently defined effects are: <ul>  <li> \c Plain - the frame and contents appear level with the surroundings  <li> \c Raised - the frame and contents appear raised  <li> \c Sunken - the frame and contents appear sunken  </ul>  Shadow interacts with QFrame::Shape, the lineWidth() and the  midLineWidth().  The <a href="#picture">picture of the frames</a> in  the class documentation may illustrate this better than words.  \sa QFrame::Shape lineWidth() midLineWidth()*/#ifdef QT_KEYPAD_MODE/*!    \Internal    Needed to stay binary compatible*/class QFrameEventHandler : public QObject{public:    QFrameEventHandler(QWidget *parent)	: QObject(parent, 0)    {	parent->installEventFilter(this);    }    bool eventFilter(QObject *o, QEvent *e)    {	return ((QFrame *)o)->eventPrivate(e);    }};#endif/*!  Constructs a frame widget with frame style \c NoFrame and a 1 pixel frame  width.  The last argument exists for compatibility with Qt 1.x; it  no longer has any meaning.  The \e parent, \e name and \e f arguments are passed to the QWidget  constructor.*/QFrame::QFrame( QWidget *parent, const char *name, WFlags f,		bool )    : QWidget( parent, name, f ){    frect  = QRect( 0, 0, 0, 0 );    fstyle = NoFrame;    lwidth = 1;    mwidth = 0;    mlwidth = 0;    d = 0;    updateFrameWidth();#ifdef QT_KEYPAD_MODE    if( qt_modalEditingEnabled )	(void) new QFrameEventHandler(this);#endif}static const int wpwidth = 2; // WinPanel lwidth/*!  \fn int QFrame::frameStyle() const  Returns the frame style.  The default value is QFrame::NoFrame.  \sa setFrameStyle(), frameShape(), frameShadow()*//*!  \fn Shape QFrame::frameShape() const  Returns the frame shape value from the frame style.  \sa setFrameShape(), frameStyle(), frameShadow()*//*!  \fn void QFrame::setFrameShape(Shape)  Sets the frame shape value of the frame style.  \sa frameShape(), frameStyle(), setFrameShadow()*//*!  \fn Shadow QFrame::frameShadow() const  Returns the frame shadow value from the frame style.  \sa setFrameShadow(), frameStyle(), frameShape()*//*!  \fn void QFrame::setFrameShadow( Shadow )  Sets the frame shadow value of the frame style.  \sa frameShadow(), frameStyle(), setFrameShape()*//*!  Sets the frame style to \e style.  The \e style is the bitwise OR between a frame shape and a frame  shadow style.  See the <a href="#picture">illustration</a> in the  class documentation.  The frame shapes are:  <ul>  <li> \c NoFrame draws nothing. Naturally, you should not specify a shadow  style if you use this.  <li> \c Box draws a rectangular box.  The contents appear to be  level with the surrounding screen, but the border itself may be  raised or sunken.  <li> \c Panel draws a rectangular panel that can be raised or sunken.  <li> \c StyledPanel draws a rectangular panel with a look depending on  the current GUI style.  It can be raised or sunken.  <li> \c PopupPanel is used to draw a frame suitable for popup windows.  Its look also depends on the current GUI style,  usually the same as  \c StyledPanel.  <li> \c WinPanel draws a rectangular panel that can be raised or  sunken, very like those in Windows 95.  Specifying this shape sets  the line width to 2 pixels.  WinPanel is provided for compatibility.  For GUI style independence we recommend using StyledPanel instead.  <li> \c HLine draws a horizontal line (vertically centered).  <li> \c VLine draws a vertical line (horizontally centered).  </ul>  The shadow styles are:  <ul>  <li> \c Plain draws using the palette foreground color (without any  3D effect).  <li> \c Raised draws a 3D raised line using the light and dark  colors of the current color group.  <li> \c Sunken draws a 3D sunken line using the light and dark  colors of the current color group.  </ul>  If a mid-line width greater than 0 is specified, an additional line  is drawn for \c Raised or \c Sunken \c Box, \c HLine and \c VLine  frames.  The mid color of the current color group is used for  drawing middle lines.  \sa <a href="#picture">Illustration</a>, frameStyle(),  colorGroup(), QColorGroup*/void QFrame::setFrameStyle( int style ){    //   If this is a line, it may stretch in the direction of the    //   line, but it is fixed in the other direction. If this is a    //   normal frame, use QWidget's default behavior.    switch (style & MShape) {    case HLine:	setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Fixed ) );	break;    case VLine:	setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Minimum ) );	break;    default:	// only reset if it was hline or vline	if ( (fstyle & MShape) == HLine || (fstyle & MShape) == VLine )	    setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred ) );    }    fstyle = (short)style;    updateFrameWidth();}/*!  \fn int QFrame::lineWidth() const  Returns the line width.  (Note that the \e total line width  for \c HLine and \c VLine is given by frameWidth(), not  lineWidth().)  The default value is 1.  \sa setLineWidth(), midLineWidth(), frameWidth()*//*!  Sets the line width to \e w.  \sa frameWidth(), lineWidth(), setMidLineWidth()*/void QFrame::setLineWidth( int w ){    lwidth = (short)w;    updateFrameWidth();}/*!  \fn int QFrame::midLineWidth() const  Returns the width of the mid-line.  The default value is 0.  \sa setMidLineWidth(), lineWidth(), frameWidth()*//*!  Sets the width of the mid-line to \e w.  \sa midLineWidth(), setLineWidth()*/void QFrame::setMidLineWidth( int w ){    mlwidth = (short)w;    updateFrameWidth();}/*!  \fn int QFrame::margin() const  Returns the width of the margin. The margin is the distance between the  innermost pixel of the frame and the outermost pixel of contentsRect().  It is included in frameWidth().  The margin is filled according to backgroundMode().  The default value is 0.  \sa setMargin(), lineWidth(), frameWidth()*//*!  Sets the width of the margin to \e w.  \sa margin(), setLineWidth()*/void QFrame::setMargin( int w ){    mwidth = (short)w;    updateFrameWidth();}/*!  \internal  Updated the fwidth parameter.*/void QFrame::updateFrameWidth(){    int type  = fstyle & MShape;    int style = fstyle & MShadow;    fwidth = -1;    switch ( type ) {    case NoFrame:	fwidth = 0;	break;    case Box:	switch ( style ) {	case Plain:	    fwidth = lwidth;	    break;	case Raised:	case Sunken:	    fwidth = (short)(lwidth*2 + midLineWidth() );	    break;	}	break;    case Panel:    case StyledPanel:    case PopupPanel:	switch ( style ) {	case Plain:	case Raised:	case Sunken:	    fwidth = lwidth;	    break;	}	break;    case WinPanel:	switch ( style ) {	case Plain:	case Raised:	case Sunken:	    fwidth =  wpwidth; //WinPanel does not use lwidth!	    break;	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天天综合网天天综合色| 欧美日韩国产一二三| 欧美大片一区二区三区| 日韩制服丝袜先锋影音| 欧美日韩一二三区| 亚洲一区二区三区四区五区黄| 国产呦精品一区二区三区网站| 欧美久久婷婷综合色| 亚洲一区二区欧美| 8x8x8国产精品| 五月婷婷欧美视频| 日韩免费高清av| 久久se精品一区精品二区| 精品粉嫩aⅴ一区二区三区四区| 精品亚洲成a人在线观看| 亚洲国产精品v| 一本到三区不卡视频| 人人狠狠综合久久亚洲| 久久综合资源网| 欧美性生活大片视频| 麻豆久久久久久久| 日韩一区在线免费观看| 欧美一卡在线观看| 成人福利视频网站| 艳妇臀荡乳欲伦亚洲一区| 欧美变态口味重另类| 美女mm1313爽爽久久久蜜臀| 欧美精品一区二区三区蜜桃| 国产一区二区三区在线观看精品 | 3d成人动漫网站| 福利一区二区在线| 日韩av在线免费观看不卡| 亚洲啪啪综合av一区二区三区| 亚洲精品在线观看视频| 国产精品色呦呦| 欧美xxxxxxxxx| 337p亚洲精品色噜噜| 91丝袜国产在线播放| 奇米在线7777在线精品| 日韩视频永久免费| 欧美日韩国产一二三| 9i在线看片成人免费| 不卡在线视频中文字幕| 成人国产一区二区三区精品| 国产曰批免费观看久久久| 国产乱色国产精品免费视频| 久久精品国产网站| 精品一区二区久久| 国产精品一区二区免费不卡| 国产精品69毛片高清亚洲| 国产麻豆成人传媒免费观看| 国产成人在线色| 亚洲女女做受ⅹxx高潮| 一区二区三区四区不卡在线| 国产精品每日更新在线播放网址| 久久久久久久性| 国产欧美一二三区| 中文字幕视频一区二区三区久| 亚洲精品一二三| 亚洲第一福利一区| 五月综合激情网| 激情欧美日韩一区二区| 成人午夜短视频| 5566中文字幕一区二区电影| 久久青草欧美一区二区三区| 亚洲午夜久久久久久久久电影网| 97久久精品人人做人人爽50路| 国内精品久久久久影院薰衣草 | 亚洲va天堂va国产va久| 国产99精品在线观看| 欧美日韩在线亚洲一区蜜芽| 日韩欧美国产综合| 亚洲欧美日韩成人高清在线一区| 久久精品国产99国产| 在线影院国内精品| 久久精品人人做人人综合| 亚洲一二三区视频在线观看| 国产精品一卡二卡在线观看| 欧美偷拍一区二区| 亚洲欧美激情插 | 综合色天天鬼久久鬼色| 亚洲成人你懂的| 成人福利电影精品一区二区在线观看| 欧美日韩卡一卡二| 亚洲精品视频一区| 99免费精品视频| 欧美一级免费观看| 亚洲精品乱码久久久久久久久| 久久精品免费观看| 欧美美女网站色| 日韩精品色哟哟| 欧美日韩二区三区| 亚洲国产欧美在线| 欧美男生操女生| 久久66热偷产精品| 精品在线观看视频| 亚洲精品在线一区二区| 久久av中文字幕片| 久久综合色天天久久综合图片| 波多野结衣中文字幕一区 | 久久国内精品自在自线400部| 色菇凉天天综合网| 亚洲成av人片一区二区三区 | 激情另类小说区图片区视频区| 精品成人一区二区| 99视频精品全部免费在线| 一区二区三区波多野结衣在线观看 | 一道本成人在线| 日韩福利视频网| 国产精品久久久久桃色tv| 色婷婷久久久亚洲一区二区三区| 五月婷婷激情综合| 国产农村妇女精品| 正在播放一区二区| 成人高清av在线| 成人久久视频在线观看| 一片黄亚洲嫩模| 国产三级欧美三级| 在线视频你懂得一区二区三区| 喷水一区二区三区| 一区二区三区在线播| 欧美电视剧免费全集观看 | 日日摸夜夜添夜夜添国产精品| 国产婷婷色一区二区三区| 欧美自拍丝袜亚洲| 国产风韵犹存在线视精品| 日本vs亚洲vs韩国一区三区二区| 国产嫩草影院久久久久| 欧美成人午夜电影| 欧美亚洲国产一卡| 在线观看亚洲成人| 91视视频在线观看入口直接观看www | 亚洲人成人一区二区在线观看| 91精品国产免费| 日本韩国欧美一区| 色婷婷久久一区二区三区麻豆| 成人激情黄色小说| 99久久婷婷国产精品综合| 成人激情开心网| 91在线无精精品入口| 成人精品视频一区| 一本大道av伊人久久综合| 成人动漫在线一区| 另类小说图片综合网| 全部av―极品视觉盛宴亚洲| 一区二区三区欧美激情| 亚洲图片一区二区| 日精品一区二区三区| 久热成人在线视频| 91网址在线看| 91久久精品一区二区二区| 91看片淫黄大片一级| 69堂精品视频| 久久久三级国产网站| 国产精品久久久久久亚洲伦| 亚洲精品免费播放| 欧美a级理论片| 成人黄色小视频| 4438x成人网最大色成网站| 久久精品在线观看| 久久精品视频网| 国产精品久久久久久久久久久免费看 | 精品亚洲成a人| 91色视频在线| 久久综合色天天久久综合图片| 亚洲你懂的在线视频| 九九九久久久精品| 久久国产精品99久久久久久老狼| 狠狠色狠狠色综合系列| 国产成人精品三级| 欧美精品成人一区二区三区四区| 久久久亚洲精品石原莉奈| 亚洲chinese男男1069| 成人自拍视频在线| 欧美一区二区三区免费视频| 中文字幕欧美激情| 国产综合色精品一区二区三区| 91国产福利在线| 国产精品久久久久9999吃药| 欧美午夜精品电影| 日韩午夜在线播放| 日韩av一区二区在线影视| 91福利在线免费观看| 一区二区三区91| 色综合天天天天做夜夜夜夜做| 欧美午夜精品久久久久久孕妇| 久久无码av三级| 秋霞电影一区二区| 欧美日韩一级二级三级| 亚洲图片欧美综合| 欧美老女人在线| 青青草精品视频| 欧美日韩成人高清| 亚洲一区二区三区四区在线观看| 91精品福利视频| 丝袜美腿高跟呻吟高潮一区| 欧美日韩国产不卡| 免费不卡在线视频| 久久亚洲精华国产精华液| 国产馆精品极品|