KUtils
dialog.cpp
Go to the documentation of this file.
178 const QList<KService::Ptr> services = KServiceTypeTrader::self()->query("KCModule", constraint);
186 bool 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());
440 void 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());
QString i18n(const char *text)
QList< KPluginInfo > pluginInfos() const
Returns a list of all KPluginInfo objects the dialog uses.
Definition: dialog.cpp:113
QHash< QString, KPageWidgetItem * > pageItemForGroupId
Definition: dialog_p.h:51
void _k_reparseConfiguration(const QByteArray &a)
Definition: dialog.cpp:473
QVariant property(const QString &key) const
void setChecked(bool checked)
static KServiceTypeTrader * self()
bool isPluginEnabled() const
KService::Ptr service() const
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
QVariant property(const QString &_name, QVariant::Type t) const
bool isValid() const
KStandardDirs * dirs()
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void setEnabled(bool)
void syncConfiguration()
When this function is called the KConfig objects of all the registered instances are sync()ed...
Definition: dispatcher.cpp:97
void setIcon(const KIcon &icon)
Dialog(QWidget *parent=0)
Construct a new Preferences Dialog for the application.
Definition: dialog.cpp:46
void load(const KConfigGroup &config=KConfigGroup())
KIcon icon
void setPluginEnabled(bool enabled)
QList< KService::Ptr > kcmServices() const
void connectItemCheckBox(KPageWidgetItem *item, const KPluginInfo &pinfo, bool isEnabled)
Definition: dialog.cpp:440
bool isChecked() const
QString componentName() const
QString name() const
void reparseConfiguration(const QString &componentName)
Call this function when the configuration belonging to the associated componentData name has changed...
Definition: dispatcher.cpp:81
KPageWidgetItem * item(const QModelIndex &index) const
void setComponentBlacklist(const QStringList &blacklist)
Set the blacklisted component list.
Definition: dialog.cpp:78
void save(KConfigGroup config=KConfigGroup())
Definition: dialog_p.h:44
KService::List query(const QString &servicetype, const QString &constraint=QString()) const
static Ptr childGroup(const QString &parent)
bool allowComponentSelection() const
Definition: dialog.cpp:67
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
const KComponentData & mainComponent()
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QHash< KPageWidgetItem *, QCheckBox * > checkBoxForItem
Definition: dialog_p.h:53
QHash< KPageWidgetItem *, KPluginInfo > pluginForItem
Definition: dialog_p.h:52
virtual void _k_clientChanged()
Definition: kcmultidialog.cpp:108
A class that offers a KPageDialog containing arbitrary KControl Modules.
Definition: kcmultidialog.h:37
QStringList findAllResources(const char *type, const QString &filter=QString(), SearchOptions options=NoSearchOptions) const
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
KPageWidgetItem * createPageItem(KPageWidgetItem *parentItem, const QString &name, const QString &comment, const QString &iconName, int weight)
Definition: dialog.cpp:225
void showEvent(QShowEvent *)
Reimplemented to lazy create the dialog on first show.
Definition: dialog.cpp:118
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
const KShortcut & end()
void setCheckable(bool checkable)
Generic configuration dialog that works over component boundaries.
Definition: dialog.h:73
void _k_updateEnabledState(bool)
Definition: dialog.cpp:499
QString pluginName() const
QStringList list(const QString &fileClass)
QStringList registeredComponents
Definition: dialog_p.h:56
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.