|
Krita Source Code Documentation
|
Public Types | |
| typedef QPair< Qt::Orientation, int > | GuideHandle |
Public Member Functions | |
| QPointF | alignToPixels (const QPointF docPoint) |
| QAction * | createShortenedAction (const QString &text, const QString &parentId, QObject *parent) |
| void | createUndoCommandIfNeeded () |
| void | deleteGuide (const GuideHandle &h) |
| GuideHandle | findGuide (const QPointF &docPos) |
| Qt::MouseButton | getButtonFromEvent (QEvent *event) |
| QPointF | getDocPointFromEvent (QEvent *event) |
| qreal | guideValue (const GuideHandle &h) |
| void | initDragStart (const GuideHandle &guide, const QPointF &dragStart, qreal guideValue, bool snapToStart) |
| bool | isGuideValid (const GuideHandle &h) |
| bool | mouseMoveHandler (const QPointF &docPos, Qt::KeyboardModifiers modifiers) |
| bool | mouseReleaseHandler (const QPointF &docPos) |
| bool | needsUndoCommand () |
| Private (KisGuidesManager *_q) | |
| void | setGuideValue (const GuideHandle &h, qreal value) |
| void | syncAction (const QString &actionName, bool value) |
| bool | updateCursor (const QPointF &docPos, bool forceDisableCursor=false) |
| void | updateSnappingStatus (const KisGuidesConfig &value) |
Public Attributes | |
| GuideHandle | currentGuide |
| bool | cursorSwitched |
| KisGuidesDecoration * | decoration |
| QPointF | dragPointerOffset |
| QPointF | dragStartDoc |
| qreal | dragStartGuidePos |
| KisGuidesConfig | guidesConfig |
| const GuideHandle | invalidGuide |
| QCursor | oldCursor |
| KisGuidesConfig | oldGuidesConfig |
| KisGuidesManager * | q |
| bool | shouldSetModified |
| KisSnapConfig | snapConfig |
| QPointer< KisView > | view |
| KisSignalAutoConnectionsStore | viewConnections |
Definition at line 32 of file kis_guides_manager.cpp.
| typedef QPair<Qt::Orientation, int> KisGuidesManager::Private::GuideHandle |
Definition at line 51 of file kis_guides_manager.cpp.
|
inline |
Definition at line 34 of file kis_guides_manager.cpp.
| QPointF KisGuidesManager::Private::alignToPixels | ( | const QPointF | docPoint | ) |
Definition at line 519 of file kis_guides_manager.cpp.
References KisCanvas2::coordinatesConverter, KisCoordinatesConverter::documentToImage(), and KisCoordinatesConverter::imageToDocument().
| QAction * KisGuidesManager::Private::createShortenedAction | ( | const QString & | text, |
| const QString & | parentId, | ||
| QObject * | parent ) |
Definition at line 755 of file kis_guides_manager.cpp.
References KisActionManager::actionByName(), KisViewManager::actionManager(), connect(), and KisActionManager::viewManager.
| void KisGuidesManager::Private::createUndoCommandIfNeeded | ( | ) |
Definition at line 190 of file kis_guides_manager.cpp.
| void KisGuidesManager::Private::deleteGuide | ( | const GuideHandle & | h | ) |
Definition at line 457 of file kis_guides_manager.cpp.
| KisGuidesManager::Private::GuideHandle KisGuidesManager::Private::findGuide | ( | const QPointF & | docPos | ) |
Definition at line 399 of file kis_guides_manager.cpp.
References KoViewConverter::documentToView().
| Qt::MouseButton KisGuidesManager::Private::getButtonFromEvent | ( | QEvent * | event | ) |
Definition at line 629 of file kis_guides_manager.cpp.
References button().
| QPointF KisGuidesManager::Private::getDocPointFromEvent | ( | QEvent * | event | ) |
Definition at line 597 of file kis_guides_manager.cpp.
References KisCanvas2::coordinatesConverter, KIS_SAFE_ASSERT_RECOVER_NOOP, and KisCoordinatesConverter::widgetToDocument().
| qreal KisGuidesManager::Private::guideValue | ( | const GuideHandle & | h | ) |
Definition at line 437 of file kis_guides_manager.cpp.
| void KisGuidesManager::Private::initDragStart | ( | const GuideHandle & | guide, |
| const QPointF & | dragStart, | ||
| qreal | guideValue, | ||
| bool | snapToStart ) |
Definition at line 496 of file kis_guides_manager.cpp.
References KoSnapGuide::addCustomSnapStrategy(), KisSnapLineStrategy::addLine(), and KoSnapGuide::reset().
| bool KisGuidesManager::Private::isGuideValid | ( | const GuideHandle & | h | ) |
Definition at line 432 of file kis_guides_manager.cpp.
| bool KisGuidesManager::Private::mouseMoveHandler | ( | const QPointF & | docPos, |
| Qt::KeyboardModifiers | modifiers ) |
Definition at line 527 of file kis_guides_manager.cpp.
References KisCoordinatesConverter::documentToImage(), KisFloatingMessage::High, and KoSnapGuide::snap().
| bool KisGuidesManager::Private::mouseReleaseHandler | ( | const QPointF & | docPos | ) |
When we delete a guide, it might happen that we are deleting the last guide. Therefore we should eat the corresponding event so that the event filter would stop the filter processing.
Definition at line 556 of file kis_guides_manager.cpp.
References KisAlgebra2D::blowRect(), KisCanvas2::coordinatesConverter, KisCoordinatesConverter::imageRectInDocumentPixels(), and KoSnapGuide::reset().
| bool KisGuidesManager::Private::needsUndoCommand | ( | ) |
Definition at line 185 of file kis_guides_manager.cpp.
| void KisGuidesManager::Private::setGuideValue | ( | const GuideHandle & | h, |
| qreal | value ) |
Definition at line 444 of file kis_guides_manager.cpp.
References value().
| void KisGuidesManager::Private::syncAction | ( | const QString & | actionName, |
| bool | value ) |
Definition at line 176 of file kis_guides_manager.cpp.
References KisActionManager::actionByName(), KIS_ASSERT_RECOVER_RETURN, value(), and view.
| bool KisGuidesManager::Private::updateCursor | ( | const QPointF & | docPos, |
| bool | forceDisableCursor = false ) |
Definition at line 470 of file kis_guides_manager.cpp.
References KisCanvas2::canvasWidget.
| void KisGuidesManager::Private::updateSnappingStatus | ( | const KisGuidesConfig & | value | ) |
Definition at line 217 of file kis_guides_manager.cpp.
References KoSnapGuide::BoundingBoxSnapping, KoSnapGuide::DocumentBoundsSnapping, KoSnapGuide::DocumentCenterSnapping, KoSnapGuide::enableSnapStrategy(), KoSnapGuide::ExtensionSnapping, KoSnapGuide::GuideLineSnapping, KoSnapGuide::IntersectionSnapping, KoSnapGuide::NodeSnapping, KoSnapGuide::OrthogonalSnapping, KoSnapGuide::overrideSnapStrategy(), KoSnapGuide::PixelSnapping, KisSnapLineStrategy::setHorizontalLines(), KisSnapLineStrategy::setVerticalLines(), and value().
| GuideHandle KisGuidesManager::Private::currentGuide |
Definition at line 78 of file kis_guides_manager.cpp.
| bool KisGuidesManager::Private::cursorSwitched |
Definition at line 80 of file kis_guides_manager.cpp.
| KisGuidesDecoration* KisGuidesManager::Private::decoration |
Definition at line 45 of file kis_guides_manager.cpp.
| QPointF KisGuidesManager::Private::dragPointerOffset |
Definition at line 84 of file kis_guides_manager.cpp.
| QPointF KisGuidesManager::Private::dragStartDoc |
Definition at line 83 of file kis_guides_manager.cpp.
| qreal KisGuidesManager::Private::dragStartGuidePos |
Definition at line 85 of file kis_guides_manager.cpp.
| KisGuidesConfig KisGuidesManager::Private::guidesConfig |
Definition at line 46 of file kis_guides_manager.cpp.
| const GuideHandle KisGuidesManager::Private::invalidGuide |
Definition at line 58 of file kis_guides_manager.cpp.
| QCursor KisGuidesManager::Private::oldCursor |
Definition at line 81 of file kis_guides_manager.cpp.
| KisGuidesConfig KisGuidesManager::Private::oldGuidesConfig |
Definition at line 47 of file kis_guides_manager.cpp.
| KisGuidesManager* KisGuidesManager::Private::q |
Definition at line 43 of file kis_guides_manager.cpp.
| bool KisGuidesManager::Private::shouldSetModified |
Definition at line 89 of file kis_guides_manager.cpp.
| KisSnapConfig KisGuidesManager::Private::snapConfig |
Definition at line 48 of file kis_guides_manager.cpp.
Definition at line 49 of file kis_guides_manager.cpp.
| KisSignalAutoConnectionsStore KisGuidesManager::Private::viewConnections |
Definition at line 87 of file kis_guides_manager.cpp.