Kross
Kross::ActionCollectionView Class Reference
#include <view.h>
List of all members.
Detailed Description
The
ActionCollectionView class shows a
QTreeView where the content of a
ActionCollection is displayed and optional actions to run, stop, add, edit and remove scripts are provided.
Example how to create, fill and use an instance of a ActionCollectionView;
Definition at line 163 of file view.h.
Constructor & Destructor Documentation
| ActionCollectionView::ActionCollectionView |
( |
QWidget * |
parent = 0 |
) |
[explicit] |
Constructor.
- Parameters:
-
| parent | The optional parent widget this widget is child of. |
Definition at line 284 of file view.cpp.
| ActionCollectionView::~ActionCollectionView |
( |
|
) |
[virtual] |
Member Function Documentation
| bool ActionCollectionView::isModified |
( |
|
) |
const |
- Returns:
- true if the collection was modified.
Definition at line 359 of file view.cpp.
| void ActionCollectionView::setModified |
( |
bool |
modified |
) |
|
Set the internal modified state of the collection to modified .
Definition at line 364 of file view.cpp.
- Returns:
- the KActionCollection which is filled with KAction instances this view provides.
Per default there are the actions "run" to run a script, "stop" to stop execution, "edit" to edit the selected item, "add" to add a new item or resource, "remove" to remove the selected item and "manager" to call and show the modal Script Manager dialog.
Definition at line 369 of file view.cpp.
- Returns:
- the KPushButton instance which has the actionname
actionname or NULL if there is not such button.
Definition at line 374 of file view.cpp.
Create and return a new KPushButton instance for the given actionname.
- Parameters:
-
| parentWidget | The parent widget. |
| actionname | The name of the action. Each button points to an action from within the actionCollection() and triggers that action if the button got clicked. |
- Returns:
- The new KPushButton instance or NULL if e.g. there exist no such action with
actionname .
Definition at line 386 of file view.cpp.
| void ActionCollectionView::slotRun |
( |
|
) |
[virtual, slot] |
Called if the "run" action was triggered and the selected script should be executed.
Definition at line 450 of file view.cpp.
| void ActionCollectionView::slotStop |
( |
|
) |
[virtual, slot] |
Called if the "stop" action was triggered and the selected script stops execution if running.
Definition at line 471 of file view.cpp.
| void ActionCollectionView::slotEdit |
( |
|
) |
[virtual, slot] |
Called if the "edit" action was triggered and the select item should be edited via the scripts manager editor dialog.
Definition at line 487 of file view.cpp.
| void ActionCollectionView::slotAdd |
( |
|
) |
[virtual, slot] |
Called if the "add" action was triggered and a new item should be added.
Definition at line 521 of file view.cpp.
| void ActionCollectionView::slotRemove |
( |
|
) |
[virtual, slot] |
Called if the "remove" action was triggered and the selected item should be removed.
Definition at line 555 of file view.cpp.
| void Kross::ActionCollectionView::enabledChanged |
( |
const QString & |
actionname |
) |
[signal] |
This signal is emitted if the enabled/disabled state of an action changed.
This happens for example if the slotSelectionChanged() above got called cause another item was selected.
- Parameters:
-
| void ActionCollectionView::slotDataChanged |
( |
const QModelIndex & |
topLeft, |
|
|
const QModelIndex & |
bottomRight | |
|
) |
| | [protected, virtual, slot] |
This slot got called if the data changed.
Definition at line 445 of file view.cpp.
| void ActionCollectionView::slotEnabledChanged |
( |
const QString & |
actionname |
) |
[protected, virtual, slot] |
This slot got called if the enable/disable state of an action changed.
Definition at line 403 of file view.cpp.
| void ActionCollectionView::slotSelectionChanged |
( |
|
) |
[protected, virtual, slot] |
This slot got called if the selected item changed.
Definition at line 411 of file view.cpp.
| QItemSelection ActionCollectionView::itemSelection |
( |
|
) |
const [protected] |
The documentation for this class was generated from the following files: