DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
navigation.h
1// SPDX-FileCopyrightText: 2016 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#pragma once
6
7#include <QScopedPointer>
8#include <QFrame>
9
10#include <dtkwidget_global.h>
11
12DCORE_BEGIN_NAMESPACE
13class DSettings;
14DCORE_END_NAMESPACE
15
16DWIDGET_BEGIN_NAMESPACE
17
18class NavigationPrivate;
19class LIBDTKWIDGETSHARED_EXPORT Navigation : public QFrame
20{
21 Q_OBJECT
22public:
23 explicit Navigation(QWidget *parent = 0);
25
26 bool groupIsVisible(const QString &key) const;
27 void setGroupVisible(const QString &key, bool visible);
28
29Q_SIGNALS:
30 void selectedGroup(const QString &key);
31
32public Q_SLOTS:
33 void onSelectGroup(const QString &key);
34 void updateSettings(const QByteArray &translateContext, QPointer<DTK_CORE_NAMESPACE::DSettings> settings);
35
36private:
37 QScopedPointer<NavigationPrivate> d_ptr;
38 Q_DECLARE_PRIVATE_D(qGetPtrHelper(d_ptr), Navigation)
39};
40
41DWIDGET_END_NAMESPACE
Definition navigation.h:20