KUtils
dialog.cpp
Go to the documentation of this file.
178 const QList<KService::Ptr> services = KServiceTypeTrader::self()->query("KCModule", constraint);
186bool DialogPrivate::isPluginForKCMEnabled(const KCModuleInfo *moduleinfo, KPluginInfo &pinfo) const
249 const KPageWidgetModel *model = qobject_cast<const KPageWidgetModel *>(q->pageWidget()->model());
300 KPageWidgetItem *item = createPageItem(parentItem, conf.readEntry("Name"), conf.readEntry("Comment"),
325 const QStringList parentComponents = info.service()->property("X-KDE-ParentComponents").toStringList();
336 const QString parentId = info.service()->property("X-KDE-CfgDlgHierarchy", QVariant::String).toString();
347 KPageWidgetItem *item = createPageItem(0, service->name(), service->comment(), service->icon(), weight);
394 const KPageWidgetModel *model = qobject_cast<const KPageWidgetModel *>(q->pageWidget()->model());
440void DialogPrivate::connectItemCheckBox(KPageWidgetItem *item, const KPluginInfo &pinfo, bool isEnabled)
508 // iterate over all child KPageWidgetItem objects and check whether they need to be enabled/disabled
509 const KPageWidgetModel *model = qobject_cast<const KPageWidgetModel *>(q->pageWidget()->model());
virtual void _k_clientChanged()
Definition: kcmultidialog.cpp:108
A class that offers a KPageDialog containing arbitrary KControl Modules.
Definition: kcmultidialog.h:38
QString componentName() const
SimpleConfig
Apply
KIcon icon
void setChecked(bool checked)
bool isChecked() const
void setEnabled(bool)
void setIcon(const KIcon &icon)
void setCheckable(bool checkable)
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
KPageWidgetItem * item(const QModelIndex &index) const
QModelIndex index(const KPageWidgetItem *item) const
void save(KConfigGroup config=KConfigGroup())
bool isValid() const
QString pluginName() const
QVariant property(const QString &key) const
QList< KService::Ptr > kcmServices() const
KService::Ptr service() const
QString name() const
bool isPluginEnabled() const
void load(const KConfigGroup &config=KConfigGroup())
void setPluginEnabled(bool enabled)
static Ptr childGroup(const QString &parent)
static KServiceTypeTrader * self()
KService::List query(const QString &servicetype, const QString &constraint=QString()) const
Definition: dialog_p.h:45
QStringList registeredComponents
Definition: dialog_p.h:56
void _k_updateEnabledState(bool)
Definition: dialog.cpp:499
void connectItemCheckBox(KPageWidgetItem *item, const KPluginInfo &pinfo, bool isEnabled)
Definition: dialog.cpp:440
KPageWidgetItem * createPageItem(KPageWidgetItem *parentItem, const QString &name, const QString &comment, const QString &iconName, int weight)
Definition: dialog.cpp:225
QHash< KPageWidgetItem *, QCheckBox * > checkBoxForItem
Definition: dialog_p.h:53
void _k_reparseConfiguration(const QByteArray &a)
Definition: dialog.cpp:473
QHash< QString, KPageWidgetItem * > pageItemForGroupId
Definition: dialog_p.h:51
QHash< KPageWidgetItem *, KPluginInfo > pluginForItem
Definition: dialog_p.h:52
Generic configuration dialog that works over component boundaries.
Definition: dialog.h:74
void setAllowComponentSelection(bool allowSelection)
Tells the dialog whether the entries in the listview are all static or whether it should add checkbox...
Definition: dialog.cpp:62
void setComponentBlacklist(const QStringList &blacklist)
Set the blacklisted component list.
Definition: dialog.cpp:78
QList< KPluginInfo > pluginInfos() const
Returns a list of all KPluginInfo objects the dialog uses.
Definition: dialog.cpp:113
Dialog(QWidget *parent=0)
Construct a new Preferences Dialog for the application.
Definition: dialog.cpp:46
bool allowComponentSelection() const
Definition: dialog.cpp:67
void addPluginInfos(const QList< KPluginInfo > &plugininfos)
If you use a Configurable dialog you need to pass KPluginInfo objects that the dialog should configur...
Definition: dialog.cpp:84
void setKCMArguments(const QStringList &arguments)
Sets the argument list that is given to all the KControlModule's when they are created.
Definition: dialog.cpp:72
void showEvent(QShowEvent *)
Reimplemented to lazy create the dialog on first show.
Definition: dialog.cpp:118
QStringList findAllResources(const char *type, const QString &filter, SearchOptions options, QStringList &relPaths) const
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
#define kDebug
#define kWarning
QString i18n(const char *text)
const KComponentData & mainComponent()
KStandardDirs * dirs()
group
QStringList list(const QString &fileClass)
void syncConfiguration()
When this function is called the KConfig objects of all the registered instances are sync()ed.
Definition: dispatcher.cpp:97
void reparseConfiguration(const QString &componentName)
Call this function when the configuration belonging to the associated componentData name has changed.
Definition: dispatcher.cpp:81
A collection of classes to create configuration dialogs that work over component boundaries.
Definition: componentsdialog.cpp:34
const char * name(StandardAction id)
const KShortcut & end()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.