qiconview-h.html

来自「QT 下载资料仅供参考」· HTML 代码 · 共 539 行 · 第 1/2 页

HTML
539
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/reggie/tmp/qt-3.0-reggie-5401/qt-x11-commercial-3.0.5/include/qiconview.h:1 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>qiconview.h Include File</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr bgcolor="#E5E5E5"><td valign=center> <a href="index.html"><font color="#004faf">Home</font></a> | <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a> | <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a> | <a href="annotated.html"><font color="#004faf">Annotated</font></a> | <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a> | <a href="functions.html"><font color="#004faf">Functions</font></a></td><td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>qiconview.h</h1><p>This is the verbatim text of the qiconview.h include file. It is provided only for illustration; the copyright remains with Trolltech.<hr><pre>/****************************************************************************** $Id:  qt/qiconview.h   3.0.5   edited Oct 12 2001 $**** Definition of QIconView widget class**** Created : 990707**** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.**** This file is part of the iconview 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.************************************************************************/#ifndef QICONVIEW_H#define QICONVIEW_H#ifndef QT_H#include &lt;qscrollview.h&gt;#include &lt;qstring.h&gt;#include &lt;qrect.h&gt;#include &lt;qpoint.h&gt;#include &lt;qsize.h&gt;#include &lt;qfont.h&gt; // QString-&gt;QFont conversion#include &lt;qdragobject.h&gt;#include &lt;qbitmap.h&gt;#include &lt;qpicture.h&gt;#endif // QT_H#ifndef QT_NO_ICONVIEW#if !defined( QT_MODULE_ICONVIEW ) || defined( QT_INTERNAL_ICONVIEW )#define QM_EXPORT_ICONVIEW#else#define QM_EXPORT_ICONVIEW Q_EXPORT#endifclass QIconView;class QPainter;class QMimeSource;class QMouseEvent;class QDragEnterEvent;class QDragMoveEvent;class QDragLeaveEvent;class QKeyEvent;class QFocusEvent;class QShowEvent;class QIconViewItem;class QIconViewItemLineEdit;class QStringList;class QIconDragPrivate;#ifndef QT_NO_DRAGANDDROPclass QM_EXPORT_ICONVIEW QIconDragItem{public:    QIconDragItem();    virtual ~QIconDragItem();    virtual QByteArray data() const;    virtual void setData( const QByteArray &amp;d );    bool operator== ( const QIconDragItem&amp; ) const;private:    QByteArray ba;};class QM_EXPORT_ICONVIEW QIconDrag : public QDragObject{    Q_OBJECTpublic:    QIconDrag( QWidget * dragSource, const char* name = 0 );    virtual ~QIconDrag();    void append( const QIconDragItem &amp;item, const QRect &amp;pr, const QRect &amp;tr );    virtual const char* format( int i ) const;    static bool canDecode( QMimeSource* e );    virtual QByteArray encodedData( const char* mime ) const;private:    QIconDragPrivate *d;    QChar endMark;    friend class QIconView;    friend class QIconViewPrivate;};#endifclass QIconViewToolTip;class QIconViewItemPrivate;class QM_EXPORT_ICONVIEW QIconViewItem : public Qt{    friend class QIconView;    friend class QIconViewToolTip;    friend class QIconViewItemLineEdit;public:    QIconViewItem( QIconView *parent );    QIconViewItem( QIconView *parent, QIconViewItem *after );    QIconViewItem( QIconView *parent, const QString &amp;text );    QIconViewItem( QIconView *parent, QIconViewItem *after, const QString &amp;text );    QIconViewItem( QIconView *parent, const QString &amp;text, const QPixmap &amp;icon );    QIconViewItem( QIconView *parent, QIconViewItem *after, const QString &amp;text, const QPixmap &amp;icon );#ifndef QT_NO_PICTURE    QIconViewItem( QIconView *parent, const QString &amp;text, const QPicture &amp;picture );    QIconViewItem( QIconView *parent, QIconViewItem *after, const QString &amp;text, const QPicture &amp;picture );#endif    virtual ~QIconViewItem();    virtual void setRenameEnabled( bool allow );    virtual void setDragEnabled( bool allow );    virtual void setDropEnabled( bool allow );    virtual QString text() const;    virtual QPixmap *pixmap() const;#ifndef QT_NO_PICTURE    virtual QPicture *picture() const;#endif    virtual QString key() const;    bool renameEnabled() const;    bool dragEnabled() const;    bool dropEnabled() const;    QIconView *iconView() const;    QIconViewItem *prevItem() const;    QIconViewItem *nextItem() const;    int index() const;    virtual void setSelected( bool s, bool cb );    virtual void setSelected( bool s );    virtual void setSelectable( bool s );    bool isSelected() const;    bool isSelectable() const;    virtual void repaint();    virtual bool move( int x, int y );    virtual void moveBy( int dx, int dy );    virtual bool move( const QPoint &amp;pnt );    virtual void moveBy( const QPoint &amp;pnt );    QRect rect() const;    int x() const;    int y() const;    int width() const;    int height() const;    QSize size() const;    QPoint pos() const;    QRect textRect( bool relative = TRUE ) const;    QRect pixmapRect( bool relative = TRUE ) const;    bool contains( const QPoint&amp; pnt ) const;    bool intersects( const QRect&amp; r ) const;    virtual bool acceptDrop( const QMimeSource *mime ) const;#ifndef QT_NO_TEXTEDIT    void rename();#endif    virtual int compare( QIconViewItem *i ) const;    virtual void setText( const QString &amp;text );    virtual void setPixmap( const QPixmap &amp;icon );#ifndef QT_NO_PICTURE    virtual void setPicture( const QPicture &amp;icon );#endif    virtual void setText( const QString &amp;text, bool recalc, bool redraw = TRUE );    virtual void setPixmap( const QPixmap &amp;icon, bool recalc, bool redraw = TRUE );    virtual void setKey( const QString &amp;k );    virtual int rtti() const;    static int RTTI;protected:#ifndef QT_NO_TEXTEDIT    virtual void removeRenameBox();#endif    virtual void calcRect( const QString &amp;text_ = QString::null );    virtual void paintItem( QPainter *p, const QColorGroup &amp;cg );    virtual void paintFocus( QPainter *p, const QColorGroup &amp;cg );#ifndef QT_NO_DRAGANDDROP    virtual void dropped( QDropEvent *e, const QValueList&lt;QIconDragItem&gt; &amp;lst );#endif    virtual void dragEntered();    virtual void dragLeft();    void setItemRect( const QRect &amp;r );    void setTextRect( const QRect &amp;r );    void setPixmapRect( const QRect &amp;r );    void calcTmpText();private:    void init( QIconViewItem *after = 0#ifndef QT_NO_PICTURE	       , QPicture *pic = 0#endif	       );#ifndef QT_NO_TEXTEDIT    void renameItem();    void cancelRenameItem();#endif    void checkRect();    QIconView *view;    QString itemText, itemKey;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?