aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/modelinglib/qmt/diagram_scene/capabilities/selectable.h
blob: bf6550f14faf25a93e254fa4419863fe0435583f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <QRectF>

namespace qmt {

class ISelectable
{
public:
    virtual ~ISelectable() { }

    virtual bool isSecondarySelected() const = 0;
    virtual void setSecondarySelected(bool secondarySelected) = 0;
    virtual bool isFocusSelected() const = 0;
    virtual void setFocusSelected(bool focusSelected) = 0;
    virtual QRectF getSecondarySelectionBoundary() = 0;
    virtual void setBoundarySelected(const QRectF &boundary, bool secondary) = 0;
};

} // namespace qmt