#include <TQtWidget.h>
Public Types | |
enum | |
Public Slots | |
virtual void | cd () |
virtual void | cd (int subpadnumber) |
void | Disconnect () |
void | Refresh () |
virtual bool | Save (const QString &fileName) const |
virtual bool | Save (const char *fileName) const |
virtual bool | Save (const QString &fileName, const char *format, int quality=60) const |
virtual bool | Save (const char *fileName, const char *format, int quality=60) const |
Signals | |
void | CanvasPainted () |
void | Saved (bool ok) |
void | RootEventProcessed (TObject *selected, unsigned int event, TCanvas *c) |
Public Member Functions | |
TQtWidget (QWidget *parent, const char *name, Qt::WFlags f=0, bool embedded=TRUE) | |
TQtWidget (QWidget *parent=0, Qt::WFlags f=0, bool embedded=TRUE) | |
virtual | ~TQtWidget () |
void | SetCanvas (TCanvas *c) |
TCanvas * | GetCanvas () const |
TQtWidgetBuffer & | SetBuffer () |
const TQtWidgetBuffer * | GetBuffer () const |
QPixmap * | GetOffScreenBuffer () const |
virtual void | Erase () |
bool | IsDoubleBuffered () const |
void | SetDoubleBuffer (bool on=TRUE) |
virtual void | SetSaveFormat (const char *format) |
virtual QSize | sizeHint () const |
virtual QSize | minimumSizeHint () const |
virtual QSizePolicy | sizePolicy () const |
void | SetBit (UInt_t f, Bool_t set) |
void | SetBit (UInt_t f) |
void | ResetBit (UInt_t f) |
Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
void | InvertBit (UInt_t f) |
void | EmitSignal (UInt_t f) |
void | EmitTestedSignal () |
UInt_t | GetAllBits () const |
void | SetAllBits (UInt_t f) |
void | SetCanvasDecorator (TQtCanvasPainter *decorator) |
Int_t | GetEvent () const |
Int_t | GetEventX () const |
Int_t | GetEventY () const |
TObject * | GetSelected () const |
Int_t | GetSelectedX () const |
Int_t | GetSelectedY () const |
TVirtualPad * | GetSelectedPad () const |
void | EnableSignalEvents (UInt_t f) |
void | DisableSignalEvents (UInt_t f) |
Bool_t | IsSignalEventEnabled (UInt_t f) const |
Static Public Member Functions | |
static TApplication * | InitRint (Bool_t prompt=kFALSE, const char *appClassName="QtRint", int *argc=0, char **argv=0, void *options=0, int numOptions=0, Bool_t noLogo=kTRUE) |
static TCanvas * | Canvas (TQtWidget *widget) |
static TQtWidget * | Canvas (const TCanvas *canvas) |
static TQtWidget * | Canvas (Int_t id) |
Protected Slots | |
void | RefreshCB () |
Protected Member Functions | |
void | Init () |
void | ResetCanvas () |
void | SetRootID (QWidget *wrapper) |
QWidget * | GetRootID () const |
virtual void | EmitCanvasPainted () |
TCanvas * | Canvas () |
bool | paintFlag (bool mode=TRUE) |
void | AdjustBufferSize () |
bool | PaintingActive () const |
void | SetIgnoreLeaveEnter (int ignore=1) |
virtual void | enterEvent (QEvent *) |
virtual void | customEvent (QEvent *) |
virtual void | contextMenuEvent (QContextMenuEvent *) |
virtual void | focusInEvent (QFocusEvent *) |
virtual void | focusOutEvent (QFocusEvent *) |
virtual void | leaveEvent (QEvent *) |
virtual void | mouseDoubleClickEvent (QMouseEvent *) |
virtual void | mouseMoveEvent (QMouseEvent *) |
virtual void | mousePressEvent (QMouseEvent *) |
virtual void | mouseReleaseEvent (QMouseEvent *) |
virtual void | keyPressEvent (QKeyEvent *) |
virtual void | keyReleaseEvent (QKeyEvent *) |
virtual void | showEvent (QShowEvent *) |
virtual void | paintEvent (QPaintEvent *) |
virtual void | resizeEvent (QResizeEvent *) |
virtual void | SetSizeHint (const QSize &size) |
virtual void | exitSizeEvent () |
virtual void | stretchWidget (QResizeEvent *e) |
TQtCanvasPainter * | CanvasDecorator () |
Protected Attributes | |
TCanvas * | fCanvas |
TQtWidgetBuffer * | fPixmapID |
TQtWidgetBuffer * | fPixmapScreen |
bool | fPaint |
bool | fSizeChanged |
bool | fDoubleBufferOn |
bool | fEmbedded |
QSize | fSizeHint |
QWidget * | fWrapper |
QString | fSaveFormat |
bool | fInsidePaintEvent |
QPoint | fOldMousePos |
int | fIgnoreLeaveEnter |
QTimer * | fRefreshTimer |
Private Types | |
enum | |
Private Member Functions | |
TQtWidget (const TQtWidget &) | |
void | operator= (const TQtWidget &) |
Private Attributes | |
UInt_t | fBits |
bool | fNeedStretch |
QPointer< TQtCanvasPainter > | fCanvasDecorator |
Friends | |
class | TQtSynchPainting |
class | TGQt |
class | TQtFeedBackWidget |
Definition at line 98 of file TQtWidget.h.
anonymous enum [private] |
Definition at line 109 of file TQtWidget.h.
anonymous enum |
Definition at line 121 of file TQtWidget.h.
TQtWidget::TQtWidget | ( | const TQtWidget & | ) | [private] |
TQtWidget::TQtWidget | ( | QWidget * | parent, | |
const char * | name, | |||
Qt::WFlags | f = 0 , |
|||
bool | embedded = TRUE | |||
) |
TQtWidget::TQtWidget | ( | QWidget * | parent = 0 , |
|
Qt::WFlags | f = 0 , |
|||
bool | embedded = TRUE | |||
) |
TQtWidget::~TQtWidget | ( | ) | [virtual] |
Definition at line 244 of file TQtWidget.cxx.
References c, fCanvas, fEmbedded, fPixmapID, fPixmapScreen, gVirtualX, ResetCanvas(), and TGQt::UnRegisterWid().
void TQtWidget::operator= | ( | const TQtWidget & | ) | [private] |
void TQtWidget::Init | ( | ) | [protected] |
Definition at line 205 of file TQtWidget.cxx.
References fCanvas, fEmbedded, fSizeHint, gApplication, gROOT, InitRint(), TROOT::IsBatch(), kTRUE, LONG(), NULL, p, palette, Refresh(), TGQt::RegisterWid(), and TROOT::SetBatch().
Referenced by TQtWidget().
void TQtWidget::ResetCanvas | ( | ) | [inline, protected] |
void TQtWidget::SetCanvas | ( | TCanvas * | c | ) |
TCanvas * TQtWidget::GetCanvas | ( | ) | const [inline] |
Definition at line 265 of file TQtWidget.h.
References fCanvas.
Referenced by Canvas(), EmitTestedSignal(), GetEvent(), GetEventX(), GetEventY(), GetSelected(), GetSelectedPad(), GetSelectedX(), GetSelectedY(), and Save().
TQtWidgetBuffer & TQtWidget::SetBuffer | ( | ) |
Definition at line 959 of file TQtWidget.cxx.
References buf, fPixmapID, fPixmapScreen, and IsDoubleBuffered().
Referenced by AdjustBufferSize(), Erase(), TGQt::GetDoubleBuffer(), paintEvent(), SetDoubleBuffer(), and showEvent().
const TQtWidgetBuffer * TQtWidget::GetBuffer | ( | ) | const [inline] |
Definition at line 268 of file TQtWidget.h.
References fPixmapID, fPixmapScreen, and IsDoubleBuffered().
QPixmap * TQtWidget::GetOffScreenBuffer | ( | ) | const |
Definition at line 973 of file TQtWidget.cxx.
References TQtWidgetBuffer::Buffer(), and fPixmapID.
Referenced by TGQt::CopyPixmap(), paintEvent(), Save(), and stretchWidget().
void TQtWidget::Erase | ( | ) | [virtual] |
Definition at line 394 of file TQtWidget.cxx.
References TQtWidgetBuffer::Clear(), fPixmapID, fPixmapScreen, and SetBuffer().
bool TQtWidget::IsDoubleBuffered | ( | ) | const [inline] |
Definition at line 142 of file TQtWidget.h.
References fDoubleBufferOn.
Referenced by GetBuffer(), TGQt::GetDoubleBuffer(), and SetBuffer().
void TQtWidget::SetDoubleBuffer | ( | bool | on = TRUE |
) |
Definition at line 820 of file TQtWidget.cxx.
References fDoubleBufferOn, and SetBuffer().
Referenced by TGQt::SetDoubleBuffer().
void TQtWidget::SetSaveFormat | ( | const char * | format | ) | [virtual] |
void TQtWidget::SetRootID | ( | QWidget * | wrapper | ) | [inline, protected] |
QWidget * TQtWidget::GetRootID | ( | ) | const [inline, protected] |
virtual void TQtWidget::EmitCanvasPainted | ( | ) | [inline, protected, virtual] |
Definition at line 167 of file TQtWidget.h.
References CanvasPainted().
Referenced by TGQt::CopyPixmap().
TCanvas * TQtWidget::Canvas | ( | ) | [protected] |
Definition at line 285 of file TQtWidget.cxx.
References GetCanvas().
Referenced by Canvas(), contextMenuEvent(), enterEvent(), exitSizeEvent(), keyPressEvent(), leaveEvent(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and RefreshCB().
bool TQtWidget::paintFlag | ( | bool | mode = TRUE |
) | [protected] |
void TQtWidget::AdjustBufferSize | ( | ) | [protected] |
Definition at line 263 of file TQtWidget.cxx.
References buf, fPixmapID, fPixmapScreen, s, SetBuffer(), and size.
Referenced by exitSizeEvent().
bool TQtWidget::PaintingActive | ( | ) | const [inline, protected] |
Definition at line 274 of file TQtWidget.h.
References fPixmapID, fPixmapScreen, and TQtWidgetBuffer::PaintingActive().
void TQtWidget::SetIgnoreLeaveEnter | ( | int | ignore = 1 |
) | [inline, protected] |
Definition at line 318 of file TQtWidget.h.
References fIgnoreLeaveEnter.
Referenced by TQtFeedBackWidget::Hide(), TQtFeedBackWidget::hideEvent(), and TQtFeedBackWidget::Show().
void TQtWidget::enterEvent | ( | QEvent * | ) | [protected, virtual] |
Definition at line 681 of file TQtWidget.cxx.
References c, Canvas(), EmitSignal(), fIgnoreLeaveEnter, fWrapper, kEnterEvent, and kMouseEnter.
void TQtWidget::customEvent | ( | QEvent * | ) | [protected, virtual] |
Definition at line 469 of file TQtWidget.cxx.
References exitSizeEvent(), FALSE, fPaint, fSizeChanged, kENTERSIZEMOVE, kEXITSIZEMOVE, kFORCESIZE, and TRUE.
void TQtWidget::contextMenuEvent | ( | QContextMenuEvent * | ) | [protected, virtual] |
void TQtWidget::focusInEvent | ( | QFocusEvent * | ) | [protected, virtual] |
void TQtWidget::focusOutEvent | ( | QFocusEvent * | ) | [protected, virtual] |
void TQtWidget::leaveEvent | ( | QEvent * | ) | [protected, virtual] |
Definition at line 693 of file TQtWidget.cxx.
References c, Canvas(), EmitSignal(), fIgnoreLeaveEnter, fWrapper, kLeaveEvent, and kMouseLeave.
void TQtWidget::mouseDoubleClickEvent | ( | QMouseEvent * | ) | [protected, virtual] |
Definition at line 635 of file TQtWidget.cxx.
References c, Canvas(), EmitSignal(), fWrapper, kButton1Double, kButton2Double, kButton3Double, kMouseDoubleClickEvent, and kNoEvent.
void TQtWidget::mouseMoveEvent | ( | QMouseEvent * | ) | [protected, virtual] |
Definition at line 582 of file TQtWidget.cxx.
References c, Canvas(), EmitSignal(), fIgnoreLeaveEnter, fOldMousePos, fWrapper, kButton1Motion, kMouseMotion, and kMouseMoveEvent.
void TQtWidget::mousePressEvent | ( | QMouseEvent * | ) | [protected, virtual] |
Definition at line 531 of file TQtWidget.cxx.
References c, Canvas(), EmitSignal(), fOldMousePos, fWrapper, kButton1Down, kButton2Down, kButton3Down, kMousePressEvent, kNoContextMenu, and kNoEvent.
void TQtWidget::mouseReleaseEvent | ( | QMouseEvent * | ) | [protected, virtual] |
Definition at line 605 of file TQtWidget.cxx.
References c, Canvas(), EmitSignal(), fOldMousePos, fWrapper, gPad, kButton1Up, kButton2Up, kButton3Up, kMouseReleaseEvent, and kNoEvent.
void TQtWidget::keyPressEvent | ( | QKeyEvent * | ) | [protected, virtual] |
Definition at line 660 of file TQtWidget.cxx.
References c, Canvas(), EmitSignal(), fWrapper, kKeyPress, and kKeyPressEvent.
void TQtWidget::keyReleaseEvent | ( | QKeyEvent * | ) | [protected, virtual] |
Definition at line 674 of file TQtWidget.cxx.
void TQtWidget::showEvent | ( | QShowEvent * | ) | [protected, virtual] |
Definition at line 865 of file TQtWidget.cxx.
References buf, exitSizeEvent(), fSizeChanged, kTRUE, s, SetBuffer(), and size.
void TQtWidget::paintEvent | ( | QPaintEvent * | ) | [protected, virtual] |
Definition at line 881 of file TQtWidget.cxx.
References buf, exitSizeEvent(), fCanvasDecorator, fEmbedded, fInsidePaintEvent, fNeedStretch, fPaint, fPixmapID, fSizeChanged, GetOffScreenBuffer(), kTRUE, s, SetBuffer(), size, and stretchWidget().
void TQtWidget::resizeEvent | ( | QResizeEvent * | ) | [protected, virtual] |
Definition at line 705 of file TQtWidget.cxx.
References exitSizeEvent(), FALSE, fNeedStretch, fPaint, fSizeChanged, kTRUE, and TRUE.
void TQtWidget::SetSizeHint | ( | const QSize & | size | ) | [protected, virtual] |
QSize TQtWidget::sizeHint | ( | ) | const [virtual] |
Definition at line 926 of file TQtWidget.cxx.
QSize TQtWidget::minimumSizeHint | ( | ) | const [virtual] |
Definition at line 931 of file TQtWidget.cxx.
QSizePolicy TQtWidget::sizePolicy | ( | ) | const [virtual] |
Definition at line 936 of file TQtWidget.cxx.
void TQtWidget::exitSizeEvent | ( | ) | [protected, virtual] |
Definition at line 840 of file TQtWidget.cxx.
References AdjustBufferSize(), c, Canvas(), fSizeChanged, and Refresh().
Referenced by customEvent(), paintEvent(), resizeEvent(), and showEvent().
void TQtWidget::stretchWidget | ( | QResizeEvent * | e | ) | [protected, virtual] |
Definition at line 829 of file TQtWidget.cxx.
References fNeedStretch, fPixmapID, and GetOffScreenBuffer().
Referenced by paintEvent().
TQtCanvasPainter * TQtWidget::CanvasDecorator | ( | ) | [inline, protected] |
Definition at line 949 of file TQtWidget.cxx.
References ResetBit().
Referenced by EnableSignalEvents().
void TQtWidget::SetBit | ( | UInt_t | f | ) | [inline] |
void TQtWidget::ResetBit | ( | UInt_t | f | ) | [inline] |
Definition at line 306 of file TQtWidget.h.
References fBits, and kBitMask.
Referenced by DisableSignalEvents(), and SetBit().
void TQtWidget::InvertBit | ( | UInt_t | f | ) | [inline] |
void TQtWidget::EmitSignal | ( | UInt_t | f | ) | [inline] |
Definition at line 317 of file TQtWidget.h.
References EmitTestedSignal(), and IsSignalEventEnabled().
Referenced by enterEvent(), keyPressEvent(), leaveEvent(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
void TQtWidget::EmitTestedSignal | ( | ) |
Definition at line 941 of file TQtWidget.cxx.
References c, GetCanvas(), GetEvent(), GetSelected(), and RootEventProcessed().
Referenced by EmitSignal().
UInt_t TQtWidget::GetAllBits | ( | ) | const [inline] |
void TQtWidget::SetAllBits | ( | UInt_t | f | ) | [inline] |
void TQtWidget::SetCanvasDecorator | ( | TQtCanvasPainter * | decorator | ) | [inline] |
TApplication * TQtWidget::InitRint | ( | Bool_t | prompt = kFALSE , |
|
const char * | appClassName = "QtRint" , |
|||
int * | argc = 0 , |
|||
char ** | argv = 0 , |
|||
void * | options = 0 , |
|||
int | numOptions = 0 , |
|||
Bool_t | noLogo = kTRUE | |||
) | [static] |
Definition at line 312 of file TQtWidget.cxx.
References TQtTimer::Create(), TSystem::DynamicPathName(), gApplication, gEnv, Getlinem(), TSystem::GetListOfFileHandlers(), TRint::GetPrompt(), TApplication::GetSignalHandler(), TEnv::GetValue(), gSystem, i, TString::kIgnoreCase, kInit, kTRUE, TApplication::NeedGraphicsLibs(), o, TSystem::RemoveSignalHandler(), and TEnv::SetValue().
Referenced by Init().
Int_t TQtWidget::GetEvent | ( | ) | const [inline] |
Definition at line 288 of file TQtWidget.h.
References GetCanvas(), and TCanvas::GetEvent().
Referenced by EmitTestedSignal().
Int_t TQtWidget::GetEventX | ( | ) | const [inline] |
Int_t TQtWidget::GetEventY | ( | ) | const [inline] |
TObject * TQtWidget::GetSelected | ( | ) | const [inline] |
Definition at line 294 of file TQtWidget.h.
References GetCanvas(), and TCanvas::GetSelected().
Referenced by EmitTestedSignal().
Int_t TQtWidget::GetSelectedX | ( | ) | const [inline] |
Int_t TQtWidget::GetSelectedY | ( | ) | const [inline] |
TVirtualPad * TQtWidget::GetSelectedPad | ( | ) | const [inline] |
void TQtWidget::EnableSignalEvents | ( | UInt_t | f | ) | [inline] |
void TQtWidget::DisableSignalEvents | ( | UInt_t | f | ) | [inline] |
Definition at line 299 of file TQtWidget.cxx.
References Canvas(), canvas, and TCanvas::GetCanvasID().
void TQtWidget::cd | ( | ) | [virtual, slot] |
Definition at line 406 of file TQtWidget.cxx.
void TQtWidget::cd | ( | int | subpadnumber | ) | [virtual, slot] |
void TQtWidget::Disconnect | ( | ) | [slot] |
void TQtWidget::Refresh | ( | ) | [slot] |
Definition at line 429 of file TQtWidget.cxx.
References fRefreshTimer, and RefreshCB().
Referenced by exitSizeEvent(), and Init().
bool TQtWidget::Save | ( | const QString & | fileName | ) | const [virtual, slot] |
Definition at line 760 of file TQtWidget.cxx.
References fSaveFormat, and TGQt::QtFileFormat().
Referenced by Save().
bool TQtWidget::Save | ( | const char * | fileName | ) | const [virtual, slot] |
bool TQtWidget::Save | ( | const QString & | fileName, | |
const char * | format, | |||
int | quality = 60 | |||
) | const [virtual, slot] |
Definition at line 786 of file TQtWidget.cxx.
References c, RootCsg::dot(), fCanvasDecorator, GetCanvas(), TGQt::GetNewFileName(), GetOffScreenBuffer(), kTRUE, Ok(), TGQt::QtFileFormat(), and TGQt::RootFileFormat().
bool TQtWidget::Save | ( | const char * | fileName, | |
const char * | format, | |||
int | quality = 60 | |||
) | const [virtual, slot] |
void TQtWidget::RefreshCB | ( | ) | [protected, slot] |
Definition at line 443 of file TQtWidget.cxx.
References c, Canvas(), fInsidePaintEvent, and update().
Referenced by Refresh().
void TQtWidget::CanvasPainted | ( | ) | [signal] |
Referenced by EmitCanvasPainted().
void TQtWidget::Saved | ( | bool | ok | ) | [signal] |
Referenced by EmitTestedSignal().
friend class TQtSynchPainting [friend] |
Definition at line 101 of file TQtWidget.h.
friend class TGQt [friend] |
Definition at line 147 of file TQtWidget.h.
friend class TQtFeedBackWidget [friend] |
Definition at line 148 of file TQtWidget.h.
UInt_t TQtWidget::fBits [private] |
Definition at line 108 of file TQtWidget.h.
Referenced by GetAllBits(), InvertBit(), ResetBit(), SetAllBits(), SetBit(), TestBit(), and TestBits().
bool TQtWidget::fNeedStretch [private] |
Definition at line 112 of file TQtWidget.h.
Referenced by paintEvent(), resizeEvent(), and stretchWidget().
QPointer<TQtCanvasPainter> TQtWidget::fCanvasDecorator [private] |
Definition at line 114 of file TQtWidget.h.
Referenced by CanvasDecorator(), paintEvent(), Save(), and SetCanvasDecorator().
TCanvas* TQtWidget::fCanvas [protected] |
Definition at line 149 of file TQtWidget.h.
Referenced by cd(), Disconnect(), GetCanvas(), Init(), ResetCanvas(), SetCanvas(), and ~TQtWidget().
TQtWidgetBuffer* TQtWidget::fPixmapID [protected] |
Definition at line 150 of file TQtWidget.h.
Referenced by AdjustBufferSize(), Erase(), GetBuffer(), GetOffScreenBuffer(), paintEvent(), PaintingActive(), SetBuffer(), stretchWidget(), and ~TQtWidget().
TQtWidgetBuffer* TQtWidget::fPixmapScreen [protected] |
Definition at line 151 of file TQtWidget.h.
Referenced by AdjustBufferSize(), Erase(), GetBuffer(), PaintingActive(), SetBuffer(), and ~TQtWidget().
bool TQtWidget::fPaint [protected] |
Definition at line 152 of file TQtWidget.h.
Referenced by customEvent(), paintEvent(), paintFlag(), and resizeEvent().
bool TQtWidget::fSizeChanged [protected] |
Definition at line 153 of file TQtWidget.h.
Referenced by customEvent(), exitSizeEvent(), paintEvent(), resizeEvent(), and showEvent().
bool TQtWidget::fDoubleBufferOn [protected] |
Definition at line 154 of file TQtWidget.h.
Referenced by IsDoubleBuffered(), and SetDoubleBuffer().
bool TQtWidget::fEmbedded [protected] |
QSize TQtWidget::fSizeHint [protected] |
QWidget* TQtWidget::fWrapper [protected] |
Definition at line 157 of file TQtWidget.h.
Referenced by enterEvent(), focusInEvent(), focusOutEvent(), GetRootID(), keyPressEvent(), leaveEvent(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and SetRootID().
QString TQtWidget::fSaveFormat [protected] |
bool TQtWidget::fInsidePaintEvent [protected] |
QPoint TQtWidget::fOldMousePos [protected] |
Definition at line 160 of file TQtWidget.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
int TQtWidget::fIgnoreLeaveEnter [protected] |
Definition at line 161 of file TQtWidget.h.
Referenced by enterEvent(), leaveEvent(), mouseMoveEvent(), and SetIgnoreLeaveEnter().
QTimer* TQtWidget::fRefreshTimer [protected] |