QtCanpool 3.3.0
载入中...
搜索中...
未找到
qxpluginmanagerdialog_p.h
浏览该文件的文档.
1
5#pragma once
6
7#include "qxapp_global.h"
9
10#include "qxcore/qxsettings.h"
12
13#include <QtCore/QHash>
14#include <QtCore/QList>
15#include <QtCore/QPointer>
16#include <QtCore/QStringList>
17
18QT_BEGIN_NAMESPACE
19class QDialogButtonBox;
20class QLabel;
21class QTreeWidget;
22class QTreeWidgetItem;
23QT_END_NAMESPACE
24
26class QxPluginSpec;
28
30
41{
43public:
45
46 void init();
47
49 void rebuild();
51 void showSpec(QxPlugin::QxPluginSpec *spec);
52
53 QxPlugin::QxPluginSpec *specById(const QString &id) const;
55 bool savedState(QxPlugin::QxPluginSpec *spec) const;
56 bool isModified() const;
57 void updateButtons();
59 void noteSwitch(QTreeWidgetItem *item);
60
61 QPointer<QxPlugin::QxPluginManager> m_manager;
63
64 QTreeWidget *m_tree = Q_NULLPTR;
65 QDialogButtonBox *m_buttons = Q_NULLPTR;
66
67 QLabel *m_id = Q_NULLPTR;
68 QLabel *m_description = Q_NULLPTR;
69 QLabel *m_version = Q_NULLPTR;
70 QLabel *m_vendor = Q_NULLPTR;
71 QLabel *m_file = Q_NULLPTR;
72 QLabel *m_order = Q_NULLPTR;
73 QLabel *m_state = Q_NULLPTR;
74 QLabel *m_dependencies = Q_NULLPTR;
75 QLabel *m_optional = Q_NULLPTR;
76 QLabel *m_dependents = Q_NULLPTR;
77 QLabel *m_error = Q_NULLPTR;
78 QLabel *m_diagnostics = Q_NULLPTR;
79
81 QList<QxPlugin::QxPluginSpec *> m_specs;
83 QHash<QString, bool> m_switch;
85 QStringList m_savedDisabled;
86 QStringList m_savedEnabled;
88 bool m_updating = false;
89};
90
The state behind QxPluginManagerDialog: the list, the switches it shows and the two lists the setting...
QHash< QString, bool > m_switch
The switch of every displayed plugin, by id.
QList< QxPlugin::QxPluginSpec * > m_specs
The specs as the list shows them, row for row.
QPointer< QxPlugin::QxPluginManager > m_manager
QPointer< QxCore ::QxSettings > m_settings
QStringList m_savedDisabled
What the settings held when the dialog was loaded.
Lists the plugins the manager found and lets their switches be set.
Thin wrapper around QSettings that keeps call sites free of the usual boilerplate: typed accessors wi...
Definition qxsettings.h:32
A read-only view of one plugin's metadata, plus the runtime state the manager attaches to it.
#define QX_APP_END_NAMESPACE
#define QX_DECLARE_PUBLIC(Class)
#define Q_NULLPTR
Copyleft (C) 2025 maminjie canpool@163.com SPDX-License-Identifier: MulanPSL-2.0
#define QX_APP_BEGIN_NAMESPACE
#define QX_CORE_PREPEND_NAMESPACE(name)
#define QX_PLUGIN_BEGIN_NAMESPACE
#define QX_PLUGIN_END_NAMESPACE