#include <view.h>
The ActionCollectionEditor class implements a general editor for Action and ActionCollection instances.
Example that shows how to display the editor with an Action ;
d.exec();
The ActionCollectionEditor class implements a general editor for Action and ActionCollection instance...
The Action class is an abstract container to deal with scripts like a single standalone script file.
Example that shows how to display the editor with an ActionCollection ;
d.exec();
The ActionCollection class manages collections of Action instances.
Definition at line 65 of file view.h.
◆ ActionCollectionEditor() [1/2]
ActionCollectionEditor::ActionCollectionEditor |
( |
Action * |
action, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
action | The Action instance this editor should operate on. |
parent | The optional parent widget this widget is child of. |
Definition at line 105 of file view.cpp.
◆ ActionCollectionEditor() [2/2]
Constructor.
- Parameters
-
collection | The ActionCollection instance this editor should operate on. |
parent | The optional parent widget this widget is child of. |
Definition at line 111 of file view.cpp.
◆ ~ActionCollectionEditor()
ActionCollectionEditor::~ActionCollectionEditor |
( |
| ) |
|
|
virtual |
◆ action()
Action * ActionCollectionEditor::action |
( |
| ) |
const |
- Returns
- the Action instance this editor operates on or NULL if this editor does not operate on a Action instance.
Definition at line 122 of file view.cpp.
◆ collection()
◆ commentEdit()
QLineEdit * ActionCollectionEditor::commentEdit |
( |
| ) |
const |
◆ commit()
void ActionCollectionEditor::commit |
( |
| ) |
|
|
virtual |
This method got called if the changes done in the editor should be saved aka committed to the Action or ActionCollection instance.
Definition at line 245 of file view.cpp.
◆ fileEdit()
KUrlRequester * ActionCollectionEditor::fileEdit |
( |
| ) |
const |
◆ iconEdit()
QLineEdit * ActionCollectionEditor::iconEdit |
( |
| ) |
const |
◆ initGui()
void ActionCollectionEditor::initGui |
( |
| ) |
|
|
protectedvirtual |
Initialize the GUI.
Called by the both constructors and does create e.g. the nameEdit() and the textEdit() widgets.
Definition at line 139 of file view.cpp.
◆ interpreterEdit()
QComboBox * ActionCollectionEditor::interpreterEdit |
( |
| ) |
const |
◆ isValid()
bool ActionCollectionEditor::isValid |
( |
| ) |
|
|
virtual |
- Returns
- true if the values within the editor fields are valid.
Definition at line 239 of file view.cpp.
◆ nameEdit()
QLineEdit * ActionCollectionEditor::nameEdit |
( |
| ) |
const |
Following getters are providing access to the edit-widgets once the initGui() was called by the constructors.
Some widgets like e.g. the fileEdit() may return NULL if they are not used / displayed (what is for the fileEdit the case if this ActionCollectionEditor instance has no Action ).
Definition at line 132 of file view.cpp.
◆ textEdit()
QLineEdit * ActionCollectionEditor::textEdit |
( |
| ) |
const |
The documentation for this class was generated from the following files:
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
KDE's Doxygen guidelines are available online.