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 createBlockItem (void block)
 
void editBlock ()
 Called when the user wants to edit the currently selected block (double click). More...
 
void enableActions (void insertable, void renamable, void removable)
 Enable / disable buttons that edit, remove or insert the active block. More...
 
void filter (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 sortBlocks (void doc, void blockIds)
 
void updateBlocks (void documentInterface)
 Called when blocks are addded, edited or deleted. More...
 
void updateCurrentBlock (void documentInterface)
 
void updateItemIcons (void item, void block)
 
- Public Member Functions inherited from RTreeWidget
QTreeWidgetItem * getActiveItem ()
 
QModelIndex getIndex (QTreeWidgetItem *item, int column=0)
 
 RTreeWidget (QWidget *parent=0)
 Copyright (c) 2011-2018 by Andrew Mustun. More...
 
void setSelectableColumn (int c)
 
virtual ~RTreeWidget ()
 Destructor. More...
 

Public Attributes

int basePath
 
int columnCount
 
int currentItem
 
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

◆ RBlockListQt()

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

Member Function Documentation

◆ blockActivated()

void RBlockListQt::blockActivated ( )
inline

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

◆ clearBlocks()

void RBlockListQt::clearBlocks ( )
inline

Called when no document is active.

Clears the block list.

◆ contextMenuEvent()

void RBlockListQt::contextMenuEvent ( void  e)
inline

◆ createBlockItem()

void RBlockListQt::createBlockItem ( void  block)
inline

◆ editBlock()

void RBlockListQt::editBlock ( )
inline

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

◆ enableActions()

void RBlockListQt::enableActions ( void  insertable,
void  renamable,
void  removable 
)
inline

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

◆ filter()

void RBlockListQt::filter ( void  block)
inline

◆ getBlockName()

void RBlockListQt::getBlockName ( void  item)
inline

◆ itemColumnClickedSlot()

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.

◆ sortBlocks()

void RBlockListQt::sortBlocks ( void  doc,
void  blockIds 
)
inline

◆ updateBlocks()

void RBlockListQt::updateBlocks ( void  documentInterface)
inline

Called when blocks are addded, edited or deleted.

Updates the block list.

◆ updateCurrentBlock()

void RBlockListQt::updateCurrentBlock ( void  documentInterface)
inline

◆ updateItemIcons()

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

Member Data Documentation

◆ basePath

int RBlockListQt::basePath

◆ columnCount

int RBlockListQt::columnCount

◆ currentItem

int RBlockListQt::currentItem

◆ di

int RBlockListQt::di

◆ iconSize

int RBlockListQt::iconSize

◆ indentation

int RBlockListQt::indentation

◆ rootIsDecorated

int RBlockListQt::rootIsDecorated

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