QIRichLabel.h revision b9042bb7a5efd07d617a8a7d812b669d75682779
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* InnoTek Qt extensions: QIRichLabel class declaration
*/
/*
* Copyright (C) 2006 InnoTek Systemberatung GmbH
*
* 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 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.
*
* If you received this file as part of a commercial VirtualBox
* distribution, then only the terms of your commercial VirtualBox
* license agreement apply instead of the previous paragraph.
*/
/*
* This class is based on the original QLabel implementation.
*/
#ifndef __QIRichLabel_h__
#define __QIRichLabel_h__
#include "qframe.h"
{
WFlags f=0);
~QIRichLabel();
TextFormat textFormat() const;
void setTextFormat( TextFormat );
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 clear();
void drawContents ( QPainter * );
void fontChange ( const QFont & );
void resizeEvent ( QResizeEvent* );
void focusInEvent ( QFocusEvent* );
void keyPressEvent ( QKeyEvent* );
void contextMenuEvent (QContextMenuEvent*);
void putToClipBoard();
void acceleratorSlot();
void buddyDied();
void movieUpdated(const QRect&);
void movieResized(const QSize&);
void init();
void clearContents();
QSize sizeForWidth (int w) const;
short extraMargin;
QLabelPrivate *d;
QIRichLabel( const QIRichLabel & );
};
#endif // __QIRichLabel_h__