Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Slots | Private Member Functions | Private Attributes
CAResourceView Class Reference

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

#include <resourceview.h>

Inheritance diagram for CAResourceView:
Inheritance graph
[legend]

List of all members.

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 ( 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:


Member Function Documentation

void CAResourceView::closeEvent ( QCloseEvent *  event) [private]

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

Here is the call graph for this function:

void CAResourceView::contextMenuEvent ( QContextMenuEvent *  e) [private]

References _document.

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

Here is the caller graph for this function:

void CAResourceView::on_itemChanged ( QTreeWidgetItem *  i,
int  column 
) [protected, slot]

References _items, and rebuildUi().

Referenced by CAResourceView().

Here is the call graph for this function:

Here is the caller graph for this function:

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:

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:

void CAResourceView::showEvent ( QShowEvent *  event) [private]

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

Here is the call graph for this function:


Member Data Documentation

Referenced by document(), and setDocument().

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

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