Kross
Go to the documentation of this file.
20 #ifndef KROSS_ACTIONCOLLECTION_H
21 #define KROSS_ACTIONCOLLECTION_H
26 #include <QtCore/QObject>
27 #include <QtCore/QDir>
81 void setText(
const QString& text);
86 QString description()
const;
91 void setDescription(
const QString& description);
96 QString iconName()
const;
101 void setIconName(
const QString& iconname);
111 bool isEnabled()
const;
116 void setEnabled(
bool enabled);
130 bool hasCollection(
const QString&
name)
const;
142 QStringList collections()
const;
150 void addAction(
Action* action);
151 void addAction(
const QString&
name,
Action* action);
152 void removeAction(
const QString&
name);
153 void removeAction(
Action* action);
165 bool readXml(
const QDomElement& element,
const QDir& directory = QDir());
166 bool readXml(
const QDomElement& element,
const QStringList& searchPath);
171 bool readXml(
QIODevice* device,
const QDir& directory = QDir());
172 bool readXml(
QIODevice* device,
const QStringList& searchPath);
180 bool readXmlFile(
const QString& file);
186 QDomElement writeXml();
187 QDomElement writeXml(
const QStringList& searchPath);
195 bool writeXml(
QIODevice* device,
int indent,
const QStringList& searchPath);
207 void dataChanged(
Action*);
231 void unregisterCollection(
const QString&
name);
233 void connectSignals(
Action* collection,
bool conn);
The Action class is an abstract container to deal with scripts like a single standalone script file.
const char * name(StandardAction id)
QString indent(QString text, int spaces)
The ActionCollection class manages collections of Action instances.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jan 30 2020 00:00:00 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.