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

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

?? ktabctl.cpp

?? PIXIL is a small footprint operating environment, complete with PDA PIM applications, a browser and
?? CPP
字號:
/* This file is part of the KDE libraries    Copyright (C) 1997 Alexander Sanda (alex@darkstar.ping.at)    This library is free software; you can redistribute it and/or    modify it under the terms of the GNU Library General Public    License as published by the Free Software Foundation; either    version 2 of the License, or (at your option) any later version.    This library is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU    Library General Public License for more details.    You should have received a copy of the GNU Library General Public License    along with this library; see the file COPYING.LIB.  If not, write to    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,    Boston, MA 02111-1307, USA.*//* * $Id: ktabctl.cpp,v 1.1 2003/09/08 19:42:10 jasonk Exp $ * * $Log: ktabctl.cpp,v $ * Revision 1.1  2003/09/08 19:42:10  jasonk * Addition of packages directory and associated files. * * Revision 1.1.1.1  2003/08/07 21:18:33  jasonk * Initial import of PIXIL into new cvs repository. * * Revision 1.1.1.1  2003/06/23 22:04:24  jasonk * * * Revision 1.1.1.1  2000/07/07 16:11:00  jasonk * Initial import of ViewML * * Revision 1.16  1999/01/18 10:57:07  kulow * .moc files are back in kdelibs. Built fine here using automake 1.3 * * Revision 1.15  1999/01/15 09:31:26  kulow * it's official - kdelibs builds with srcdir != builddir. For this I * automocifized it, the generated rules are easier to maintain than * selfwritten rules. I have to fight with some bugs of this tool, but * generally it's better than keeping them updated by hand. * * Revision 1.14  1998/09/01 20:22:19  kulow * I renamed all old qt header files to the new versions. I think, this looks * nicer (and gives the change in configure a sense :) * * Revision 1.13  1998/07/13 08:39:32  hoss * Fixed small bug in showTab. pages[i]->raise() does only work with more than * one widget! * * Revision 1.12  1998/06/16 21:23:36  hoss * Added support for setFont and setShape * * Revision 1.11  1997/11/23 22:23:55  leconte * Two patches have been applied for the header line painting bug: * I removed mine. * * Revision 1.10  1997/11/18 21:41:39  kalle * kiconloaderdialog uses the default fonts (patch by Paul Kendall) * ktabctl paints the header lines correctly (patch by Paul Kendall) * * Revision 1.9  1997/11/15 03:10:49  esken * Applied another patch by Bertrand Leconte, which corrects the * Tab-Changes-Focus bug. * * Revision 1.8  1997/11/13 14:11:45  esken * Applied the changes of Bertrand Leconte. Now KTabCtl paints its top line. * Additional fix by me: Color "white" of Top/Left line changed to * "colorGroup().light()" (This bug was observed by Bernd Deimel, thanks). * * Revision 1.7  1997/10/21 20:45:06  kulow * removed all NULLs and replaced it with 0L or "". * There are some left in mediatool, but this is not C++ * * Revision 1.6  1997/10/16 11:15:54  torben * Kalle: Copyright headers * kdoctoolbar removed * * Revision 1.5  1997/10/09 11:46:29  kalle * Assorted patches by Fritz Elfert, Rainer Bawidamann, Bernhard Kuhn and Lars Kneschke * * Revision 1.4  1997/05/30 20:04:41  kalle * Kalle: * 30.05.97:	signal handler for reaping zombie help processes reinstalls itself * 		patch to KIconLoader by Christian Esken * 		slightly better look for KTabCtl * 		kdecore Makefile does not expect current dir to be in path * 		Better Alpha support * * Revision 1.3  1997/05/09 15:10:13  kulow * Coolo: patched ltconfig for FreeBSD * removed some stupid warnings * * Revision 1.2  1997/04/15 20:35:14  kalle * Included patch to ktabctl.cpp from kfind distribution * * Revision 1.1.1.1  1997/04/13 14:42:43  cvsuser * Source imported * * Revision 1.1.1.1  1997/04/09 00:28:09  cvsuser * Sources imported * * Revision 1.1  1997/03/15 22:40:57  kalle * Initial revision * * Revision 1.2.2.1  1997/01/07 14:41:57  alex * release 0.1 * * Revision 1.2  1997/01/07 14:39:15  alex * some doc added, tested - ok. * * Revision 1.1.1.1  1997/01/07 13:44:53  alex * imported * * * KTabCtl provides a universal tab control. It is in no ways limited to dialogs and * can be used for whatever you want. It has no buttons or any other stuff. * * However, this is based on the original QTabDialog. */#include "qtabbar.h"#include "qpushbutton.h"#include "qpainter.h"#include "qpixmap.h"#include "ktabctl.h"#include "ktabctl.h"KTabCtl::KTabCtl(QWidget *parent, const char *name)    : QWidget(parent, name){    tabs = new QTabBar(this, "_tabbar");    connect(tabs, SIGNAL(selected(int)), this, SLOT(showTab(int)));    tabs->move(2, 1);        blBorder = TRUE;    //    setFont(QFont("helvetica")); //BL: Why force a font ?}KTabCtl::~KTabCtl(){}void KTabCtl::resizeEvent(QResizeEvent *){    int i;    QRect r = getChildRect();        if (tabs) {        for (i=0; i<(int)pages.size(); i++) {            pages[i]->setGeometry(r);        }        if( ( tabs->shape() == QTabBar::RoundedBelow ) ||            ( tabs->shape() == QTabBar::TriangularBelow ) ) {            tabs->move( 0, height()-tabs->height()-4 );        }    }}void KTabCtl::setFont(const QFont & font){    QFont f(font);    f.setWeight(QFont::Light);    QWidget::setFont(f);    setSizes();}void KTabCtl::setTabFont(const QFont & font){    QFont f(font);//    f.setWeight(QFont::Light);    tabs->setFont(f);    setSizes();}void KTabCtl::show(){    unsigned int i;        if(isVisible())	return;    setSizes();    for(i = 0; i < pages.size(); i++)	pages[i]->hide();    QResizeEvent r(size(), size());    resizeEvent(&r);    QWidget::show();}bool KTabCtl::isTabEnabled(const char *name){    unsigned int i;        for(i = 0; i < pages.size(); i++)	if (!qstrcmp( pages[i]->name(), name))	    return tabs->isTabEnabled(i);   /* return the enabled status */    return FALSE;     /* tab does not exist */}void KTabCtl::setTabEnabled(const char * name, bool state){    unsigned i;    if((name == 0L) || (strlen(name) == 0))        return;        for(i = 0; i < pages.size(); i++)	if(!qstrcmp(pages[i]->name(), name))	    tabs->setTabEnabled(i, state);}void KTabCtl::setSizes(){    unsigned i;        QSize min(tabs->sizeHint());    /* the minimum required size for the tabbar */    tabs->resize(min);         /* make sure that the tabbar does not require more space than actually needed. */            QSize max(QCOORD_MAX,QCOORD_MAX);    //int th = min.height();          /* the height of the tabbar itself (without pages and stuff) */    for (i = 0; i < pages.size(); i++) {        /*         * check the actual minimum and maximum sizes         */        	if (pages[i]->maximumSize().height() < max.height())	    max.setHeight(pages[i]->maximumSize().height());	if (pages[i]->maximumSize().width() < max.width())	    max.setWidth( pages[i]->maximumSize().width());	if ( pages[i]->minimumSize().height() > min.height())	    min.setHeight( pages[i]->minimumSize().height());	if ( pages[i]->minimumSize().width() > min.width())	    min.setWidth( pages[i]->minimumSize().width());    }    // BL: min and max are sizes of children, not tabcontrol    // min.setHeight(min.height() + th);    if (max.width() < min.width())	max.setWidth(min.width());    if (max.height() < min.height())	max.setHeight(min.height());    /*     * now, apply the calculated size values to all of the pages     */        for( i=0; i<(uint)pages.size(); i++ ) {	pages[i]->setMinimumSize(min);	pages[i]->setMaximumSize(max);    }    // BL: set minimum size of tabcontrol    setMinimumSize(min.width()+4, min.height()+tabs->height()+4);    /*     * generate a resizeEvent, if we're visible     */        if(isVisible()) {	QResizeEvent r(size(), size());	resizeEvent(&r);    }}void KTabCtl::setBorder( bool state ){    blBorder = state;}void KTabCtl::setShape( QTabBar::Shape shape ){    tabs->setShape( shape );  }void KTabCtl::paintEvent(QPaintEvent *){    if (!tabs)	return;    if( !blBorder )        return;          QPainter p;    p.begin(this);    int y0 = getChildRect().top() - 1;    int y1 = getChildRect().bottom() + 2;    int x1 = getChildRect().right() + 2;    int x0 = getChildRect().left() - 1;    p.setPen( colorGroup().light() );    p.drawLine(x0, y0, x1 - 1, y0);      /* top line */    p.drawLine(x0, y0 + 1, x0, y1);      /* left line */    p.setPen(black);    p.drawLine(x1, y1, x0, y1);          /* bottom line */    p.drawLine(x1, y1 - 1, x1, y0);    p.setPen(colorGroup().dark());    p.drawLine(x0 + 1, y1 - 1, x1 - 1, y1 - 1);  /* bottom */    p.drawLine(x1 - 1, y1 - 2, x1 - 1, y0 + 1);    p.end();}/* * return the client rect. This is the maximum size for any child * widget (page). */QRect KTabCtl::getChildRect() const{    if( ( tabs->shape() == QTabBar::RoundedBelow ) ||         ( tabs->shape() == QTabBar::TriangularBelow ) ) {    	return QRect(2, 1, width() - 4,		     height() - tabs->height() - 4);          } else {      	return QRect(2, tabs->height() + 1, width() - 4,		     height() - tabs->height() - 4);    }}/* * show a single page, depending on the selected tab * emit tabSelected(new_pagenumber) BEFORE the page is shown */void KTabCtl::showTab(int i){    unsigned int j;    for (j = 0; j < pages.size(); j++) {      if (j != (unsigned)i) {        pages[j]->hide();      }    }    if((unsigned)i < pages.size()) {        emit(tabSelected(i));	if( pages.size() >= 2 ) { 	  pages[i]->raise();	}        pages[i]->setGeometry(getChildRect());        pages[i]->show();    }}/* * add a tab to the control. This tab will manage the given Widget w. * in most cases, w will be a QWidget and will only act as parent for the * actual widgets on this page * NOTE: w is not required to be of class QWidget, but expect strange results with * other types of widgets */void KTabCtl::addTab(QWidget *w, const char *name){    QTab *t = new QTab();    t->label = name;    t->enabled = TRUE;    int id = tabs->addTab(t);   /* add the tab itself to the tabbar */    if (id == (int)pages.size()) {	pages.resize(id + 1);        pages[id] = w;          /* remember the widget to manage by this tab */    }    // BL: compute sizes    setSizes();}#include "ktabctl.moc"

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲免费电影在线| 欧美激情一区二区| 偷拍日韩校园综合在线| 欧美日韩精品欧美日韩精品一综合| 亚洲黄色小视频| 欧美日韩国产三级| 久久99在线观看| 欧美经典一区二区| 91香蕉视频在线| 视频一区免费在线观看| 久久夜色精品国产噜噜av| yourporn久久国产精品| 亚洲自拍偷拍综合| 欧美电视剧在线看免费| 顶级嫩模精品视频在线看| 亚洲欧美电影院| 日韩午夜精品视频| 成+人+亚洲+综合天堂| 亚洲一区视频在线观看视频| 欧美一区二区视频免费观看| 成人综合激情网| 亚洲成人免费观看| 久久久九九九九| 欧美中文字幕一区二区三区亚洲| 日韩和欧美的一区| 国产精品理论片| 在线成人av网站| www.一区二区| 日韩av网站在线观看| 国产精品欧美久久久久无广告| 欧美天堂亚洲电影院在线播放| 国产精品一区二区在线看| 亚洲国产一二三| 中文字幕欧美区| 欧美一级理论片| 成人黄色国产精品网站大全在线免费观看| 一区二区三区国产精品| 2022国产精品视频| 欧美日韩国产综合一区二区三区| 国产成人h网站| 男女视频一区二区| 亚洲最新视频在线观看| 国产欧美精品国产国产专区| 欧美一区二区视频在线观看| 日本高清视频一区二区| 国产成人免费视频网站 | 亚洲午夜激情网站| 久久久久久一二三区| 欧美一区二区视频观看视频| 色综合久久综合中文综合网| 国产一本一道久久香蕉| 五月婷婷激情综合| 亚洲情趣在线观看| 中文字幕在线播放不卡一区| 久久无码av三级| 欧美一级欧美一级在线播放| 91福利精品视频| 99久久精品情趣| 国产成人综合在线播放| 久久69国产一区二区蜜臀| 丝袜美腿亚洲色图| 亚洲一区二区三区自拍| 亚洲精品中文在线影院| 中文字幕一区二区日韩精品绯色| 国产亚洲精品aa| 久久久久久久网| 精品99一区二区三区| 日韩免费观看高清完整版 | 国产在线精品不卡| 激情av综合网| 黄色日韩网站视频| 黄色日韩三级电影| 国产精品白丝av| 国产成人在线视频网址| 国产精品一区久久久久| 国产精品主播直播| 国产成人精品综合在线观看| 国产aⅴ精品一区二区三区色成熟| 国内成人精品2018免费看| 激情综合色综合久久| 国内久久精品视频| 国产mv日韩mv欧美| www.视频一区| 欧美亚洲一区三区| 欧美日韩大陆一区二区| 制服丝袜av成人在线看| 91麻豆精品国产| 精品国内片67194| 久久免费国产精品| 综合久久久久久| 亚洲va欧美va国产va天堂影院| 一区二区久久久久| 日韩高清在线不卡| 国产中文一区二区三区| 成人午夜电影小说| 色域天天综合网| 欧美一区二区视频观看视频 | 成人av网站在线观看| 色综合天天做天天爱| 欧美日韩成人在线| 日韩三区在线观看| 中文字幕不卡一区| 亚洲国产一区视频| 国产一区欧美二区| 91传媒视频在线播放| 日韩欧美一区二区视频| 国产精品嫩草99a| 亚洲已满18点击进入久久| 另类人妖一区二区av| jizz一区二区| 91麻豆精品国产91久久久久久 | 成人黄色777网| 欧美怡红院视频| 久久综合久久综合久久| 一区二区三区在线免费观看| 美女脱光内衣内裤视频久久影院| 高清beeg欧美| 3atv一区二区三区| 国产精品免费人成网站| 日韩综合在线视频| 成人精品国产免费网站| 91精品国产aⅴ一区二区| 国产精品久久久久影院| 蜜臀av性久久久久蜜臀aⅴ四虎 | 91碰在线视频| 日韩亚洲欧美中文三级| 亚洲欧美日韩电影| 国产一区二区三区久久悠悠色av| 欧美视频在线播放| 国产精品美女久久久久久久| 奇米四色…亚洲| 日本乱码高清不卡字幕| 国产欧美一区二区在线观看| 日本视频一区二区| 色又黄又爽网站www久久| 久久精品人人做人人综合| 视频一区二区中文字幕| 色视频欧美一区二区三区| 国产农村妇女精品| 国产麻豆日韩欧美久久| 欧美一区二区三区免费| 午夜精品久久久久影视| 成a人片亚洲日本久久| wwwwww.欧美系列| 日本视频在线一区| 51精品国自产在线| 亚洲二区在线视频| 欧美最新大片在线看| ...av二区三区久久精品| 国产不卡在线一区| 国产欧美日韩综合| 狠狠色2019综合网| 日韩美一区二区三区| 日欧美一区二区| 欧美一区二区在线看| 日本伊人色综合网| 91麻豆精品国产无毒不卡在线观看 | 国产精品热久久久久夜色精品三区 | 在线观看成人免费视频| 亚洲乱码国产乱码精品精的特点| 成人午夜碰碰视频| 国产精品免费视频一区| 成人福利视频在线| 国产精品伦理在线| av激情亚洲男人天堂| 国产精品免费视频网站| 91视频在线观看| 亚洲免费av观看| 欧美视频一区二区三区四区| 亚洲一区在线免费观看| 欧美日韩一区二区电影| 亚洲成人激情av| 678五月天丁香亚洲综合网| 久久精品国产亚洲高清剧情介绍 | 欧美性色aⅴ视频一区日韩精品| 亚洲黄色免费网站| 精品视频在线免费看| 亚洲五月六月丁香激情| 91精品国产综合久久福利| 麻豆传媒一区二区三区| 久久精品视频一区二区| 96av麻豆蜜桃一区二区| 一区二区三区四区在线免费观看| 欧美午夜不卡在线观看免费| 丝袜诱惑制服诱惑色一区在线观看| 欧美色视频一区| 麻豆视频一区二区| 国产亚洲1区2区3区| 99v久久综合狠狠综合久久| 一片黄亚洲嫩模| 日韩欧美视频在线| 粉嫩久久99精品久久久久久夜| 中文字幕视频一区二区三区久| 色视频成人在线观看免| 毛片av中文字幕一区二区| 久久亚洲一级片| 色婷婷综合久久久| 久久精品国产成人一区二区三区 | 欧美三级日韩三级| 国产资源精品在线观看|