QCAD
Open Source 2D CAD
RBlockListQt Class Reference

Block list widget class (QWidget). More...

Inheritance diagram for RBlockListQt:
RTreeWidget

Public Member Functions

void blockActivated ()
 Called when a block name is activated (clicked, highlighted) in the block list. More...
 
void clearBlocks ()
 Called when no document is active. More...
 
void contextMenuEvent (void e)
 
void editBlock ()
 Called when the user wants to edit the currently selected block (double click). More...
 
void enableActions (void enable)
 Enable / disable buttons that edit, remove or insert the active block. More...
 
void filter (void block)
 
void getBlockItem (void block)
 
void getBlockName (void item)
 
void itemColumnClickedSlot (void item, void column)
 Called when the user clicks the icon beside the block name to hide all block inserts of that block. More...
 
void RBlockListQt (void parent, void addListener, void showHeader)
 
void sortBlockNames (void blockNames)
 
void updateBlocks (void documentInterface)
 Called when blocks are addded, edited or deleted. More...
 
void updateItemIcons (void item, void block)
 
- Public Member Functions inherited from RTreeWidget
QModelIndex getIndex (QTreeWidgetItem *item, int column=0)
 
 RTreeWidget (QWidget *parent=0)
 Copyright (c) 2011-2016 by Andrew Mustun. More...
 
void setSelectableColumn (int c)
 
virtual ~RTreeWidget ()
 Destructor. More...
 

Public Attributes

int basePath
 
int columnCount
 
int di
 
int iconSize
 
int indentation
 
int rootIsDecorated
 

Additional Inherited Members

- Signals inherited from RTreeWidget
void contextMenuRequested (QTreeWidgetItem *item, int column)
 
void itemColumnClicked (QTreeWidgetItem *item, int column)
 
- Protected Member Functions inherited from RTreeWidget
virtual void contextMenuEvent (QContextMenuEvent *e)
 
virtual void mouseMoveEvent (QMouseEvent *e)
 
virtual void mousePressEvent (QMouseEvent *e)
 
virtual void mouseReleaseEvent (QMouseEvent *e)
 
virtual void resizeEvent (QResizeEvent *event)
 

Detailed Description

Block list widget class (QWidget).

Constructor & Destructor Documentation

void RBlockListQt::RBlockListQt ( void  parent,
void  addListener,
void  showHeader 
)
inline

Member Function Documentation

void RBlockListQt::blockActivated ( )
inline

Called when a block name is activated (clicked, highlighted) in the block list.

void RBlockListQt::clearBlocks ( )
inline

Called when no document is active.

Clears the block list.

void RBlockListQt::contextMenuEvent ( void  e)
inline
void RBlockListQt::editBlock ( )
inline

Called when the user wants to edit the currently selected block (double click).

void RBlockListQt::enableActions ( void  enable)
inline

Enable / disable buttons that edit, remove or insert the active block.

void RBlockListQt::filter ( void  block)
inline
void RBlockListQt::getBlockItem ( void  block)
inline
void RBlockListQt::getBlockName ( void  item)
inline
void RBlockListQt::itemColumnClickedSlot ( void  item,
void  column 
)
inline

Called when the user clicks the icon beside the block name to hide all block inserts of that block.

void RBlockListQt::sortBlockNames ( void  blockNames)
inline
void RBlockListQt::updateBlocks ( void  documentInterface)
inline

Called when blocks are addded, edited or deleted.

Updates the block list.

void RBlockListQt::updateItemIcons ( void  item,
void  block 
)
inline

Member Data Documentation

int RBlockListQt::basePath
int RBlockListQt::columnCount
int RBlockListQt::di
int RBlockListQt::iconSize
int RBlockListQt::indentation
int RBlockListQt::rootIsDecorated

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