Kross
#include <view.h>

Public Member Functions | |
ActionCollectionEditor (Action *action, QWidget *parent=0) | |
ActionCollectionEditor (ActionCollection *collection, QWidget *parent=0) | |
virtual | ~ActionCollectionEditor () |
Action * | action () const |
ActionCollection * | collection () const |
QLineEdit * | commentEdit () const |
virtual void | commit () |
KUrlRequester * | fileEdit () const |
QLineEdit * | iconEdit () const |
QComboBox * | interpreterEdit () const |
virtual bool | isValid () |
QLineEdit * | nameEdit () const |
QLineEdit * | textEdit () const |
Protected Member Functions | |
virtual void | initGui () |
Detailed Description
The ActionCollectionEditor class implements a general editor for Action and ActionCollection instances.
Example that shows how to display the editor with an Action ;
Example that shows how to display the editor with an ActionCollection ;
Constructor & Destructor Documentation
|
explicit |
Constructor.
- Parameters
-
collection The ActionCollection instance this editor should operate on. parent The optional parent widget this widget is child of.
|
virtual |
Member Function Documentation
Action * ActionCollectionEditor::action | ( | ) | const |
ActionCollection * ActionCollectionEditor::collection | ( | ) | const |
- Returns
- the ActionCollection instance this editor operates on or NULL if this editor does not operate on a ActionCollection instance.
|
virtual |
This method got called if the changes done in the editor should be saved aka committed to the Action or ActionCollection instance.
|
protectedvirtual |
Initialize the GUI.
Called by the both constructors and does create e.g. the nameEdit() and the textEdit() widgets.
QComboBox * ActionCollectionEditor::interpreterEdit | ( | ) | const |
|
virtual |
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 ).
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.