Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
QCanvasWidget Class Reference

Qt widget which display canvas and provides menu, toolbar and status bar Actual graphics shown in the QPaintWidget.

Definition at line 24 of file QCanvasWidget.h.

Public Slots

void CanvasStatusEventSlot (const QString &)
 Status event handler.
 
void CloseCanvas ()
 Close the canvas.
 
void IconifyCanvas ()
 Iconify canvas widget.
 
void NewCanvas ()
 Create new canvas.
 
void OpenRootFile ()
 Open ROOT file dialog.
 
void PrintCanvas ()
 Print the canvas.
 
void QuitRoot ()
 Quit ROOT.
 
void SaveCanvasAs ()
 Save canvas as.
 
void SetViewEventStatus (bool)
 Set visibility of event status.
 
void SetViewToolbar (bool)
 Set visibility of tool bar.
 
void SetViewToolTip (bool)
 Set visibility of tooltip.
 
void ShowColors ()
 Show new canvas with ROOT colors wheel.
 
void ShowMarkers ()
 Show new canvas with ROOT markers.
 

Public Member Functions

 QCanvasWidget (QWidget *parent=nullptr, const char *name=nullptr)
 constructor
 
virtual ~QCanvasWidget ()
 Destructor.
 
void ApplyCanvasStatusBits ()
 Apply canvas status bits like show tooltip or menu bar.
 
QPaintWidgetGetPaintWidget () const
 
void SaveCanvas (const QString &fname)
 Save canvas as file.
 

Protected Member Functions

void FillSaveMenu (QMenu *menu)
 Fill save menu with predefined items.
 
std::vector< std::string > GetSupportedFileFormats ()
 Return vector with supported file formats with description and required option.
 

Private Attributes

QString fLastFileDir
 
QActionfViewEventStatus = nullptr
 
QActionfViewToolbar = nullptr
 
QActionfViewToolTip = nullptr
 

#include </github/home/ROOT-CI/src/gui/qt6canvas/src/QCanvasWidget.h>

Inheritance diagram for QCanvasWidget:
[legend]

Constructor & Destructor Documentation

◆ QCanvasWidget()

QCanvasWidget::QCanvasWidget ( QWidget * parent = nullptr,
const char * name = nullptr )

constructor

Definition at line 87 of file QCanvasWidget.cpp.

◆ ~QCanvasWidget()

QCanvasWidget::~QCanvasWidget ( )
virtual

Destructor.

Definition at line 269 of file QCanvasWidget.cpp.

Member Function Documentation

◆ ApplyCanvasStatusBits()

void QCanvasWidget::ApplyCanvasStatusBits ( )

Apply canvas status bits like show tooltip or menu bar.

Definition at line 530 of file QCanvasWidget.cpp.

◆ CanvasStatusEventSlot

void QCanvasWidget::CanvasStatusEventSlot ( const QString & msg)
slot

Status event handler.

Definition at line 479 of file QCanvasWidget.cpp.

◆ CloseCanvas

void QCanvasWidget::CloseCanvas ( )
slot

Close the canvas.

Definition at line 306 of file QCanvasWidget.cpp.

◆ FillSaveMenu()

void QCanvasWidget::FillSaveMenu ( QMenu * menu)
protected

Fill save menu with predefined items.

Definition at line 339 of file QCanvasWidget.cpp.

◆ GetPaintWidget()

QPaintWidget * QCanvasWidget::GetPaintWidget ( ) const
inline

Definition at line 44 of file QCanvasWidget.h.

◆ GetSupportedFileFormats()

std::vector< std::string > QCanvasWidget::GetSupportedFileFormats ( )
protected

Return vector with supported file formats with description and required option.

Definition at line 314 of file QCanvasWidget.cpp.

◆ IconifyCanvas

void QCanvasWidget::IconifyCanvas ( )
slot

Iconify canvas widget.

Definition at line 522 of file QCanvasWidget.cpp.

◆ NewCanvas

void QCanvasWidget::NewCanvas ( )
slot

Create new canvas.

Definition at line 276 of file QCanvasWidget.cpp.

◆ OpenRootFile

void QCanvasWidget::OpenRootFile ( )
slot

Open ROOT file dialog.

Definition at line 284 of file QCanvasWidget.cpp.

◆ PrintCanvas

void QCanvasWidget::PrintCanvas ( )
slot

Print the canvas.

Definition at line 441 of file QCanvasWidget.cpp.

◆ QuitRoot

void QCanvasWidget::QuitRoot ( )
slot

Quit ROOT.

Definition at line 449 of file QCanvasWidget.cpp.

◆ SaveCanvas()

void QCanvasWidget::SaveCanvas ( const QString & fname)

Save canvas as file.

Definition at line 363 of file QCanvasWidget.cpp.

◆ SaveCanvasAs

void QCanvasWidget::SaveCanvasAs ( )
slot

Save canvas as.

Definition at line 373 of file QCanvasWidget.cpp.

◆ SetViewEventStatus

void QCanvasWidget::SetViewEventStatus ( bool on)
slot

Set visibility of event status.

Definition at line 470 of file QCanvasWidget.cpp.

◆ SetViewToolbar

void QCanvasWidget::SetViewToolbar ( bool on)
slot

Set visibility of tool bar.

Definition at line 461 of file QCanvasWidget.cpp.

◆ SetViewToolTip

void QCanvasWidget::SetViewToolTip ( bool on)
slot

Set visibility of tooltip.

Definition at line 488 of file QCanvasWidget.cpp.

◆ ShowColors

void QCanvasWidget::ShowColors ( )
slot

Show new canvas with ROOT colors wheel.

Definition at line 498 of file QCanvasWidget.cpp.

◆ ShowMarkers

void QCanvasWidget::ShowMarkers ( )
slot

Show new canvas with ROOT markers.

Definition at line 510 of file QCanvasWidget.cpp.

Member Data Documentation

◆ fLastFileDir

QString QCanvasWidget::fLastFileDir
private

Definition at line 31 of file QCanvasWidget.h.

◆ fViewEventStatus

QAction* QCanvasWidget::fViewEventStatus = nullptr
private

Definition at line 28 of file QCanvasWidget.h.

◆ fViewToolbar

QAction* QCanvasWidget::fViewToolbar = nullptr
private

Definition at line 27 of file QCanvasWidget.h.

◆ fViewToolTip

QAction* QCanvasWidget::fViewToolTip = nullptr
private

Definition at line 29 of file QCanvasWidget.h.

  • gui/qt6canvas/src/QCanvasWidget.h
  • gui/qt6canvas/src/QCanvasWidget.cpp