|
Canorus
0.0
|
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().

| CAResourceView::~CAResourceView | ( | ) |
|
private |
|
private |
References _items, CAResource::copy(), CAResourceCtl::deleteResource(), document(), CAResource::isLinked(), CAResource::name(), and CACanorus::rebuildUI().

|
inline |
References _document.
Referenced by closeEvent(), contextMenuEvent(), rebuildUi(), and showEvent().

|
protectedslot |
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().


|
inline |
References _document, and rebuildUi().
Referenced by CAMainWin::setDocument().


|
private |
|
private |
Referenced by document(), and setDocument().
|
private |
Referenced by contextMenuEvent(), on_itemChanged(), and rebuildUi().