aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scxmleditor/common/navigatorslider.h
blob: d8f159a01d8ccd430748a492be1c97e17107eca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include "ui_navigatorslider.h"

#include <QFrame>

namespace ScxmlEditor {

namespace Common {

class NavigatorSlider : public QFrame
{
    Q_OBJECT

public:
    explicit NavigatorSlider(QWidget *parent = nullptr);

    int value() const
    {
        return m_ui.m_slider->value();
    }

    void setSliderValue(int val);
    void zoomIn();
    void zoomOut();

signals:
    void valueChanged(int);

private:
    Ui::NavigatorSlider m_ui;
};

} // namespace Common
} // namespace ScxmlEditor