Canorus 0.0
Public Member Functions | Protected Slots | Private Member Functions | Private Attributes | List of all members
CAResourceView Class Reference

Tree view of all the resources inside the document. More...

#include <resourceview.h>

Inheritance diagram for CAResourceView:
Inheritance graph
[legend]

Public Member Functions

 CAResourceView (CADocument *doc, QWidget *parent=0)
 
 ~CAResourceView ()
 
void rebuildUi ()
 
void setDocument (CADocument *doc)
 
CADocumentdocument ()
 

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CAResourceView()

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

Here is the call graph for this function:

◆ ~CAResourceView()

CAResourceView::~CAResourceView ( )

Member Function Documentation

◆ closeEvent()

void CAResourceView::closeEvent ( QCloseEvent *  event)
private

References document(), and CACanorus::findMainWin().

Here is the call graph for this function:

◆ contextMenuEvent()

void CAResourceView::contextMenuEvent ( QContextMenuEvent *  e)
private

◆ document()

CADocument * CAResourceView::document ( )
inline

References _document.

Referenced by closeEvent(), contextMenuEvent(), rebuildUi(), and showEvent().

Here is the caller graph for this function:

◆ on_itemChanged

void CAResourceView::on_itemChanged ( QTreeWidgetItem *  i,
int  column 
)
protectedslot

References _items, and rebuildUi().

Referenced by CAResourceView().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rebuildUi()

void CAResourceView::rebuildUi ( )

References _items, document(), and CADocument::resourceList().

Referenced by CAResourceView(), on_itemChanged(), CAMainWin::rebuildUI(), and setDocument().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDocument()

void CAResourceView::setDocument ( CADocument doc)
inline

References _document, and rebuildUi().

Referenced by CAMainWin::setDocument().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showEvent()

void CAResourceView::showEvent ( QShowEvent *  event)
private

References document(), and CACanorus::findMainWin().

Here is the call graph for this function:

Member Data Documentation

◆ _document

CADocument* CAResourceView::_document
private

Referenced by document(), and setDocument().

◆ _items

QMap< QTreeWidgetItem*, CAResource* > CAResourceView::_items
private

The documentation for this class was generated from the following files: