QIRichLabel.h revision ad6025fdf797313667d02b6dd49b0be9b58d4a05
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* VirtualBox Qt extensions: QIRichLabel class declaration
*/
/*
* Copyright (C) 2006-2007 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
/*
* This class is based on the original QLabel implementation.
*/
#ifndef __QIRichLabel_h__
#define __QIRichLabel_h__
#include "q3frame.h"
//Added by qt3to4:
#include <Q3Accel>
#include <Q3Picture>
#include <QPixmap>
#include <QResizeEvent>
#include <QMouseEvent>
#include <QContextMenuEvent>
#include <QKeyEvent>
#include <Q3PopupMenu>
#include <QFocusEvent>
{
// Q_PROPERTY( Qt::Alignment alignment READ alignment WRITE setAlignment )
~QIRichLabel();
virtual void setAlignment( int );
int indent() const { return extraMargin; }
void setIndent( int );
bool autoResize() const { return autoresize; }
virtual void setAutoResize( bool );
bool hasScaledContents() const;
void setScaledContents( bool );
QSize minimumSizeHint() const;
int heightForWidth(int) const;
void setFixedHeight (int);
void setMaxHeightMode (bool);
void clear();
void putToClipBoard();
void drawContents ( QPainter * );
void fontChange ( const QFont & );
void mouseMoveEvent (QMouseEvent *);
void mousePressEvent (QMouseEvent *);
void resizeEvent ( QResizeEvent* );
void focusInEvent ( QFocusEvent* );
void keyPressEvent ( QKeyEvent* );
void contextMenuEvent (QContextMenuEvent*);
void clickedOnLink (const QString&);
void acceleratorSlot();
void buddyDied();
void movieUpdated(const QRect&);
void movieResized(const QSize&);
void init();
void clearContents();
QSize sizeForWidth (int w) const;
bool mIsMainTip;
short extraMargin;
QLabelPrivate *d;
bool mMaxHeightMode;
QIRichLabel( const QIRichLabel & );
};
#endif // __QIRichLabel_h__