|
Krita Source Code Documentation
|
#include <kis_selection_actions_panel.h>
Inheritance diagram for KisSelectionActionsPanel:Classes | |
| struct | Private |
Public Member Functions | |
| void | draw (QPainter &painter) |
| bool | eventFilter (QObject *obj, QEvent *event) override |
| KisSelectionActionsPanel ()=delete | |
| KisSelectionActionsPanel (KisViewManager *viewManager, QWidget *parent) | |
| void | setEnabled (bool enabled) |
| void | setVisible (bool visible) |
| ~KisSelectionActionsPanel () | |
Private Member Functions | |
| QPushButton * | createButton (const QString &iconName, const QString &tooltip) |
| void | drawActionBarBackground (QPainter &gc) const |
| bool | handleMove (QEvent *event, const QPoint &pos, QObject *obj) |
| bool | handlePress (QEvent *event, const QPoint &pos, Qt::MouseButton button=Qt::LeftButton) |
| bool | handleRelease (QEvent *event, const QPoint &pos, QObject *obj) |
| QPoint | initialDragHandlePosition () const |
| void | setupButtons () |
| QPoint | updateCanvasBoundaries (QPoint position, QWidget *canvasWidget) const |
Static Private Member Functions | |
| static QPoint | mouseEventPos (const QMouseEvent *mouseEvent) |
| static QPoint | tabletEventPos (const QTabletEvent *tabletEvent) |
| static bool | touchEventPos (const QTouchEvent *touchEvent, QPoint &outPos) |
Private Attributes | |
| QScopedPointer< Private > | d |
Definition at line 30 of file kis_selection_actions_panel.h.
|
delete |
| KisSelectionActionsPanel::KisSelectionActionsPanel | ( | KisViewManager * | viewManager, |
| QWidget * | parent ) |
Definition at line 85 of file kis_selection_actions_panel.cpp.
References button(), KisSelectionActionsPanel::Private::buttonData(), KisViewManager::canvas(), createButton(), d, and KisViewManager::selectionManager().
| KisSelectionActionsPanel::~KisSelectionActionsPanel | ( | ) |
Definition at line 103 of file kis_selection_actions_panel.cpp.
|
private |
Definition at line 288 of file kis_selection_actions_panel.cpp.
References button(), BUTTON_SIZE, and KisIconUtils::loadIcon().
| void KisSelectionActionsPanel::draw | ( | QPainter & | painter | ) |
Definition at line 107 of file kis_selection_actions_panel.cpp.
References button(), BUTTON_SIZE, d, and drawActionBarBackground().
|
private |
Definition at line 297 of file kis_selection_actions_panel.cpp.
References BUTTON_SIZE, and d.
|
override |
Definition at line 170 of file kis_selection_actions_panel.cpp.
References d, handleMove(), handlePress(), mouseEventPos(), tabletEventPos(), and touchEventPos().
|
private |
Definition at line 369 of file kis_selection_actions_panel.cpp.
References d, and updateCanvasBoundaries().
|
private |
Definition at line 344 of file kis_selection_actions_panel.cpp.
References button(), BUTTON_SIZE, and d.
|
private |
|
private |
Definition at line 268 of file kis_selection_actions_panel.cpp.
References BUFFER_SPACE, KisCanvasWidgetBase::coordinatesConverter(), d, KisCoordinatesConverter::imageToWidget(), KIS_ASSERT, KisSelection::selectedRect(), and updateCanvasBoundaries().
|
staticprivate |
Definition at line 394 of file kis_selection_actions_panel.cpp.
| void KisSelectionActionsPanel::setEnabled | ( | bool | enabled | ) |
Definition at line 160 of file kis_selection_actions_panel.cpp.
References d, and setVisible().
|
private |
| void KisSelectionActionsPanel::setVisible | ( | bool | visible | ) |
Definition at line 125 of file kis_selection_actions_panel.cpp.
References button(), d, and initialDragHandlePosition().
|
staticprivate |
Definition at line 403 of file kis_selection_actions_panel.cpp.
|
staticprivate |
Definition at line 412 of file kis_selection_actions_panel.cpp.
|
private |
Definition at line 238 of file kis_selection_actions_panel.cpp.
References BUFFER_SPACE, BUTTON_SIZE, and d.
|
private |
Definition at line 61 of file kis_selection_actions_panel.h.