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. | |
| QPaintWidget * | GetPaintWidget () 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 |
| QAction * | fViewEventStatus = nullptr |
| QAction * | fViewToolbar = nullptr |
| QAction * | fViewToolTip = nullptr |
#include </github/home/ROOT-CI/src/gui/qt6canvas/src/QCanvasWidget.h>
constructor
Definition at line 87 of file QCanvasWidget.cpp.
|
virtual |
Destructor.
Definition at line 269 of file QCanvasWidget.cpp.
| void QCanvasWidget::ApplyCanvasStatusBits | ( | ) |
Apply canvas status bits like show tooltip or menu bar.
Definition at line 530 of file QCanvasWidget.cpp.
|
slot |
Status event handler.
Definition at line 479 of file QCanvasWidget.cpp.
|
slot |
Close the canvas.
Definition at line 306 of file QCanvasWidget.cpp.
|
protected |
Fill save menu with predefined items.
Definition at line 339 of file QCanvasWidget.cpp.
|
inline |
Definition at line 44 of file QCanvasWidget.h.
|
protected |
Return vector with supported file formats with description and required option.
Definition at line 314 of file QCanvasWidget.cpp.
|
slot |
Iconify canvas widget.
Definition at line 522 of file QCanvasWidget.cpp.
|
slot |
Create new canvas.
Definition at line 276 of file QCanvasWidget.cpp.
|
slot |
Open ROOT file dialog.
Definition at line 284 of file QCanvasWidget.cpp.
|
slot |
Print the canvas.
Definition at line 441 of file QCanvasWidget.cpp.
|
slot |
Quit ROOT.
Definition at line 449 of file QCanvasWidget.cpp.
| void QCanvasWidget::SaveCanvas | ( | const QString & | fname | ) |
Save canvas as file.
Definition at line 363 of file QCanvasWidget.cpp.
|
slot |
Save canvas as.
Definition at line 373 of file QCanvasWidget.cpp.
|
slot |
Set visibility of event status.
Definition at line 470 of file QCanvasWidget.cpp.
|
slot |
Set visibility of tool bar.
Definition at line 461 of file QCanvasWidget.cpp.
|
slot |
Set visibility of tooltip.
Definition at line 488 of file QCanvasWidget.cpp.
|
slot |
Show new canvas with ROOT colors wheel.
Definition at line 498 of file QCanvasWidget.cpp.
|
slot |
Show new canvas with ROOT markers.
Definition at line 510 of file QCanvasWidget.cpp.
|
private |
Definition at line 31 of file QCanvasWidget.h.
|
private |
Definition at line 28 of file QCanvasWidget.h.
|
private |
Definition at line 27 of file QCanvasWidget.h.
|
private |
Definition at line 29 of file QCanvasWidget.h.