|
Canorus
0.7
|
Tree view of all the resources inside the document. More...
#include <resourceview.h>

Public Member Functions | |
| CAResourceView (CADocument *doc, QWidget *parent=0) | |
| ~CAResourceView () | |
| void | rebuildUi () |
| void | setDocument (CADocument *doc) |
| CADocument * | document () |
Protected Slots | |
| void | on_itemChanged (QTreeWidgetItem *i, int column) |
Private Member Functions | |
| void | showEvent (QShowEvent *) |
| void | closeEvent (QCloseEvent *) |
| void | contextMenuEvent (QContextMenuEvent *e) |
Private Attributes | |
| CADocument * | _document |
| QMap< QTreeWidgetItem *, CAResource * > | _items |
Tree view of all the resources inside the document.
Copyright (c) 2008-2009, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.
This widget shows the resources stored inside the document in a
tree-view style. Pass the document to the constructor and call
rebuildUi() to refresh the GUI.
This widget also allows user to remove or rename the resources.| CAResourceView::CAResourceView | ( | CADocument * | doc, |
| QWidget * | parent = 0 |
||
| ) |
Default constructor.
Pass the document doc. The view automatically gathers the resources stored inside the document and shows them.
References on_itemChanged(), and rebuildUi().

| void CAResourceView::closeEvent | ( | QCloseEvent * | event | ) | [private] |
| void CAResourceView::contextMenuEvent | ( | QContextMenuEvent * | e | ) | [private] |
References _items, CAResource::copy(), CAResourceCtl::deleteResource(), document(), CAResource::isLinked(), CAResource::name(), and CACanorus::rebuildUI().

| CADocument* CAResourceView::document | ( | ) | [inline] |
References _document.
Referenced by closeEvent(), contextMenuEvent(), rebuildUi(), and showEvent().

| void CAResourceView::on_itemChanged | ( | QTreeWidgetItem * | i, |
| int | column | ||
| ) | [protected, slot] |
References _items, and rebuildUi().
Referenced by CAResourceView().


| void CAResourceView::rebuildUi | ( | ) |
References _items, document(), and CADocument::resourceList().
Referenced by CAResourceView(), on_itemChanged(), CAMainWin::rebuildUI(), and setDocument().


| void CAResourceView::setDocument | ( | CADocument * | doc | ) | [inline] |
References _document, and rebuildUi().
Referenced by CAMainWin::setDocument().


| void CAResourceView::showEvent | ( | QShowEvent * | event | ) | [private] |
CADocument* CAResourceView::_document [private] |
Referenced by document(), and setDocument().
QMap< QTreeWidgetItem*, CAResource* > CAResourceView::_items [private] |
Referenced by contextMenuEvent(), on_itemChanged(), and rebuildUi().
1.8.0